org.osm2world.core.world.modules
public static class TunnelModule.TunnelEntrance extends Object implements NodeWorldObject, TerrainBoundaryWorldObject
Constructor and Description |
---|
TunnelModule.TunnelEntrance(MapNode node,
AbstractNetworkWaySegmentWorldObject tunnelContent) |
Modifier and Type | Method and Description |
---|---|
void |
defineEleConstraints(EleConstraintEnforcer enforcer)
lets this object add constraints for the relative elevations of its
EleConnector s. |
AxisAlignedBoundingBoxXZ |
getAxisAlignedBoundingBoxXZ()
returns the axis aligned bounding box that contains the entire object
|
Iterable<EleConnector> |
getEleConnectors()
returns all
EleConnector s used by this WorldObject |
GroundState |
getGroundState()
returns whether this feature is on, above or below the ground.
|
PolygonXYZ |
getOutlinePolygon()
returns a counterclockwise polygon defining the object's ground footprint.
|
SimplePolygonXZ |
getOutlinePolygonXZ()
returns a counterclockwise polygon defining the object's ground footprint,
projected onto the XZ plane.
|
MapNode |
getPrimaryMapElement()
returns the "primary"
MapElement for this WorldObject;
i.e. |
public TunnelModule.TunnelEntrance(MapNode node, AbstractNetworkWaySegmentWorldObject tunnelContent)
public MapNode getPrimaryMapElement()
WorldObject
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.getPrimaryMapElement
in interface NodeWorldObject
getPrimaryMapElement
in interface WorldObject
public GroundState getGroundState()
WorldObject
getGroundState
in interface WorldObject
public Iterable<EleConnector> getEleConnectors()
WorldObject
EleConnector
s used by this WorldObjectgetEleConnectors
in interface WorldObject
public void defineEleConstraints(EleConstraintEnforcer enforcer)
WorldObject
EleConnector
s. Called after WorldObject.getEleConnectors()
.defineEleConstraints
in interface WorldObject
public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
TerrainBoundaryWorldObject
getAxisAlignedBoundingBoxXZ
in interface IntersectionTestObject
getAxisAlignedBoundingBoxXZ
in interface TerrainBoundaryWorldObject
public SimplePolygonXZ getOutlinePolygonXZ()
WorldObjectWithOutline
getOutlinePolygonXZ
in interface WorldObjectWithOutline
public PolygonXYZ getOutlinePolygon()
WorldObjectWithOutline
getOutlinePolygon
in interface WorldObjectWithOutline