|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectForceElevationCalculator.ForceElevationDeterminationScenario.NodeElevationForce
protected static final class ForceElevationCalculator.ForceElevationDeterminationScenario.NodeElevationForce
force trying to keep nodes with tagged elevation (or, with a weaker force, TerrainNodes with elevation data) close to that value
| Constructor Summary | |
|---|---|
ForceElevationCalculator.ForceElevationDeterminationScenario.NodeElevationForce(AdvancedAbstractElevationCalculator.AbstractElevationDeterminationScenario.ForceNode node,
float ele,
boolean tagged)
|
|
| Method Summary | |
|---|---|
void |
apply()
applies this force to the nodes affected by it. |
void |
prepare(float forceScale)
Calculates the effect of the next application, but doesn't modify the ForceNodes yet. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForceElevationCalculator.ForceElevationDeterminationScenario.NodeElevationForce(AdvancedAbstractElevationCalculator.AbstractElevationDeterminationScenario.ForceNode node,
float ele,
boolean tagged)
| Method Detail |
|---|
public void prepare(float forceScale)
ForceElevationCalculator.ForceElevationDeterminationScenario.ForceForceNodes yet.
Must be called once before each ForceElevationCalculator.ForceElevationDeterminationScenario.Force.apply() call.
This method has been introduced to remove effects of the
force order (otherwise, later forces could "react"
to the previous ones).
prepare in interface ForceElevationCalculator.ForceElevationDeterminationScenario.ForceforceScale - scale factor for the force's strengthpublic void apply()
ForceElevationCalculator.ForceElevationDeterminationScenario.Force
apply in interface ForceElevationCalculator.ForceElevationDeterminationScenario.Force
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||