org.osm2world.core.world.modules
Class WaterModule.Water

Object
  extended by AbstractAreaWorldObject
      extended by NetworkAreaWorldObject
          extended by WaterModule.Water
All Implemented Interfaces:
IntersectionTestObject, Renderable, RenderableToAllTargets, AreaWorldObject, TerrainBoundaryWorldObject, WorldObject, WorldObjectWithOutline
Enclosing class:
WaterModule

public static class WaterModule.Water
extends NetworkAreaWorldObject
implements RenderableToAllTargets, TerrainBoundaryWorldObject


Field Summary
 
Fields inherited from class AbstractAreaWorldObject
area
 
Constructor Summary
WaterModule.Water(MapArea area)
           
 
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.
 void renderTo(Target<?> target)
           
 
Methods inherited from class AbstractAreaWorldObject
getAxisAlignedBoundingBoxXZ, getOutlinePolygon, getOutlinePolygonXZ, getPrimaryMapElement, getTriangulation
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface TerrainBoundaryWorldObject
getAxisAlignedBoundingBoxXZ
 
Methods inherited from interface WorldObjectWithOutline
getOutlinePolygon, getOutlinePolygonXZ
 
Methods inherited from interface WorldObject
getPrimaryMapElement
 

Constructor Detail

WaterModule.Water

public WaterModule.Water(MapArea area)
Method Detail

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

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

renderTo

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