org.osm2world.core.world.modules
public static class WaterModule.Waterway extends AbstractNetworkWaySegmentWorldObject implements RenderableToAllTargets, TerrainBoundaryWorldObject
connectors, segment
Constructor and Description |
---|
WaterModule.Waterway(MapWaySegment line) |
Modifier and Type | Method and Description |
---|---|
void |
defineEleConstraints(EleConstraintEnforcer enforcer)
lets this object add constraints for the relative elevations of its
EleConnector s. |
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.
|
float |
getWidth()
returns the line's width
|
void |
renderTo(Target<?> target) |
getAxisAlignedBoundingBoxXZ, getCenterline, getCenterlineEleConnectors, getCenterlineXZ, getCutVectorAt, getEleConnectors, getEndCutVector, getEndOffset, getEndPosition, getEndWithOffset, getGroundState, getOutline, getOutlineXZ, getPointOnCut, getPrimaryMapElement, getStartCutVector, getStartOffset, getStartPosition, getStartWithOffset, isBroken, setEndCutVector, setEndOffset, setStartCutVector, setStartOffset, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAxisAlignedBoundingBoxXZ
getEleConnectors, getGroundState, getPrimaryMapElement
public WaterModule.Waterway(MapWaySegment line)
public void defineEleConstraints(EleConstraintEnforcer enforcer)
WorldObject
EleConnector
s. Called after WorldObject.getEleConnectors()
.defineEleConstraints
in interface WorldObject
defineEleConstraints
in class AbstractNetworkWaySegmentWorldObject
public float getWidth()
NetworkWaySegmentWorldObject
getWidth
in interface NetworkWaySegmentWorldObject
public PolygonXYZ getOutlinePolygon()
WorldObjectWithOutline
getOutlinePolygon
in interface WorldObjectWithOutline
getOutlinePolygon
in class AbstractNetworkWaySegmentWorldObject
public SimplePolygonXZ getOutlinePolygonXZ()
WorldObjectWithOutline
getOutlinePolygonXZ
in interface WorldObjectWithOutline
getOutlinePolygonXZ
in class AbstractNetworkWaySegmentWorldObject
public void renderTo(Target<?> target)
renderTo
in interface RenderableToAllTargets