org.osm2world.core.world.data
public abstract class NoOutlineNodeWorldObject extends Object implements NodeWorldObject, IntersectionTestObject
NodeWorldObject
s that don't have an outline,
and are not part of a network.
Instead, they are located at a single point on the terrain or other areas
and not connected to other features.OutlineNodeWorldObject
Constructor and Description |
---|
NoOutlineNodeWorldObject(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() |
protected VectorXYZ |
getBase()
provides subclasses with the 3d position of the
MapNode . |
Iterable<EleConnector> |
getEleConnectors()
returns all
EleConnector s used by this WorldObject |
MapNode |
getPrimaryMapElement()
returns the "primary"
MapElement for this WorldObject;
i.e. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGroundState
protected final MapNode node
public NoOutlineNodeWorldObject(MapNode node)
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 AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
getAxisAlignedBoundingBoxXZ
in interface IntersectionTestObject
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 String toString()
toString
in class Object