Package com.luciad.transformation
Class TLcdLinearModelZWorldTransformation
java.lang.Object
com.luciad.transformation.TLcdLinearModelZWorldTransformation
- All Implemented Interfaces:
ILcdModelZWorldTransformation
public class TLcdLinearModelZWorldTransformation
extends Object
implements ILcdModelZWorldTransformation
A model z to world z transformation that scales the model zs linearly by
a given factor. If the world reference that has been set on the transformation is an
instance of
ILcdGridReference
, values will also be scaled using the unit of
measure of the world reference.-
Constructor Summary
ConstructorDescriptionCreates a new linear model to world transformation using 1 as scale factor.TLcdLinearModelZWorldTransformation
(double aFactor) Creates a new linear model to world transformation using a specified scale factor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the model reference that is taken into account when transforming points.Returns the world reference that is taken into account when transforming points.double
modelZ2worldZ
(ILcdPoint aModelPoint) Transforms a specified model z value to a world z value.void
setModelReference
(ILcdModelReference aModelReference) Sets the model reference that will be taken into account when transforming points.void
setWorldReference
(ILcdXYZWorldReference aWorldReference) Sets the world reference that will be taken into account when transforming points.double
worldZ2ModelZ
(ILcdPoint aWorldPoint) Transforms a specified world z value to a model z value.
-
Constructor Details
-
TLcdLinearModelZWorldTransformation
public TLcdLinearModelZWorldTransformation()Creates a new linear model to world transformation using 1 as scale factor. -
TLcdLinearModelZWorldTransformation
public TLcdLinearModelZWorldTransformation(double aFactor) Creates a new linear model to world transformation using a specified scale factor.- Parameters:
aFactor
- the linear scale factor used to transform model values in to world values
-
-
Method Details
-
getModelReference
Description copied from interface:ILcdModelZWorldTransformation
Returns the model reference that is taken into account when transforming points.- Specified by:
getModelReference
in interfaceILcdModelZWorldTransformation
- Returns:
- the model reference that is taken into account when transforming points
- See Also:
-
setModelReference
Description copied from interface:ILcdModelZWorldTransformation
Sets the model reference that will be taken into account when transforming points.- Specified by:
setModelReference
in interfaceILcdModelZWorldTransformation
- Parameters:
aModelReference
- the model reference that will be taken into account when transforming points- See Also:
-
getWorldReference
Description copied from interface:ILcdModelZWorldTransformation
Returns the world reference that is taken into account when transforming points.- Specified by:
getWorldReference
in interfaceILcdModelZWorldTransformation
- Returns:
- the world reference that is taken into account when transforming points
- See Also:
-
setWorldReference
Description copied from interface:ILcdModelZWorldTransformation
Sets the world reference that will be taken into account when transforming points.- Specified by:
setWorldReference
in interfaceILcdModelZWorldTransformation
- Parameters:
aWorldReference
- the world reference that will be taken into account when transforming points- See Also:
-
modelZ2worldZ
Description copied from interface:ILcdModelZWorldTransformation
Transforms a specified model z value to a world z value.- Specified by:
modelZ2worldZ
in interfaceILcdModelZWorldTransformation
- Parameters:
aModelPoint
- the model point for which to transform the z value- Returns:
- the transformed model value in world coordinates
- See Also:
-
worldZ2ModelZ
Description copied from interface:ILcdModelZWorldTransformation
Transforms a specified world z value to a model z value.- Specified by:
worldZ2ModelZ
in interfaceILcdModelZWorldTransformation
- Parameters:
aWorldPoint
- the world point for which to transform the z value- Returns:
- the transformed world value in model coordinates
- See Also:
-