public class TLcdRasterOffsetModelXYZWorldTransformation extends Object implements ILcdModelXYZWorldTransformation
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.Constructor and Description |
---|
TLcdRasterOffsetModelXYZWorldTransformation(ILcdModelXYZWorldTransformation aTrans)
Constructs a new raster offset wrapper around the specified transformation.
|
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()
Gets the model reference of this
ILcdModelXYZWorldTransformation . |
ILcdXYZWorldReference |
getXYZWorldReference()
Gets the world reference of this
ILcdModelXYZWorldTransformation . |
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 this
ILcdModelXYZWorldTransformation . |
void |
setXYZWorldReference(ILcdXYZWorldReference aXYZWorldReference)
Sets the world reference of this
ILcdModelXYZWorldTransformation . |
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.
|
public TLcdRasterOffsetModelXYZWorldTransformation(ILcdModelXYZWorldTransformation aTrans)
aTrans
- the transformation to apply a raster offset topublic 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 ILcdModelReference getModelReference()
ILcdModelXYZWorldTransformation
ILcdModelXYZWorldTransformation
.getModelReference
in interface ILcdModelXYZWorldTransformation
ILcdModelXYZWorldTransformation
.ILcdModelXYZWorldTransformation.setModelReference(com.luciad.model.ILcdModelReference)
public void setModelReference(ILcdModelReference aModelReference)
ILcdModelXYZWorldTransformation
ILcdModelXYZWorldTransformation
.setModelReference
in interface ILcdModelXYZWorldTransformation
aModelReference
- the model reference to be used in this ILcdModelXYZWorldTransformation
.ILcdModelXYZWorldTransformation.getModelReference()
public ILcdXYZWorldReference getXYZWorldReference()
ILcdModelXYZWorldTransformation
ILcdModelXYZWorldTransformation
.getXYZWorldReference
in interface ILcdModelXYZWorldTransformation
ILcdModelXYZWorldTransformation
.ILcdModelXYZWorldTransformation.setXYZWorldReference(com.luciad.view.ILcdXYZWorldReference)
public void setXYZWorldReference(ILcdXYZWorldReference aXYZWorldReference)
ILcdModelXYZWorldTransformation
ILcdModelXYZWorldTransformation
.setXYZWorldReference
in interface ILcdModelXYZWorldTransformation
aXYZWorldReference
- the world reference to be used in this ILcdModelXYZWorldTransformation
.ILcdModelXYZWorldTransformation.getXYZWorldReference()
public void modelBounds2worldSFCT(ILcdBounds aBounds, ILcd3DEditableBounds aILcd3DEditableBounds) throws TLcdNoBoundsException
ILcdModelXYZWorldTransformation
modelBounds2worldSFCT
in interface ILcdModelXYZWorldTransformation
aBounds
- bounds in model reference system.aILcd3DEditableBounds
- bounds in world reference system upon completion of the method.TLcdNoBoundsException
- if the model bounds doesn't have valid corresponding bounds in world space, or if it is undefined
.public void modelPoint2worldSFCT(ILcdPoint aILcdPoint, ILcd3DEditablePoint aILcd3DEditablePoint) throws TLcdOutOfBoundsException
ILcdModelXYZWorldTransformation
modelPoint2worldSFCT
in interface ILcdModelXYZWorldTransformation
aILcdPoint
- coordinate in model reference system.aILcd3DEditablePoint
- coordinate in world reference system upon completion of the method.TLcdOutOfBoundsException
- if the model point is outside the valid area of the projection.public void worldBounds2modelSFCT(ILcdBounds aBounds, ILcd3DEditableBounds aILcd3DEditableBounds) throws TLcdOutOfBoundsException
ILcdModelXYZWorldTransformation
worldBounds2modelSFCT
in interface ILcdModelXYZWorldTransformation
aBounds
- bounds in world reference system.aILcd3DEditableBounds
- bounds in model reference system upon completion of the method.TLcdOutOfBoundsException
- if the world bounds are outside the valid area of the projection, or if it is undefined
.public void worldPoint2modelSFCT(ILcdPoint aILcdPoint, ILcd3DEditablePoint aILcd3DEditablePoint) throws TLcdOutOfBoundsException
ILcdModelXYZWorldTransformation
worldPoint2modelSFCT
in interface ILcdModelXYZWorldTransformation
aILcdPoint
- coordinate in world reference system.aILcd3DEditablePoint
- coordinate in model reference system upon completion of the method.TLcdOutOfBoundsException
- if the world point is outside the valid area of the projection.