Changeset 35221 in osm for applications/editors/josm/plugins/ElevationProfile/src/org
- Timestamp:
- 2019-11-03T22:22:25+01:00 (5 years ago)
- Location:
- applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationModel.java
r35212 r35221 7 7 import org.openstreetmap.josm.data.gpx.GpxData; 8 8 import org.openstreetmap.josm.data.gpx.GpxRoute; 9 import org.openstreetmap.josm.data.gpx.GpxTrack; 9 import org.openstreetmap.josm.data.gpx.IGpxTrack; 10 10 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 11 11 import org.openstreetmap.josm.data.gpx.IWithAttributes; … … 147 147 148 148 @Override 149 public void beginTrack(GpxTrack track) { 149 public void beginTrack(IGpxTrack track) { 150 150 createProfile(track); 151 151 } 152 152 153 153 @Override 154 public void endTrack(GpxTrack track) { 154 public void endTrack(IGpxTrack track) { 155 155 if (curProfile == null) throw new RuntimeException("Internal error: No elevation profile"); 156 156 … … 160 160 161 161 @Override 162 public void beginTrackSegment(GpxTrack track, IGpxTrackSegment segment) { 162 public void beginTrackSegment(IGpxTrack track, IGpxTrackSegment segment) { 163 163 // Nothing to do here for now 164 164 } 165 165 166 166 @Override 167 public void endTrackSegment(GpxTrack track, IGpxTrackSegment segment) { 167 public void endTrackSegment(IGpxTrack track, IGpxTrackSegment segment) { 168 168 // Nothing to do here for now 169 169 } 170 170 171 171 @Override 172 public void visitTrackPoint(WayPoint wp, GpxTrack track, IGpxTrackSegment segment) { 172 public void visitTrackPoint(WayPoint wp, IGpxTrack track, IGpxTrackSegment segment) { 173 173 processWayPoint(wp); 174 174 } -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/GpxIterator.java
r35212 r35221 6 6 import org.openstreetmap.josm.data.gpx.GpxData; 7 7 import org.openstreetmap.josm.data.gpx.GpxRoute; 8 import org.openstreetmap.josm.data.gpx.GpxTrack; 8 import org.openstreetmap.josm.data.gpx.IGpxTrack; 9 9 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 10 10 import org.openstreetmap.josm.data.gpx.WayPoint; … … 47 47 48 48 // tracks 49 for (GpxTrack trk : data.tracks) { 49 for (IGpxTrack trk : data.tracks) { 50 50 visitTrack(visitor, trk); 51 51 } … … 58 58 * The visitor which inspects all GPX entities. 59 59 */ 60 public static void visit(GpxTrack track, IGpxVisitor visitor) { 60 public static void visit(IGpxTrack track, IGpxVisitor visitor) { 61 61 visitTrack(visitor, track); 62 62 } … … 74 74 // ---------------------- Helper methods ---------------- 75 75 76 private static void visitTrack(IGpxVisitor visitor, GpxTrack trk) { 76 private static void visitTrack(IGpxVisitor visitor, IGpxTrack trk) { 77 77 if (trk == null) return; 78 78 if (visitor == null) return; -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/IGpxVisitor.java
r35212 r35221 3 3 4 4 import org.openstreetmap.josm.data.gpx.GpxRoute; 5 import org.openstreetmap.josm.data.gpx.GpxTrack; 5 import org.openstreetmap.josm.data.gpx.IGpxTrack; 6 6 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 7 7 import org.openstreetmap.josm.data.gpx.WayPoint; … … 25 25 * Starts a GPX track. 26 26 */ 27 void beginTrack(GpxTrack track); 27 void beginTrack(IGpxTrack track); 28 28 29 29 /** 30 30 * Ends a GPX track. 31 31 */ 32 void endTrack(GpxTrack track); 32 void endTrack(IGpxTrack track); 33 33 34 34 /** … … 46 46 * Starts a segment within a GPX track. 47 47 */ 48 void beginTrackSegment(GpxTrack track, IGpxTrackSegment segment); 48 void beginTrackSegment(IGpxTrack track, IGpxTrackSegment segment); 49 49 50 50 /** 51 51 * Ends a segment within a GPX track. 52 52 */ 53 void endTrackSegment(GpxTrack track, IGpxTrackSegment segment); 53 void endTrackSegment(IGpxTrack track, IGpxTrackSegment segment); 54 54 55 55 /** … … 67 67 * @param segment the track segment 68 68 */ 69 void visitTrackPoint(WayPoint wp, GpxTrack track, IGpxTrackSegment segment); 69 void visitTrackPoint(WayPoint wp, IGpxTrack track, IGpxTrackSegment segment); 70 70 71 71 /**
Note:
See TracChangeset
for help on using the changeset viewer.