org.osm2world.core.world.modules
Class RoadModule.RoadCrossingAtConnector

Object
  extended by VisibleConnectorNodeWorldObject
      extended by RoadModule.RoadCrossingAtConnector
All Implemented Interfaces:
IntersectionTestObject, Renderable, RenderableToAllTargets, NodeWorldObject, TerrainBoundaryWorldObject, WorldObject, WorldObjectWithOutline
Enclosing class:
RoadModule

public static class RoadModule.RoadCrossingAtConnector
extends VisibleConnectorNodeWorldObject
implements NodeWorldObject, RenderableToAllTargets, TerrainBoundaryWorldObject

representation for crossings (zebra crossing etc.) on roads


Field Summary
 
Fields inherited from class VisibleConnectorNodeWorldObject
cutVector, endPos, endWidth, informationProvided, node, startPos, startWidth
 
Constructor Summary
RoadModule.RoadCrossingAtConnector(MapNode node)
           
 
Method Summary
 double getClearingAbove(VectorXZ pos)
          returns the amount of free space above the base elevation required by this feature.
 double getClearingBelow(VectorXZ pos)
          returns the amount of free space below the base elevation required by this feature.
 GroundState getGroundState()
          returns whether this feature is on, above or below the ground.
 float getLength()
          returns the length required by this node representation.
 void renderTo(Target<?> target)
           
 
Methods inherited from class VisibleConnectorNodeWorldObject
getAxisAlignedBoundingBoxXZ, getOutline, getOutlinePolygon, getOutlinePolygonXZ, getOutlineXZ, getPrimaryMapElement, setInformation, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface TerrainBoundaryWorldObject
getAxisAlignedBoundingBoxXZ
 
Methods inherited from interface WorldObjectWithOutline
getOutlinePolygon, getOutlinePolygonXZ
 
Methods inherited from interface WorldObject
getPrimaryMapElement
 

Constructor Detail

RoadModule.RoadCrossingAtConnector

public RoadModule.RoadCrossingAtConnector(MapNode node)
Method Detail

getLength

public float getLength()
Description copied from class: VisibleConnectorNodeWorldObject
returns the length required by this node representation. Adjacent lines will be pushed back accordingly. If this is 0, this has the same effect as an invisible connector node (adjacent line representations directly touching each other). Examples where non-zero values are needed include crossings at nodes in roads. Needs to be provided by the implementing class before the calculation in NetworkCalculator starts.

Specified by:
getLength in class VisibleConnectorNodeWorldObject

renderTo

public void renderTo(Target<?> target)
Specified by:
renderTo in interface RenderableToAllTargets

getGroundState

public GroundState getGroundState()
Description copied from interface: WorldObject
returns whether this feature is on, above or below the ground. This is relevant for elevation calculations, because the elevation of features o.t.g. is directly determined by terrain elevation data. Elevation of features above/below t.g. depends on elevation of features o.t.g. as well as other features above/below t.g.

Specified by:
getGroundState in interface WorldObject

getClearingAbove

public double getClearingAbove(VectorXZ pos)
Description copied from interface: WorldObject
returns the amount of free space above the base elevation required by this feature. If pos isn't on this representation, the clearing for a somewhat nearby point on the feature should be returned.

Specified by:
getClearingAbove in interface WorldObject

getClearingBelow

public double getClearingBelow(VectorXZ pos)
Description copied from interface: WorldObject
returns the amount of free space below the base elevation required by this feature. If pos isn't on this representation, the clearing for a somewhat nearby point on the feature should be returned.

Specified by:
getClearingBelow in interface WorldObject