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
ConstructorsConstructorDescriptionCreates 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.doublemodelZ2worldZ(ILcdPoint aModelPoint) Transforms a specified model z value to a world z value.voidsetModelReference(ILcdModelReference aModelReference) Sets the model reference that will be taken into account when transforming points.voidsetWorldReference(ILcdXYZWorldReference aWorldReference) Sets the world reference that will be taken into account when transforming points.doubleworldZ2ModelZ(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:ILcdModelZWorldTransformationReturns the model reference that is taken into account when transforming points.- Specified by:
getModelReferencein interfaceILcdModelZWorldTransformation- Returns:
- the model reference that is taken into account when transforming points
- See Also:
-
setModelReference
Description copied from interface:ILcdModelZWorldTransformationSets the model reference that will be taken into account when transforming points.- Specified by:
setModelReferencein interfaceILcdModelZWorldTransformation- Parameters:
aModelReference- the model reference that will be taken into account when transforming points- See Also:
-
getWorldReference
Description copied from interface:ILcdModelZWorldTransformationReturns the world reference that is taken into account when transforming points.- Specified by:
getWorldReferencein interfaceILcdModelZWorldTransformation- Returns:
- the world reference that is taken into account when transforming points
- See Also:
-
setWorldReference
Description copied from interface:ILcdModelZWorldTransformationSets the world reference that will be taken into account when transforming points.- Specified by:
setWorldReferencein interfaceILcdModelZWorldTransformation- Parameters:
aWorldReference- the world reference that will be taken into account when transforming points- See Also:
-
modelZ2worldZ
Description copied from interface:ILcdModelZWorldTransformationTransforms a specified model z value to a world z value.- Specified by:
modelZ2worldZin 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:ILcdModelZWorldTransformationTransforms a specified world z value to a model z value.- Specified by:
worldZ2ModelZin interfaceILcdModelZWorldTransformation- Parameters:
aWorldPoint- the world point for which to transform the z value- Returns:
- the transformed world value in model coordinates
- See Also:
-