public class TLspAboveTerrainCameraConstraint3D<T extends TLspViewXYZWorldTransformation3D> extends ALspCameraConstraint<T>
|Constructor and Description|
|Modifier and Type||Method and Description|
Constrains the given view world transformation.
Returns the minimum altitude over the terrain the eye point should have.
Sets the minimum altitude over the terrain the eye point should have.
addConstraintChangeListener, fireConstraintChangeEvent, removeConstraintChangeListener
public double getMinAltitude()
public void setMinAltitude(double aMinAltitude)
aMinAltitude- the minimum altitude.
public void constrain(T aSource, T aTargetSFCT)
Constrains the given view world transformation. This method can be implemented by
When the original view world transformation is
modified, the changes are first applied on a copy of the transformation (
This copy is passed to the constraints, which can also modify it. After all constraints are
evaluated, all changes are applied on the original transformation.
aSource is the original transformation. It is given as context information.
ALspCameraConstraint<T extends TLspViewXYZWorldTransformation3D>
aSource- the original transformation, on which all changes will be applied after all constraints are evaluated. It is given as context information.
aTargetSFCT- the view transformation copy which contains the modifications. Constraints should be applied on this transformation.