Package com.luciad.transformation
Class TLcdIdentityModelXYWorldTransformation
java.lang.Object
com.luciad.transformation.TLcdIdentityModelXYWorldTransformation
- All Implemented Interfaces:
ILcdModelXYWorldTransformation
,ILcdCloneable
,Serializable
,Cloneable
public class TLcdIdentityModelXYWorldTransformation
extends Object
implements ILcdModelXYWorldTransformation
This ILcdModelXYWorldTransformation
defines an identify transformation between
an ILcdModelReference
and an ILcdXYWorldReference
.
This implementation doesn't perform any transformation. It is a unitary operation,
assuming that the ILcdModelReference
and the ILcdXYWorldReference
are the same coordinate system.
See TLcdDefaultModelXYWorldTransformation
for a non-identity transformation that works with
all supported LuciadLightspeed references.
- Since:
- 2014.0
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor with a nullILcdModelReference
and a nullILcdXYWorldReference
.TLcdIdentityModelXYWorldTransformation
(ILcdModelReference aModelReference, ILcdXYWorldReference aXYWorldReference) Default constructor with aILcdModelReference
and aILcdXYWorldReference
. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deep clone.Gets the model reference of thisILcdModelXYWorldTransformation
.Gets the world reference of thisILcdModelXYWorldTransformation
.void
modelBounds2worldSFCT
(ILcdBounds aModelBounds, ILcd2DEditableBounds aWorldBoundsSFCT) Transforms model bounds into world bounds.void
modelPoint2worldSFCT
(ILcdPoint aModelPoint, ILcd2DEditablePoint aWorldPointSFCT) Transforms a model point into a world point.void
setModelReference
(ILcdModelReference aModelReference) Sets the model reference of thisILcdModelXYWorldTransformation
.void
setXYWorldReference
(ILcdXYWorldReference aXYWorldReference) Sets the world reference of thisILcdModelXYWorldTransformation
.void
worldBounds2modelSFCT
(ILcdBounds aWorldBounds, ILcd3DEditableBounds aModelBoundsSFCT) Transforms world bounds into model bounds.void
worldPoint2modelSFCT
(ILcdPoint aWorldPoint, ILcd3DEditablePoint aModelPointSFCT) Transforms a world point into a model point.
-
Constructor Details
-
TLcdIdentityModelXYWorldTransformation
public TLcdIdentityModelXYWorldTransformation()Default constructor with a nullILcdModelReference
and a nullILcdXYWorldReference
. -
TLcdIdentityModelXYWorldTransformation
public TLcdIdentityModelXYWorldTransformation(ILcdModelReference aModelReference, ILcdXYWorldReference aXYWorldReference) Default constructor with aILcdModelReference
and aILcdXYWorldReference
.- Parameters:
aModelReference
- the model referenceaXYWorldReference
- the world reference
-
-
Method Details
-
getModelReference
Description copied from interface:ILcdModelXYWorldTransformation
Gets the model reference of thisILcdModelXYWorldTransformation
.- Specified by:
getModelReference
in interfaceILcdModelXYWorldTransformation
- Returns:
- the model reference of this
ILcdModelXYWorldTransformation
. - See Also:
-
setModelReference
Description copied from interface:ILcdModelXYWorldTransformation
Sets the model reference of thisILcdModelXYWorldTransformation
.- Specified by:
setModelReference
in interfaceILcdModelXYWorldTransformation
- Parameters:
aModelReference
- the model reference to be used in thisILcdModelXYWorldTransformation
.- See Also:
-
getXYWorldReference
Description copied from interface:ILcdModelXYWorldTransformation
Gets the world reference of thisILcdModelXYWorldTransformation
.- Specified by:
getXYWorldReference
in interfaceILcdModelXYWorldTransformation
- Returns:
- the world reference of this
ILcdModelXYWorldTransformation
. - See Also:
-
setXYWorldReference
Description copied from interface:ILcdModelXYWorldTransformation
Sets the world reference of thisILcdModelXYWorldTransformation
.- Specified by:
setXYWorldReference
in interfaceILcdModelXYWorldTransformation
- Parameters:
aXYWorldReference
- the world reference to be used in thisILcdModelXYWorldTransformation
.- See Also:
-
modelPoint2worldSFCT
public void modelPoint2worldSFCT(ILcdPoint aModelPoint, ILcd2DEditablePoint aWorldPointSFCT) throws TLcdOutOfBoundsException Transforms a model point into a world point.- Specified by:
modelPoint2worldSFCT
in interfaceILcdModelXYWorldTransformation
- Parameters:
aModelPoint
- coordinate in model reference system.aWorldPointSFCT
- coordinate in world reference system upon completion of the method.- Throws:
TLcdOutOfBoundsException
- if the model point is outside the valid area of the projection.
-
worldPoint2modelSFCT
public void worldPoint2modelSFCT(ILcdPoint aWorldPoint, ILcd3DEditablePoint aModelPointSFCT) throws TLcdOutOfBoundsException Description copied from interface:ILcdModelXYWorldTransformation
Transforms a world point into a model point.- Specified by:
worldPoint2modelSFCT
in interfaceILcdModelXYWorldTransformation
- Parameters:
aWorldPoint
- coordinate in world reference system.aModelPointSFCT
- coordinate in model reference system upon completion of the method.- Throws:
TLcdOutOfBoundsException
- if the world point is outside the valid area of the projection.
-
modelBounds2worldSFCT
public void modelBounds2worldSFCT(ILcdBounds aModelBounds, ILcd2DEditableBounds aWorldBoundsSFCT) throws TLcdNoBoundsException Description copied from interface:ILcdModelXYWorldTransformation
Transforms model bounds into world bounds.- Specified by:
modelBounds2worldSFCT
in interfaceILcdModelXYWorldTransformation
- Parameters:
aModelBounds
- bounds in model reference system.aWorldBoundsSFCT
- 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
.
-
worldBounds2modelSFCT
public void worldBounds2modelSFCT(ILcdBounds aWorldBounds, ILcd3DEditableBounds aModelBoundsSFCT) throws TLcdOutOfBoundsException Description copied from interface:ILcdModelXYWorldTransformation
Transforms world bounds into model bounds.- Specified by:
worldBounds2modelSFCT
in interfaceILcdModelXYWorldTransformation
- Parameters:
aWorldBounds
- bounds in world reference system.aModelBoundsSFCT
- 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
.
-
clone
Deep clone.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classObject
- See Also:
-