org.osm2world.core.world.data
public abstract class OutlineNodeWorldObject extends Object implements NodeWorldObject, IntersectionTestObject, WorldObjectWithOutline
NodeWorldObject
s that do have an outline
and are not just treated as an infinitely small point.NoOutlineNodeWorldObject
Modifier | Constructor and Description |
---|---|
protected |
OutlineNodeWorldObject(MapNode node) |
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() |
EleConnectorGroup |
getEleConnectors()
returns all
EleConnector s used by this WorldObject |
PolygonXYZ |
getOutlinePolygon()
returns a counterclockwise polygon defining the object's ground footprint.
|
abstract 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. |
protected Collection<TriangleXYZ> |
getTriangulation() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGroundState
protected final MapNode node
protected OutlineNodeWorldObject(MapNode node)
public abstract SimplePolygonXZ getOutlinePolygonXZ()
WorldObjectWithOutline
getOutlinePolygonXZ
in interface WorldObjectWithOutline
public final 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 EleConnectorGroup 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()
getAxisAlignedBoundingBoxXZ
in interface IntersectionTestObject
public PolygonXYZ getOutlinePolygon()
WorldObjectWithOutline
getOutlinePolygon
in interface WorldObjectWithOutline
public String toString()
toString
in class Object
protected Collection<TriangleXYZ> getTriangulation()