Changeset 35212 in osm for applications/editors/josm/plugins/ElevationProfile/src
- Timestamp:
- 2019-11-02T15:30:55+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
r34133 r35212 8 8 import org.openstreetmap.josm.data.gpx.GpxRoute; 9 9 import org.openstreetmap.josm.data.gpx.GpxTrack; 10 import org.openstreetmap.josm.data.gpx. GpxTrackSegment;10 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 11 11 import org.openstreetmap.josm.data.gpx.IWithAttributes; 12 12 import org.openstreetmap.josm.data.gpx.WayPoint; … … 160 160 161 161 @Override 162 public void beginTrackSegment(GpxTrack track, GpxTrackSegment segment) {162 public void beginTrackSegment(GpxTrack track, IGpxTrackSegment segment) { 163 163 // Nothing to do here for now 164 164 } 165 165 166 166 @Override 167 public void endTrackSegment(GpxTrack track, GpxTrackSegment segment) {167 public void endTrackSegment(GpxTrack 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, 173 GpxTrackSegment segment) { 174 172 public void visitTrackPoint(WayPoint wp, GpxTrack track, IGpxTrackSegment segment) { 175 173 processWayPoint(wp); 176 174 } -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/GpxIterator.java
r32775 r35212 7 7 import org.openstreetmap.josm.data.gpx.GpxRoute; 8 8 import org.openstreetmap.josm.data.gpx.GpxTrack; 9 import org.openstreetmap.josm.data.gpx. GpxTrackSegment;9 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 10 10 import org.openstreetmap.josm.data.gpx.WayPoint; 11 11 … … 78 78 if (visitor == null) return; 79 79 80 Collection< GpxTrackSegment> segments = trk.getSegments();80 Collection<IGpxTrackSegment> segments = trk.getSegments(); 81 81 82 82 if (segments != null) { 83 83 visitor.beginTrack(trk); 84 84 // visit all segments 85 for ( GpxTrackSegment segment : segments) {85 for (IGpxTrackSegment segment : segments) { 86 86 Collection<WayPoint> waypts = segment.getWayPoints(); 87 87 // no visitor here... -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/IGpxVisitor.java
r34133 r35212 4 4 import org.openstreetmap.josm.data.gpx.GpxRoute; 5 5 import org.openstreetmap.josm.data.gpx.GpxTrack; 6 import org.openstreetmap.josm.data.gpx. GpxTrackSegment;6 import org.openstreetmap.josm.data.gpx.IGpxTrackSegment; 7 7 import org.openstreetmap.josm.data.gpx.WayPoint; 8 8 … … 46 46 * Starts a segment within a GPX track. 47 47 */ 48 void beginTrackSegment(GpxTrack track, GpxTrackSegment segment);48 void beginTrackSegment(GpxTrack track, IGpxTrackSegment segment); 49 49 50 50 /** 51 51 * Ends a segment within a GPX track. 52 52 */ 53 void endTrackSegment(GpxTrack track, GpxTrackSegment segment);53 void endTrackSegment(GpxTrack track, IGpxTrackSegment segment); 54 54 55 55 /** … … 67 67 * @param segment the track segment 68 68 */ 69 void visitTrackPoint(WayPoint wp, GpxTrack track, GpxTrackSegment segment);69 void visitTrackPoint(WayPoint wp, GpxTrack track, IGpxTrackSegment segment); 70 70 71 71 /**
Note:
See TracChangeset
for help on using the changeset viewer.