|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object MapNode
public class MapNode
grid representation of an OSM node,
references inbound and outbound MapWaySegment
s.
For each OSM node, one GridNode will be created.
Constructor Summary | |
---|---|
MapNode(VectorXZ pos,
OSMNode osmNode)
|
Method Summary | |
---|---|
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. |
NodeElevationProfile |
getElevationProfile()
returns the elevation information for this GridElement. |
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 |
void |
setElevationProfile(NodeElevationProfile elevationProfile)
|
String |
toString()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapNode(VectorXZ pos, OSMNode osmNode)
Method Detail |
---|
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 NodeElevationProfile getElevationProfile()
MapElement
getElevationProfile
in interface MapElement
public void setElevationProfile(NodeElevationProfile elevationProfile)
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |