Package com.luciad.transformation
Class TLcdDefaultModelXYWorldTransformation
java.lang.Object
com.luciad.transformation.TLcdDefaultModelXYWorldTransformation
- All Implemented Interfaces:
ILcdModelXYWorldTransformation
,ILcdCloneable
,Serializable
,Cloneable
public class TLcdDefaultModelXYWorldTransformation
extends Object
implements ILcdModelXYWorldTransformation
Default implementation of ILcdModelXYWorldTransformation. It aggregates the following transformations:
This class is thread-safe.
Model reference | Transformation |
---|---|
ILcdGeodeticReference | TLcdGeodetic2Grid |
ILcdGridReference | TLcdGrid2Grid |
ILcdGeoidReference | TLcdGeoid2Grid |
ILcdTopocentricReference | TLcdTopocentric2Grid |
ILcdGeocentricReference | TLcdGeocentric2Grid |
TLcdXYModelReference | TLcdModelXYWorldTransformation |
Equal references | TLcdModelXYWorldTransformation |
- Since:
- 9.0
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new model world transformation.TLcdDefaultModelXYWorldTransformation
(ILcdModelReference aModelReference, ILcdXYWorldReference aXYWorldReference) Creates a new model world transformation using the given model and world reference. -
Method Summary
Modifier and TypeMethodDescriptionclone()
MakesObject.clone()
public.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
-
TLcdDefaultModelXYWorldTransformation
public TLcdDefaultModelXYWorldTransformation()Creates a new model world transformation. Before using this class, it is necessary to callsetModelReference
andsetXYWorldReference
first. -
TLcdDefaultModelXYWorldTransformation
public TLcdDefaultModelXYWorldTransformation(ILcdModelReference aModelReference, ILcdXYWorldReference aXYWorldReference) Creates a new model world transformation using the given model and world reference.- Parameters:
aModelReference
- the model reference to be used in this transformationaXYWorldReference
- the world reference to be used in this transformation
-
-
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 Description copied from interface:ILcdModelXYWorldTransformation
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
Description copied from interface:ILcdCloneable
Makes
When for example extending fromObject.clone()
public.java.lang.Object
, it can be implemented like this:public Object clone() { try { return super.clone(); } catch ( CloneNotSupportedException e ) { // Cannot happen: extends from Object and implements Cloneable (see also Object.clone) throw new RuntimeException( e ); } }
- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classObject
- See Also:
-