org.osm2world.core.map_elevation.creation
Class ForceElevationCalculator.ElevationDeterminationScenario.ForceNode

Object
  extended by ForceElevationCalculator.ElevationDeterminationScenario.ForceNode
Direct Known Subclasses:
ForceElevationCalculator.ElevationDeterminationScenario.ForceNodeOnArea, ForceElevationCalculator.ElevationDeterminationScenario.ForceNodeOnLine, ForceElevationCalculator.ElevationDeterminationScenario.ForceNodeOnNode, ForceElevationCalculator.ElevationDeterminationScenario.ForceNodeOnTerrainPoint
Enclosing class:
ForceElevationCalculator.ElevationDeterminationScenario

protected abstract static class ForceElevationCalculator.ElevationDeterminationScenario.ForceNode
extends Object

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 ForceElevationCalculator.ElevationDeterminationScenario.ForceNode()
           
 
Method Summary
 void changeCurrentEle(double up)
          changes the current elevation (in this object, not the underlying grid).
 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

ForceElevationCalculator.ElevationDeterminationScenario.ForceNode

protected ForceElevationCalculator.ElevationDeterminationScenario.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.


writeResult

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