Ignore:
Timestamp:
2019-11-02T15:30:55+01:00 (5 years ago)
Author:
donvip
Message:

update to JOSM 15496

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  
    88import org.openstreetmap.josm.data.gpx.GpxRoute;
    99import org.openstreetmap.josm.data.gpx.GpxTrack;
    10 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
     10import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1111import org.openstreetmap.josm.data.gpx.IWithAttributes;
    1212import org.openstreetmap.josm.data.gpx.WayPoint;
     
    160160
    161161    @Override
    162     public void beginTrackSegment(GpxTrack track, GpxTrackSegment segment) {
     162    public void beginTrackSegment(GpxTrack track, IGpxTrackSegment segment) {
    163163        // Nothing to do here for now
    164164    }
    165165
    166166    @Override
    167     public void endTrackSegment(GpxTrack track, GpxTrackSegment segment) {
     167    public void endTrackSegment(GpxTrack track, IGpxTrackSegment segment) {
    168168        // Nothing to do here for now
    169169    }
    170170
    171171    @Override
    172     public void visitTrackPoint(WayPoint wp, GpxTrack track,
    173             GpxTrackSegment segment) {
    174 
     172    public void visitTrackPoint(WayPoint wp, GpxTrack track, IGpxTrackSegment segment) {
    175173        processWayPoint(wp);
    176174    }
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/GpxIterator.java

    r32775 r35212  
    77import org.openstreetmap.josm.data.gpx.GpxRoute;
    88import org.openstreetmap.josm.data.gpx.GpxTrack;
    9 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
     9import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    1010import org.openstreetmap.josm.data.gpx.WayPoint;
    1111
     
    7878        if (visitor == null) return;
    7979
    80         Collection<GpxTrackSegment> segments = trk.getSegments();
     80        Collection<IGpxTrackSegment> segments = trk.getSegments();
    8181
    8282        if (segments != null) {
    8383            visitor.beginTrack(trk);
    8484            // visit all segments
    85             for (GpxTrackSegment segment : segments) {
     85            for (IGpxTrackSegment segment : segments) {
    8686                Collection<WayPoint> waypts = segment.getWayPoints();
    8787                // no visitor here...
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/IGpxVisitor.java

    r34133 r35212  
    44import org.openstreetmap.josm.data.gpx.GpxRoute;
    55import org.openstreetmap.josm.data.gpx.GpxTrack;
    6 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
     6import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    77import org.openstreetmap.josm.data.gpx.WayPoint;
    88
     
    4646     * Starts a segment within a GPX track.
    4747     */
    48     void beginTrackSegment(GpxTrack track, GpxTrackSegment segment);
     48    void beginTrackSegment(GpxTrack track, IGpxTrackSegment segment);
    4949
    5050    /**
    5151     * Ends a segment within a GPX track.
    5252     */
    53     void endTrackSegment(GpxTrack track, GpxTrackSegment segment);
     53    void endTrackSegment(GpxTrack track, IGpxTrackSegment segment);
    5454
    5555    /**
     
    6767     * @param segment the track segment
    6868     */
    69     void visitTrackPoint(WayPoint wp, GpxTrack track, GpxTrackSegment segment);
     69    void visitTrackPoint(WayPoint wp, GpxTrack track, IGpxTrackSegment segment);
    7070
    7171    /**
Note: See TracChangeset for help on using the changeset viewer.