org.osm2world.core.world.data
Class NoOutlineWaySegmentWorldObject
Object
NoOutlineWaySegmentWorldObject
- All Implemented Interfaces:
- IntersectionTestObject, WaySegmentWorldObject, WorldObject
public abstract class NoOutlineWaySegmentWorldObject
- extends Object
- implements WaySegmentWorldObject, IntersectionTestObject
superclass for WaySegmentWorldObject
s that don't have an outline,
and are not part of a network.
Instead, they can be considered infinitely thin.
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
segment
protected final MapWaySegment segment
NoOutlineWaySegmentWorldObject
public NoOutlineWaySegmentWorldObject(MapWaySegment segment)
getPrimaryMapElement
public MapElement getPrimaryMapElement()
- Description copied from interface:
WorldObject
- returns the "primary"
MapElement
for this WorldObject;
i.e. the one it is most strongly associated with.
Can be null if there is no (clear) primary element for this feature.
- Specified by:
getPrimaryMapElement
in interface WorldObject
getStartPosition
public VectorXZ getStartPosition()
- Description copied from interface:
WaySegmentWorldObject
- returns the start position.
Might be different from
MapWaySegment
's start position;
as node features such as crossings require space, too.
- Specified by:
getStartPosition
in interface WaySegmentWorldObject
getEndPosition
public VectorXZ getEndPosition()
- Description copied from interface:
WaySegmentWorldObject
- returns the end position.
See
WaySegmentWorldObject.getStartPosition()
for details.
- Specified by:
getEndPosition
in interface WaySegmentWorldObject
getAxisAlignedBoundingBoxXZ
public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
- Specified by:
getAxisAlignedBoundingBoxXZ
in interface IntersectionTestObject