Package com.luciad.transformation
Class TLcdDefaultModelXYZWorldTransformation
java.lang.Object
com.luciad.transformation.TLcdDefaultModelXYZWorldTransformation
- All Implemented Interfaces:
ILcdModelXYZWorldTransformation,Serializable
public class TLcdDefaultModelXYZWorldTransformation
extends Object
implements ILcdModelXYZWorldTransformation
Default implementation of
ILcdModelXYZWorldTransformation.
Transformations between any of the following references are supported:
ILcdGeodeticReferenceILcdGridReferenceILcdGeocentricReferenceILcdTopocentricReferenceILcdGeoidReferenceEqualreferences
TLcdCartesianReference instances.
Two TLcdCartesianReference instances are considered compatible if, for each axis:
- The units of measure convertible, i.e. have the same
measure type code. In this case, unit-of-measure conversions are used for the transformation. - The unit of measure of source, target or both is unspecified (null). In this case, the value is kept as-is, no conversion is done.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new model world transformation.TLcdDefaultModelXYZWorldTransformation(ILcdModelReference aModelReference, ILcdXYZWorldReference aXYZWorldReference) Creates a new model world transformation using the given model and world reference. -
Method Summary
Modifier and TypeMethodDescriptionGets the model reference of thisILcdModelXYZWorldTransformation.Gets the world reference of thisILcdModelXYZWorldTransformation.voidmodelBounds2worldSFCT(ILcdBounds aBounds, ILcd3DEditableBounds aEditableBounds) Transforms model bounds into world bounds.voidmodelPoint2worldSFCT(ILcdPoint aPoint, ILcd3DEditablePoint aEditablePoint) Transforms a model point into a world point.voidsetModelReference(ILcdModelReference aModelReference) Sets the model reference of thisILcdModelXYZWorldTransformation.voidsetXYZWorldReference(ILcdXYZWorldReference aXYZWorldReference) Sets the world reference of thisILcdModelXYZWorldTransformation.voidworldBounds2modelSFCT(ILcdBounds aBounds, ILcd3DEditableBounds aEditableBounds) Transforms world bounds into model bounds.voidworldPoint2modelSFCT(ILcdPoint aPoint, ILcd3DEditablePoint aEditablePoint) Transforms a world point into a model point.
-
Constructor Details
-
TLcdDefaultModelXYZWorldTransformation
public TLcdDefaultModelXYZWorldTransformation()Creates a new model world transformation. Before using this class, it is necessary to callsetModelReferenceandsetXYZWorldReferencefirst. -
TLcdDefaultModelXYZWorldTransformation
public TLcdDefaultModelXYZWorldTransformation(ILcdModelReference aModelReference, ILcdXYZWorldReference aXYZWorldReference) Creates a new model world transformation using the given model and world reference.- Parameters:
aModelReference- the model reference to be used in this transformationaXYZWorldReference- the world reference to be used in this transformation
-
-
Method Details
-
setModelReference
Description copied from interface:ILcdModelXYZWorldTransformationSets the model reference of thisILcdModelXYZWorldTransformation.- Specified by:
setModelReferencein interfaceILcdModelXYZWorldTransformation- Parameters:
aModelReference- the model reference to be used in thisILcdModelXYZWorldTransformation.- See Also:
-
setXYZWorldReference
Description copied from interface:ILcdModelXYZWorldTransformationSets the world reference of thisILcdModelXYZWorldTransformation.- Specified by:
setXYZWorldReferencein interfaceILcdModelXYZWorldTransformation- Parameters:
aXYZWorldReference- the world reference to be used in thisILcdModelXYZWorldTransformation.- See Also:
-
getModelReference
Description copied from interface:ILcdModelXYZWorldTransformationGets the model reference of thisILcdModelXYZWorldTransformation.- Specified by:
getModelReferencein interfaceILcdModelXYZWorldTransformation- Returns:
- the model reference of this
ILcdModelXYZWorldTransformation. - See Also:
-
getXYZWorldReference
Description copied from interface:ILcdModelXYZWorldTransformationGets the world reference of thisILcdModelXYZWorldTransformation.- Specified by:
getXYZWorldReferencein interfaceILcdModelXYZWorldTransformation- Returns:
- the world reference of this
ILcdModelXYZWorldTransformation. - See Also:
-
modelBounds2worldSFCT
public void modelBounds2worldSFCT(ILcdBounds aBounds, ILcd3DEditableBounds aEditableBounds) throws TLcdNoBoundsException Description copied from interface:ILcdModelXYZWorldTransformationTransforms model bounds into world bounds.- Specified by:
modelBounds2worldSFCTin interfaceILcdModelXYZWorldTransformation- Parameters:
aBounds- bounds in model reference system.aEditableBounds- bounds in world reference system upon completion of the method.- Throws:
TLcdNoBoundsException- if the model bounds doesn't have valid corresponding bounds in world space, or if it isundefined.
-
modelPoint2worldSFCT
public void modelPoint2worldSFCT(ILcdPoint aPoint, ILcd3DEditablePoint aEditablePoint) throws TLcdOutOfBoundsException Description copied from interface:ILcdModelXYZWorldTransformationTransforms a model point into a world point.- Specified by:
modelPoint2worldSFCTin interfaceILcdModelXYZWorldTransformation- Parameters:
aPoint- coordinate in model reference system.aEditablePoint- coordinate in world reference system upon completion of the method.- Throws:
TLcdOutOfBoundsException- if the model point is outside the valid area of the projection.
-
worldBounds2modelSFCT
public void worldBounds2modelSFCT(ILcdBounds aBounds, ILcd3DEditableBounds aEditableBounds) throws TLcdOutOfBoundsException Description copied from interface:ILcdModelXYZWorldTransformationTransforms world bounds into model bounds.- Specified by:
worldBounds2modelSFCTin interfaceILcdModelXYZWorldTransformation- Parameters:
aBounds- bounds in world reference system.aEditableBounds- bounds in model reference system upon completion of the method.- Throws:
TLcdOutOfBoundsException- if the world bounds are outside the valid area of the projection, or if it isundefined.
-
worldPoint2modelSFCT
public void worldPoint2modelSFCT(ILcdPoint aPoint, ILcd3DEditablePoint aEditablePoint) throws TLcdOutOfBoundsException Description copied from interface:ILcdModelXYZWorldTransformationTransforms a world point into a model point.- Specified by:
worldPoint2modelSFCTin interfaceILcdModelXYZWorldTransformation- Parameters:
aPoint- coordinate in world reference system.aEditablePoint- coordinate in model reference system upon completion of the method.- Throws:
TLcdOutOfBoundsException- if the world point is outside the valid area of the projection.
-