|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaim4.map.track.PathTrack
public class PathTrack
A track created by joining multiple tracks.
Nested Class Summary | |
---|---|
class |
PathTrack.Position
A position on the track. |
Constructor Summary | |
---|---|
PathTrack()
Create an empty path track. |
Method Summary | |
---|---|
void |
add(Track track)
Add a track to the path track. |
void |
append(PathTrack track)
Append a path track to the end of this path track. |
WayPoint |
getEndWayPoint()
Get the ending waypoint of the track segment. |
double |
getLength()
Get the length of the track. |
TrackPosition |
getPosition(double dist)
Get the position on the track that is a given distance from the starting waypoint. |
Shape |
getShape()
Get the shape of the track segment |
WayPoint |
getStartWayPoint()
Get the starting waypoint of the track segment. |
List<Track> |
getTracks()
Get the list of tracks that constitutes this path track. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathTrack()
Method Detail |
---|
public void add(Track track)
track
- the trackpublic void append(PathTrack track)
track
- the path trackpublic List<Track> getTracks()
public WayPoint getStartWayPoint()
getStartWayPoint
in interface Track
public WayPoint getEndWayPoint()
getEndWayPoint
in interface Track
public double getLength()
getLength
in interface Track
public TrackPosition getPosition(double dist)
getPosition
in interface Track
dist
- the distance from the starting waypoint; null if the
distance is longer than the length of the track.public Shape getShape()
getShape
in interface Track
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |