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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRaster(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.doublemodelZ2worldZ(ILcdPoint aModelPoint) Takes into account the value of a raster beneath the model point.voidremoveRaster(ILcdRaster aRaster) Removes the raster from the list of rasters to take into account.voidsetModelReference(ILcdModelReference aModelReference) Sets the model reference that will be taken into account when transforming points.voidsetWorldReference(ILcdXYZWorldReference aWorldReference) Sets the world reference that will be taken into account when transforming points.doubleworldZ2ModelZ(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- theILcdRasterto be removed
-
setModelReference
Description copied from interface:ILcdModelZWorldTransformationSets the model reference that will be taken into account when transforming points.- Specified by:
setModelReferencein interfaceILcdModelZWorldTransformation- Parameters:
aModelReference- the model reference that will be taken into account when transforming points- See Also:
-
getModelReference
Description copied from interface:ILcdModelZWorldTransformationReturns the model reference that is taken into account when transforming points.- Specified by:
getModelReferencein interfaceILcdModelZWorldTransformation- Returns:
- the model reference that is taken into account when transforming points
- See Also:
-
setWorldReference
Description copied from interface:ILcdModelZWorldTransformationSets the world reference that will be taken into account when transforming points.- Specified by:
setWorldReferencein interfaceILcdModelZWorldTransformation- Parameters:
aWorldReference- the world reference that will be taken into account when transforming points- See Also:
-
getWorldReference
Description copied from interface:ILcdModelZWorldTransformationReturns the world reference that is taken into account when transforming points.- Specified by:
getWorldReferencein 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:
modelZ2worldZin 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:ILcdModelZWorldTransformationTransforms a specified world z value to a model z value.- Specified by:
worldZ2ModelZin interfaceILcdModelZWorldTransformation- Parameters:
aWorldPoint-- Returns:
- the transformed world value in model coordinates
- See Also:
-