org.osm2world.core.map_elevation.creation
Class AdvancedAbstractElevationCalculator.AbstractElevationDeterminationScenario.ForceNode

Object
  extended by AdvancedAbstractElevationCalculator.AbstractElevationDeterminationScenario.ForceNode
All Implemented Interfaces:
IntersectionTestObject
Direct Known Subclasses:
AdvancedAbstractElevationCalculator.AbstractElevationDeterminationScenario.ForceNodeOnArea, AdvancedAbstractElevationCalculator.AbstractElevationDeterminationScenario.ForceNodeOnLine, AdvancedAbstractElevationCalculator.AbstractElevationDeterminationScenario.ForceNodeOnNode, AdvancedAbstractElevationCalculator.AbstractElevationDeterminationScenario.ForceNodeOnTerrainPoint
Enclosing class:
AdvancedAbstractElevationCalculator.AbstractElevationDeterminationScenario

protected abstract static class AdvancedAbstractElevationCalculator.AbstractElevationDeterminationScenario.ForceNode
extends Object
implements IntersectionTestObject

a node that is affected by the forces during elevation determination. Can be based on a MapNode, but also on points within a MapWaySegment or MapArea.


Field Summary
protected  Float currentEle
           
 
Constructor Summary
protected AdvancedAbstractElevationCalculator.AbstractElevationDeterminationScenario.ForceNode()
           
 
Method Summary
 void changeCurrentEle(double up)
          changes the current elevation (in this object, not the underlying grid).
 AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
           
 Float getCurrentEle()
          returns the current elevation that has resulted from force application so far.
 VectorXYZ getCurrentXYZ()
          returns the current 3d position
abstract  VectorXZ getPos()
          returns the x-z-position of this node (this position is fixed during the simulation)
protected  void setCurrentEle(double currentEle)
          sets the current elevation to an absolute value.
abstract  void writeResult()
          writes the current elevation information back to the grid
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentEle

protected Float currentEle
Constructor Detail

AdvancedAbstractElevationCalculator.AbstractElevationDeterminationScenario.ForceNode

protected AdvancedAbstractElevationCalculator.AbstractElevationDeterminationScenario.ForceNode()
Method Detail

getPos

public abstract VectorXZ getPos()
returns the x-z-position of this node (this position is fixed during the simulation)


getCurrentEle

public Float getCurrentEle()
returns the current elevation that has resulted from force application so far.


getCurrentXYZ

public VectorXYZ getCurrentXYZ()
returns the current 3d position


changeCurrentEle

public void changeCurrentEle(double up)
changes the current elevation (in this object, not the underlying grid).

Parameters:
up - amount of upwards movement (negative values move downwards)

setCurrentEle

protected void setCurrentEle(double currentEle)
sets the current elevation to an absolute value. Usually only used during initialization.


getAxisAlignedBoundingBoxXZ

public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
Specified by:
getAxisAlignedBoundingBoxXZ in interface IntersectionTestObject

writeResult

public abstract void writeResult()
writes the current elevation information back to the grid