org.osm2world.core.world.modules
public static class TunnelModule.TunnelJunction extends Object implements NodeWorldObject, RenderableToAllTargets
Constructor and Description |
---|
TunnelModule.TunnelJunction(MapNode node,
JunctionNodeWorldObject primaryRep) |
Modifier and Type | Method and Description |
---|---|
void |
defineEleConstraints(EleConstraintEnforcer enforcer)
lets this object add constraints for the relative elevations of its
EleConnector s. |
Iterable<EleConnector> |
getEleConnectors()
returns all
EleConnector s used by this WorldObject |
GroundState |
getGroundState()
returns whether this feature is on, above or below the ground.
|
MapNode |
getPrimaryMapElement()
returns the "primary"
MapElement for this WorldObject;
i.e. |
void |
renderTo(Target<?> target) |
public TunnelModule.TunnelJunction(MapNode node, JunctionNodeWorldObject primaryRep)
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 void renderTo(Target<?> target)
renderTo
in interface RenderableToAllTargets