public class TLcdRasterOffsetZTransformation extends Object implements ILcdModelZWorldTransformation
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.addRaster(com.luciad.format.raster.ILcdRaster, com.luciad.model.ILcdModelReference)
Constructor and Description |
---|
TLcdRasterOffsetZTransformation() |
Modifier and Type | Method and Description |
---|---|
void |
addRaster(ILcdRaster aRaster,
ILcdModelReference aRasterModelReference)
Adds an elevation raster, from which point elevations can be retrieved.
|
ILcdModelReference |
getModelReference()
Returns the model reference that is taken into account when transforming points.
|
ILcdXYZWorldReference |
getWorldReference()
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.
|
public void addRaster(ILcdRaster aRaster, ILcdModelReference aRasterModelReference)
aRaster
- a raster containing elevations.aRasterModelReference
- the raster's model reference.public void removeRaster(ILcdRaster aRaster)
aRaster
- the ILcdRaster
to be removedpublic void setModelReference(ILcdModelReference aModelReference)
ILcdModelZWorldTransformation
setModelReference
in interface ILcdModelZWorldTransformation
aModelReference
- the model reference that will be taken into account when transforming pointsILcdModelZWorldTransformation.getModelReference()
public ILcdModelReference getModelReference()
ILcdModelZWorldTransformation
getModelReference
in interface ILcdModelZWorldTransformation
ILcdModelZWorldTransformation.setModelReference(com.luciad.model.ILcdModelReference)
public void setWorldReference(ILcdXYZWorldReference aWorldReference)
ILcdModelZWorldTransformation
setWorldReference
in interface ILcdModelZWorldTransformation
aWorldReference
- the world reference that will be taken into account when transforming pointsILcdModelZWorldTransformation.getWorldReference()
public ILcdXYZWorldReference getWorldReference()
ILcdModelZWorldTransformation
getWorldReference
in interface ILcdModelZWorldTransformation
ILcdModelZWorldTransformation.setWorldReference(com.luciad.view.ILcdXYZWorldReference)
public double modelZ2worldZ(ILcdPoint aModelPoint)
modelZ2worldZ
in interface ILcdModelZWorldTransformation
aModelPoint
- the model point for which to transform the z valueILcdModelZWorldTransformation.worldZ2ModelZ(com.luciad.shape.ILcdPoint)
public double worldZ2ModelZ(ILcdPoint aWorldPoint)
ILcdModelZWorldTransformation
worldZ2ModelZ
in interface ILcdModelZWorldTransformation
aWorldPoint
- ILcdModelZWorldTransformation.modelZ2worldZ(com.luciad.shape.ILcdPoint)