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:
ILcdGeodeticReference
ILcdGridReference
ILcdGeocentricReference
ILcdTopocentricReference
ILcdGeoidReference
Equal
references
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
ConstructorDescriptionCreates 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
.void
modelBounds2worldSFCT
(ILcdBounds aBounds, ILcd3DEditableBounds aEditableBounds) Transforms model bounds into world bounds.void
modelPoint2worldSFCT
(ILcdPoint aPoint, ILcd3DEditablePoint aEditablePoint) Transforms a model point into a world point.void
setModelReference
(ILcdModelReference aModelReference) Sets the model reference of thisILcdModelXYZWorldTransformation
.void
setXYZWorldReference
(ILcdXYZWorldReference aXYZWorldReference) Sets the world reference of thisILcdModelXYZWorldTransformation
.void
worldBounds2modelSFCT
(ILcdBounds aBounds, ILcd3DEditableBounds aEditableBounds) Transforms world bounds into model bounds.void
worldPoint2modelSFCT
(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 callsetModelReference
andsetXYZWorldReference
first. -
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:ILcdModelXYZWorldTransformation
Sets the model reference of thisILcdModelXYZWorldTransformation
.- Specified by:
setModelReference
in interfaceILcdModelXYZWorldTransformation
- Parameters:
aModelReference
- the model reference to be used in thisILcdModelXYZWorldTransformation
.- See Also:
-
setXYZWorldReference
Description copied from interface:ILcdModelXYZWorldTransformation
Sets the world reference of thisILcdModelXYZWorldTransformation
.- Specified by:
setXYZWorldReference
in interfaceILcdModelXYZWorldTransformation
- Parameters:
aXYZWorldReference
- the world reference to be used in thisILcdModelXYZWorldTransformation
.- See Also:
-
getModelReference
Description copied from interface:ILcdModelXYZWorldTransformation
Gets the model reference of thisILcdModelXYZWorldTransformation
.- Specified by:
getModelReference
in interfaceILcdModelXYZWorldTransformation
- Returns:
- the model reference of this
ILcdModelXYZWorldTransformation
. - See Also:
-
getXYZWorldReference
Description copied from interface:ILcdModelXYZWorldTransformation
Gets the world reference of thisILcdModelXYZWorldTransformation
.- Specified by:
getXYZWorldReference
in interfaceILcdModelXYZWorldTransformation
- Returns:
- the world reference of this
ILcdModelXYZWorldTransformation
. - See Also:
-
modelBounds2worldSFCT
public void modelBounds2worldSFCT(ILcdBounds aBounds, ILcd3DEditableBounds aEditableBounds) throws TLcdNoBoundsException Description copied from interface:ILcdModelXYZWorldTransformation
Transforms model bounds into world bounds.- Specified by:
modelBounds2worldSFCT
in 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:ILcdModelXYZWorldTransformation
Transforms a model point into a world point.- Specified by:
modelPoint2worldSFCT
in 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:ILcdModelXYZWorldTransformation
Transforms world bounds into model bounds.- Specified by:
worldBounds2modelSFCT
in 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:ILcdModelXYZWorldTransformation
Transforms a world point into a model point.- Specified by:
worldPoint2modelSFCT
in 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.
-