Package org.openstreetmap.josm.data.gpx
Class GpxTrackSegment
java.lang.Object
org.openstreetmap.josm.data.gpx.WithAttributes
org.openstreetmap.josm.data.gpx.GpxTrackSegment
- All Implemented Interfaces:
GpxConstants,IGpxTrackSegment,IWithAttributes
A gpx track segment consisting of multiple waypoints.
- Since:
- 15496
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openstreetmap.josm.data.gpx.GpxConstants
GpxConstants.ColorFormat -
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.data.gpx.WithAttributes
attrFields inherited from interface org.openstreetmap.josm.data.gpx.GpxConstants
EXTENSION_ABBREVIATIONS, FIX_VALUES, GARMIN_COLORS, GPX_CMT, GPX_DESC, GPX_NAME, GPX_PREFIX, GPX_SRC, JOSM_CREATOR_NAME, META_AUTHOR_EMAIL, META_AUTHOR_LINK, META_AUTHOR_NAME, META_BOUNDS, META_COPYRIGHT_AUTHOR, META_COPYRIGHT_LICENSE, META_COPYRIGHT_YEAR, META_DESC, META_KEYWORDS, META_LINKS, META_NAME, META_PREFIX, META_TIME, PT_AGEOFDGPSDATA, PT_COURSE, PT_DGPSID, PT_ELE, PT_FIX, PT_GEOIDHEIGHT, PT_HDOP, PT_MAGVAR, PT_PDOP, PT_SAT, PT_STD_HDEV, PT_STD_VDEV, PT_SYM, PT_TIME, PT_TYPE, PT_VDOP, RTE_TRK_KEYS, RTKLIB_AGE, RTKLIB_Q, RTKLIB_RATIO, RTKLIB_SDE, RTKLIB_SDEU, RTKLIB_SDN, RTKLIB_SDNE, RTKLIB_SDU, RTKLIB_SDUN, WPT_KEYS, XML_URI_EXTENSIONS_DRAWING, XML_URI_EXTENSIONS_GARMIN, XML_URI_EXTENSIONS_JOSM, XML_URI_XSD, XML_XSD_EXTENSIONS_DRAWING, XML_XSD_EXTENSIONS_GARMIN, XML_XSD_EXTENSIONS_JOSM -
Constructor Summary
ConstructorsConstructorDescriptionGpxTrackSegment(Collection<WayPoint> wayPoints) Constructs a newGpxTrackSegment. -
Method Summary
Methods inherited from class org.openstreetmap.josm.data.gpx.WithAttributes
get, getAttributes, getCollection, getExtensions, getString, hasExtensions, putMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.data.gpx.IWithAttributes
get, getAttributes, getCollection, getExtensions, getString, hasExtensions, put
-
Field Details
-
wayPoints
-
bounds
-
length
-
-
Constructor Details
-
GpxTrackSegment
Constructs a newGpxTrackSegment.- Parameters:
wayPoints- list of waypoints
-
-
Method Details
-
calculateBounds
-
calculateLength
-
getBounds
Description copied from interface:IGpxTrackSegmentReturns the segment bounds.- Specified by:
getBoundsin interfaceIGpxTrackSegment- Returns:
- the segment bounds
-
getWayPoints
Description copied from interface:IGpxTrackSegmentReturns the segment waypoints.- Specified by:
getWayPointsin interfaceIGpxTrackSegment- Returns:
- the segment waypoints
-
length
Description copied from interface:IGpxTrackSegmentReturns the segment length.- Specified by:
lengthin interfaceIGpxTrackSegment- Returns:
- the segment length
-
getUpdateCount
Description copied from interface:IGpxTrackSegmentReturns the number of times this track has been changed- Specified by:
getUpdateCountin interfaceIGpxTrackSegment- Returns:
- Number of times this track has been changed. Always 0 for read-only segments
-
hashCode
- Overrides:
hashCodein classWithAttributes
-
equals
- Overrides:
equalsin classWithAttributes
-