org.osm2world.core.world.modules
public static class RoadModule.Road extends AbstractNetworkWaySegmentWorldObject implements RenderableToAllTargets, TerrainBoundaryWorldObject
Modifier and Type | Field and Description |
---|---|
protected static float |
DEFAULT_LANE_WIDTH |
protected static float |
DEFAULT_PATH_CLEARING |
protected static float |
DEFAULT_ROAD_CLEARING |
VectorXZ |
endCoord |
protected static ShapeXZ |
HANDRAIL_SHAPE |
RoadModule.LaneLayout |
laneLayout |
boolean |
rightHandTraffic |
VectorXZ |
startCoord |
float |
width |
connectors, segment
Constructor and Description |
---|
RoadModule.Road(MapWaySegment line,
TagGroup tags) |
Modifier and Type | Method and Description |
---|---|
void |
defineEleConstraints(EleConstraintEnforcer enforcer)
lets this object add constraints for the relative elevations of its
EleConnector s. |
RoadModule.LaneLayout |
getLaneLayout() |
Material |
getSurface() |
float |
getWidth()
returns the line's width
|
void |
renderTo(Target<?> target) |
getAxisAlignedBoundingBoxXZ, getCenterline, getCenterlineEleConnectors, getCenterlineXZ, getCutVectorAt, getEleConnectors, getEndCutVector, getEndOffset, getEndPosition, getEndWithOffset, getGroundState, getOutline, getOutlinePolygon, getOutlinePolygonXZ, getOutlineXZ, getPointOnCut, getPrimaryMapElement, getStartCutVector, getStartOffset, getStartPosition, getStartWithOffset, isBroken, setEndCutVector, setEndOffset, setStartCutVector, setStartOffset, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAxisAlignedBoundingBoxXZ
getOutlinePolygon, getOutlinePolygonXZ
getEleConnectors, getGroundState, getPrimaryMapElement
protected static final float DEFAULT_LANE_WIDTH
protected static final float DEFAULT_ROAD_CLEARING
protected static final float DEFAULT_PATH_CLEARING
protected static final ShapeXZ HANDRAIL_SHAPE
public final boolean rightHandTraffic
public final RoadModule.LaneLayout laneLayout
public final float width
public final VectorXZ startCoord
public final VectorXZ endCoord
public RoadModule.Road(MapWaySegment line, TagGroup tags)
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 Material getSurface()
public RoadModule.LaneLayout getLaneLayout()
public void renderTo(Target<?> target)
renderTo
in interface RenderableToAllTargets