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
ConstructorsConstructorDescriptionConstructs a new raster offset wrapper around the specified transformation. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRaster(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.voidmodelBounds2worldSFCT(ILcdBounds aBounds, ILcd3DEditableBounds aILcd3DEditableBounds) Transforms model bounds into world bounds.voidmodelPoint2worldSFCT(ILcdPoint aILcdPoint, ILcd3DEditablePoint aILcd3DEditablePoint) Transforms a model point into a world point.voidremoveRaster(ILcdRaster aRaster) Removes the raster from the list of rasters to take into account.voidsetModelReference(ILcdModelReference aModelReference) Sets the model reference of thisILcdModelXYZWorldTransformation.voidsetXYZWorldReference(ILcdXYZWorldReference aXYZWorldReference) Sets the world reference of thisILcdModelXYZWorldTransformation.voidworldBounds2modelSFCT(ILcdBounds aBounds, ILcd3DEditableBounds aILcd3DEditableBounds) Transforms world bounds into model bounds.voidworldPoint2modelSFCT(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- theILcdRasterto be removed
-
getModelReference
Description copied from interface:ILcdModelXYZWorldTransformationGets the model reference of thisILcdModelXYZWorldTransformation.- Specified by:
getModelReferencein interfaceILcdModelXYZWorldTransformation- Returns:
- the model reference of this
ILcdModelXYZWorldTransformation. - See Also:
-
setModelReference
Description copied from interface:ILcdModelXYZWorldTransformationSets the model reference of thisILcdModelXYZWorldTransformation.- Specified by:
setModelReferencein interfaceILcdModelXYZWorldTransformation- Parameters:
aModelReference- the model reference to be used in thisILcdModelXYZWorldTransformation.- See Also:
-
getXYZWorldReference
Description copied from interface:ILcdModelXYZWorldTransformationGets the world reference of thisILcdModelXYZWorldTransformation.- Specified by:
getXYZWorldReferencein interfaceILcdModelXYZWorldTransformation- Returns:
- the world reference of this
ILcdModelXYZWorldTransformation. - See Also:
-
setXYZWorldReference
Description copied from interface:ILcdModelXYZWorldTransformationSets the world reference of thisILcdModelXYZWorldTransformation.- Specified by:
setXYZWorldReferencein 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:ILcdModelXYZWorldTransformationTransforms model bounds into world bounds.- Specified by:
modelBounds2worldSFCTin 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:ILcdModelXYZWorldTransformationTransforms a model point into a world point.- Specified by:
modelPoint2worldSFCTin 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:ILcdModelXYZWorldTransformationTransforms world bounds into model bounds.- Specified by:
worldBounds2modelSFCTin 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:ILcdModelXYZWorldTransformationTransforms a world point into a model point.- Specified by:
worldPoint2modelSFCTin 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.
-