Package com.luciad.format.raster
Class TLcdRasterOffsetModelXYZWorldTransformation
java.lang.Object
com.luciad.format.raster.TLcdRasterOffsetModelXYZWorldTransformation
- All Implemented Interfaces:
ILcdModelXYZWorldTransformation
,Serializable
public class TLcdRasterOffsetModelXYZWorldTransformation
extends Object
implements ILcdModelXYZWorldTransformation
This
ILcdModelXYZWorldTransformation
implementation takes the values of an
ILcdRaster
into account when transforming model Z coordinates.
It adds the value of underlying rasters to the model Z before applying the actual
transformation to world coordinates. Similarly, the raster value is subtracted from
the model Z after transforming from world to model coordinates.- Since:
- 9.1
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a new raster offset wrapper around the specified transformation. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRaster
(ILcdRaster aRaster, ILcdModelReference aRasterModelReference) Adds an elevation raster, from which point elevations can be retrieved.Gets the model reference of thisILcdModelXYZWorldTransformation
.Gets the world reference of thisILcdModelXYZWorldTransformation
.void
modelBounds2worldSFCT
(ILcdBounds aBounds, ILcd3DEditableBounds aILcd3DEditableBounds) Transforms model bounds into world bounds.void
modelPoint2worldSFCT
(ILcdPoint aILcdPoint, ILcd3DEditablePoint aILcd3DEditablePoint) Transforms a model point into a world point.void
removeRaster
(ILcdRaster aRaster) Removes the raster from the list of rasters to take into account.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 aILcd3DEditableBounds) Transforms world bounds into model bounds.void
worldPoint2modelSFCT
(ILcdPoint aILcdPoint, ILcd3DEditablePoint aILcd3DEditablePoint) Transforms a world point into a model point.
-
Constructor Details
-
TLcdRasterOffsetModelXYZWorldTransformation
Constructs a new raster offset wrapper around the specified transformation.- Parameters:
aTrans
- the transformation to apply a raster offset to
-
-
Method Details
-
addRaster
Adds an elevation raster, from which point elevations can be retrieved.- Parameters:
aRaster
- a raster containing elevations.aRasterModelReference
- the raster's model reference.
-
removeRaster
Removes the raster from the list of rasters to take into account.- Parameters:
aRaster
- theILcdRaster
to be removed
-
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:
-
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:
-
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:
-
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:
-
modelBounds2worldSFCT
public void modelBounds2worldSFCT(ILcdBounds aBounds, ILcd3DEditableBounds aILcd3DEditableBounds) 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.aILcd3DEditableBounds
- 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 aILcdPoint, ILcd3DEditablePoint aILcd3DEditablePoint) throws TLcdOutOfBoundsException Description copied from interface:ILcdModelXYZWorldTransformation
Transforms a model point into a world point.- Specified by:
modelPoint2worldSFCT
in interfaceILcdModelXYZWorldTransformation
- Parameters:
aILcdPoint
- coordinate in model reference system.aILcd3DEditablePoint
- 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 aILcd3DEditableBounds) 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.aILcd3DEditableBounds
- 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 aILcdPoint, ILcd3DEditablePoint aILcd3DEditablePoint) throws TLcdOutOfBoundsException Description copied from interface:ILcdModelXYZWorldTransformation
Transforms a world point into a model point.- Specified by:
worldPoint2modelSFCT
in interfaceILcdModelXYZWorldTransformation
- Parameters:
aILcdPoint
- coordinate in world reference system.aILcd3DEditablePoint
- coordinate in model reference system upon completion of the method.- Throws:
TLcdOutOfBoundsException
- if the world point is outside the valid area of the projection.
-