Package com.luciad.transformation
Class TLcdGeodetic2Grid
java.lang.Object
com.luciad.transformation.TLcdGeodetic2Grid
- All Implemented Interfaces:
ILcdModelXYWorldTransformation
,ILcdCloneable
,Serializable
,Cloneable
public final class TLcdGeodetic2Grid
extends Object
implements ILcdModelXYWorldTransformation, Cloneable
This
ILcdModelXYWorldTransformation
defines a transformation between
an ILcdGeodeticReference
and an ILcdXYWorldReference
.
It is required that the reference datum of the geodetic datum of the
ILcdGeodeticReference
and the reference datum of the
ILcdXYWorldReference
are the same.
This class is thread safe.
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor withnull
ILcdGeodeticReference
andnull
ILcdGridReference
.TLcdGeodetic2Grid
(ILcdModelReference aModelReferenceGeodetic, ILcdXYWorldReference aXYWorldReferenceGrid) Constructor with anILcdModelReference
and anILcdXYWorldReference
. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Implements a deep clone.boolean
int
getDiv()
Gets the number of divisions made for bounding box transformations.Gets theILcdModelReference
of thisTLcdGeodetic2Grid
.Gets theILcdXYWorldReference
of thisTLcdGeodetic2Grid
.int
hashCode()
void
modelBounds2worldSFCT
(ILcdBounds aModelBounds, ILcd2DEditableBounds aWorldBoundsSFCT) Transforms model bounds into world bounds.void
modelPoint2worldSFCT
(ILcdPoint aModelPoint, ILcd2DEditablePoint aWorldPoint) Transforms a model point into a world point.void
setDiv
(int aDiv) The propertyaDiv
indicates the number of divisions made for bounding box transformations from world to model in order to approximate the bounding box of the model.void
setModelReference
(ILcdModelReference aModelReference) Sets theILcdModelReference
of thisTLcdGeodetic2Grid
.void
setXYWorldReference
(ILcdXYWorldReference aXYWorldReference) Sets theILcdXYWorldReference
of thisTLcdGeodetic2Grid
.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
-
TLcdGeodetic2Grid
public TLcdGeodetic2Grid()Default constructor withnull
ILcdGeodeticReference
andnull
ILcdGridReference
. -
TLcdGeodetic2Grid
public TLcdGeodetic2Grid(ILcdModelReference aModelReferenceGeodetic, ILcdXYWorldReference aXYWorldReferenceGrid) Constructor with anILcdModelReference
and anILcdXYWorldReference
.- Parameters:
aModelReferenceGeodetic
- aILcdModelReference
which should be an implementation of
ILcdGeodeticReference
.aXYWorldReferenceGrid
- the reference of the XY world plane.
-
-
Method Details
-
getModelReference
Gets theILcdModelReference
of thisTLcdGeodetic2Grid
.- Specified by:
getModelReference
in interfaceILcdModelXYWorldTransformation
- Returns:
ILcdModelReference
of thisTLcdGeodetic2Grid
.- See Also:
-
setModelReference
Sets theILcdModelReference
of thisTLcdGeodetic2Grid
.- Specified by:
setModelReference
in interfaceILcdModelXYWorldTransformation
- Parameters:
aModelReference
- ILcdModelReference that is also an ILcdGeodeticReference.- Throws:
IllegalArgumentException
- when the model reference passed is not an instance ofILcdGeodeticReference
- See Also:
-
getXYWorldReference
Gets theILcdXYWorldReference
of thisTLcdGeodetic2Grid
.- Specified by:
getXYWorldReference
in interfaceILcdModelXYWorldTransformation
- Returns:
ILcdXYWorldReference
of thisTLcdGeodetic2Grid
.- See Also:
-
setXYWorldReference
Sets theILcdXYWorldReference
of thisTLcdGeodetic2Grid
.- Specified by:
setXYWorldReference
in interfaceILcdModelXYWorldTransformation
- Parameters:
aXYWorldReference
- ILcdXYWorldReference that is also an ILcdGridReference.- Throws:
IllegalArgumentException
- when the world reference passed is not an instance ofILcdGridReference
.- See Also:
-
setDiv
public void setDiv(int aDiv) The propertyaDiv
indicates the number of divisions made for bounding box transformations from world to model in order to approximate the bounding box of the model. The number of point transformations performed is proportional toaDiv*aDiv
. The more divisions, the more precise the model bounding box will be.- Parameters:
aDiv
- number of divisions to use for bounding box transformations.- See Also:
-
getDiv
public int getDiv()Gets the number of divisions made for bounding box transformations.- Returns:
- the number of divisions made for bounding box transformations.
- See Also:
-
modelPoint2worldSFCT
public void modelPoint2worldSFCT(ILcdPoint aModelPoint, ILcd2DEditablePoint aWorldPoint) throws TLcdOutOfBoundsException Transforms a model point into a world point.- Specified by:
modelPoint2worldSFCT
in interfaceILcdModelXYWorldTransformation
- Parameters:
aModelPoint
- coordinate in model reference system.aWorldPoint
- 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
Implements a deep clone.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classObject
- See Also:
-
equals
-
hashCode
public int hashCode()
-