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
ConstructorsConstructorDescriptionCreates 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.voidmodelBounds2worldSFCT(ILcdBounds aModelBounds, ILcd2DEditableBounds aWorldBoundsSFCT) Transforms model bounds into world bounds.voidmodelPoint2worldSFCT(ILcdPoint aModelPoint, ILcd2DEditablePoint aWorldPointSFCT) Transforms a model point into a world point.voidsetModelReference(ILcdModelReference aModelReference) Sets the model reference of thisILcdModelXYWorldTransformation.voidsetXYWorldReference(ILcdXYWorldReference aXYWorldReference) Sets the world reference of thisILcdModelXYWorldTransformation.voidworldBounds2modelSFCT(ILcdBounds aWorldBounds, ILcd3DEditableBounds aModelBoundsSFCT) Transforms world bounds into model bounds.voidworldPoint2modelSFCT(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 callsetModelReferenceandsetXYWorldReferencefirst. -
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:ILcdModelXYWorldTransformationGets the model reference of thisILcdModelXYWorldTransformation.- Specified by:
getModelReferencein interfaceILcdModelXYWorldTransformation- Returns:
- the model reference of this
ILcdModelXYWorldTransformation. - See Also:
-
setModelReference
Description copied from interface:ILcdModelXYWorldTransformationSets the model reference of thisILcdModelXYWorldTransformation.- Specified by:
setModelReferencein interfaceILcdModelXYWorldTransformation- Parameters:
aModelReference- the model reference to be used in thisILcdModelXYWorldTransformation.- See Also:
-
getXYWorldReference
Description copied from interface:ILcdModelXYWorldTransformationGets the world reference of thisILcdModelXYWorldTransformation.- Specified by:
getXYWorldReferencein interfaceILcdModelXYWorldTransformation- Returns:
- the world reference of this
ILcdModelXYWorldTransformation. - See Also:
-
setXYWorldReference
Description copied from interface:ILcdModelXYWorldTransformationSets the world reference of thisILcdModelXYWorldTransformation.- Specified by:
setXYWorldReferencein 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:ILcdModelXYWorldTransformationTransforms a model point into a world point.- Specified by:
modelPoint2worldSFCTin 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:ILcdModelXYWorldTransformationTransforms a world point into a model point.- Specified by:
worldPoint2modelSFCTin 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:ILcdModelXYWorldTransformationTransforms model bounds into world bounds.- Specified by:
modelBounds2worldSFCTin 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:ILcdModelXYWorldTransformationTransforms world bounds into model bounds.- Specified by:
worldBounds2modelSFCTin 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:ILcdCloneableMakes
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:
clonein interfaceILcdCloneable- Overrides:
clonein classObject- See Also:
-