org.osm2world.core.map_data.data
public class MapWaySegment extends MapSegment implements MapElement
endNode, startNode
Constructor and Description |
---|
MapWaySegment(OSMWay osmWay,
MapNode startNode,
MapNode endNode) |
Modifier and Type | Method and Description |
---|---|
void |
addOverlap(MapOverlap<?,?> overlap) |
void |
addRepresentation(WaySegmentWorldObject representation)
adds a visual representation for this way segment
|
AxisAlignedBoundingBoxXZ |
getAxisAlignedBoundingBoxXZ() |
Iterable<MapIntersectionWW> |
getIntersectionsWW() |
int |
getLayer() |
OSMWay |
getOsmWay() |
Collection<MapOverlap<?,?>> |
getOverlaps()
returns all overlaps between this
MapElement
and other MapElement s. |
WaySegmentWorldObject |
getPrimaryRepresentation()
returns the primary representation, or null if the object doesn't have any.
|
List<WaySegmentWorldObject> |
getRepresentations()
returns the visual representations of this element.
|
TagGroup |
getTags()
returns the tags of the underlying
OSMElement |
String |
toString() |
getCenter, getDirection, getEndNode, getLineSegment, getOtherNode, getRightNormal, getStartEndNodes, getStartNode, isConnectedTo, isConnectedTo, sharesBothNodes
public int getLayer()
getLayer
in interface MapElement
public OSMWay getOsmWay()
public TagGroup getTags()
MapElement
OSMElement
getTags
in interface MapElement
public void addOverlap(MapOverlap<?,?> overlap)
public Collection<MapOverlap<?,?>> getOverlaps()
MapElement
MapElement
and other MapElement
s.getOverlaps
in interface MapElement
public Iterable<MapIntersectionWW> getIntersectionsWW()
public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
getAxisAlignedBoundingBoxXZ
in interface IntersectionTestObject
public List<WaySegmentWorldObject> getRepresentations()
MapElement
getRepresentations
in interface MapElement
public WaySegmentWorldObject getPrimaryRepresentation()
MapElement
getPrimaryRepresentation
in interface MapElement
MapElement.getRepresentations()
public void addRepresentation(WaySegmentWorldObject representation)
public String toString()
toString
in class Object