Package com.luciad.format.raster
Class TLcdRasterOffsetZTransformation
java.lang.Object
com.luciad.format.raster.TLcdRasterOffsetZTransformation
- All Implemented Interfaces:
ILcdModelZWorldTransformation
public class TLcdRasterOffsetZTransformation
extends Object
implements ILcdModelZWorldTransformation
This
ILcdModelZWorldTransformation
implementation takes the values of
ILcdRaster
into account when transforming the model Z to world Z and back.
It adds the value of underlying rasters to the transformed model Z when computing the world Z.
It subtract the value of underlying rasters from the transformed world Z when computing the
model Z.- Since:
- 9.1
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRaster
(ILcdRaster aRaster, ILcdModelReference aRasterModelReference) Adds an elevation raster, from which point elevations can be retrieved.Returns the model reference that is taken into account when transforming points.Returns the world reference that is taken into account when transforming points.double
modelZ2worldZ
(ILcdPoint aModelPoint) Takes into account the value of a raster beneath the model 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 that will be taken into account when transforming points.void
setWorldReference
(ILcdXYZWorldReference aWorldReference) Sets the world reference that will be taken into account when transforming points.double
worldZ2ModelZ
(ILcdPoint aWorldPoint) Transforms a specified world z value to a model z value.
-
Constructor Details
-
TLcdRasterOffsetZTransformation
public TLcdRasterOffsetZTransformation()
-
-
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
-
setModelReference
Description copied from interface:ILcdModelZWorldTransformation
Sets the model reference that will be taken into account when transforming points.- Specified by:
setModelReference
in interfaceILcdModelZWorldTransformation
- Parameters:
aModelReference
- the model reference that will be taken into account when transforming points- See Also:
-
getModelReference
Description copied from interface:ILcdModelZWorldTransformation
Returns the model reference that is taken into account when transforming points.- Specified by:
getModelReference
in interfaceILcdModelZWorldTransformation
- Returns:
- the model reference that is taken into account when transforming points
- See Also:
-
setWorldReference
Description copied from interface:ILcdModelZWorldTransformation
Sets the world reference that will be taken into account when transforming points.- Specified by:
setWorldReference
in interfaceILcdModelZWorldTransformation
- Parameters:
aWorldReference
- the world reference that will be taken into account when transforming points- See Also:
-
getWorldReference
Description copied from interface:ILcdModelZWorldTransformation
Returns the world reference that is taken into account when transforming points.- Specified by:
getWorldReference
in interfaceILcdModelZWorldTransformation
- Returns:
- the world reference that is taken into account when transforming points
- See Also:
-
modelZ2worldZ
Takes into account the value of a raster beneath the model point. The world Z value is the model Z value augmented by the value of the raster beneath.- Specified by:
modelZ2worldZ
in interfaceILcdModelZWorldTransformation
- Parameters:
aModelPoint
- the model point for which to transform the z value- Returns:
- the transformed model value in world coordinates
- See Also:
-
worldZ2ModelZ
Description copied from interface:ILcdModelZWorldTransformation
Transforms a specified world z value to a model z value.- Specified by:
worldZ2ModelZ
in interfaceILcdModelZWorldTransformation
- Parameters:
aWorldPoint
-- Returns:
- the transformed world value in model coordinates
- See Also:
-