public class TLspAboveTerrainCameraConstraint3D<T extends TLspViewXYZWorldTransformation3D> extends ALspCameraConstraint<T>
setMinAltitude
.Constructor and Description |
---|
TLspAboveTerrainCameraConstraint3D() |
Modifier and Type | Method and Description |
---|---|
void |
constrain(T aSource,
T aTargetSFCT)
Constrains the given view world transformation.
|
double |
getMinAltitude()
Returns the minimum altitude over the terrain the eye point should have.
|
void |
setMinAltitude(double aMinAltitude)
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)
ALspCameraConstraint
Constrains the given view world transformation. This method can be implemented by
modifying aTargetSFCT
.
When the original view world transformation is
modified, the changes are first applied on a copy of the transformation (aTargetSFCT
).
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.
constrain
in class 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.