org.osm2world.core.map_data.data
public class MapNode extends Object implements MapElement
MapWaySegment
s.
For each OSM node, one GridNode will be created.Modifier and Type | Method and Description |
---|---|
void |
addAdjacentArea(MapArea adjacentArea) |
void |
addInboundLine(MapWaySegment inboundLine) |
void |
addOutboundLine(MapWaySegment outboundLine) |
void |
addRepresentation(NodeWorldObject representation)
adds a visual representation for this node
|
void |
calculateAdjacentAreaSegments()
needs to be called after adding and completing all adjacent areas
|
Collection<MapArea> |
getAdjacentAreas() |
AxisAlignedBoundingBoxXZ |
getAxisAlignedBoundingBoxXZ() |
List<MapSegment> |
getConnectedSegments()
returns all way segments and area segments connected with this node.
|
List<MapWaySegment> |
getConnectedWaySegments()
returns all way segments connected with this node.
|
List<MapWaySegment> |
getInboundLines()
returns those connected lines that end here.
|
int |
getLayer() |
OSMNode |
getOsmNode() |
List<MapWaySegment> |
getOutboundLines()
returns those connected lines that start here.
|
Collection<MapOverlap<?,?>> |
getOverlaps()
returns all overlaps between this
MapElement
and other MapElement s. |
VectorXZ |
getPos() |
NodeWorldObject |
getPrimaryRepresentation()
returns the primary representation, or null if the object doesn't have any.
|
List<NodeWorldObject> |
getRepresentations()
returns the visual representations of this element.
|
TagGroup |
getTags()
returns the tags of the underlying
OSMElement |
String |
toString() |
public VectorXZ getPos()
public int getLayer()
getLayer
in interface MapElement
public OSMNode getOsmNode()
public TagGroup getTags()
MapElement
OSMElement
getTags
in interface MapElement
public Collection<MapArea> getAdjacentAreas()
public void addInboundLine(MapWaySegment inboundLine)
public void addOutboundLine(MapWaySegment outboundLine)
public List<MapWaySegment> getInboundLines()
getConnectedWaySegments()
.public List<MapWaySegment> getOutboundLines()
getConnectedWaySegments()
.public void addAdjacentArea(MapArea adjacentArea)
public void calculateAdjacentAreaSegments()
public List<MapWaySegment> getConnectedWaySegments()
public List<MapSegment> getConnectedSegments()
getConnectedWaySegments()
.public List<NodeWorldObject> getRepresentations()
MapElement
getRepresentations
in interface MapElement
public NodeWorldObject getPrimaryRepresentation()
MapElement
getPrimaryRepresentation
in interface MapElement
MapElement.getRepresentations()
public void addRepresentation(NodeWorldObject representation)
public String toString()
toString
in class Object
public Collection<MapOverlap<?,?>> getOverlaps()
MapElement
MapElement
and other MapElement
s.getOverlaps
in interface MapElement
public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
getAxisAlignedBoundingBoxXZ
in interface IntersectionTestObject