Package com.luciad.util.height
Class TLcdTransformedHeightProvider
java.lang.Object
com.luciad.util.height.TLcdTransformedHeightProvider
- All Implemented Interfaces:
ILcdBounded
,ILcdHeightProvider
This height provider retrieves its heights from another height provider
with a different reference.
- Since:
- 9.1
-
Constructor Summary
ConstructorDescriptionTLcdTransformedHeightProvider
(ILcdHeightProvider aHeightProvider, ILcdModelModelTransformation aTransformation) Creates a newTLcdTransformedHeightProvider
that uses the given transformation to transform between the reference in which points are given (the destination reference) and the reference associated with the given delegate height provider (the source reference). -
Method Summary
Modifier and TypeMethodDescriptionReturns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.double
retrieveHeightAt
(ILcdPoint aPoint) Returns the height at the given point.
-
Constructor Details
-
TLcdTransformedHeightProvider
public TLcdTransformedHeightProvider(ILcdHeightProvider aHeightProvider, ILcdModelModelTransformation aTransformation) throws TLcdNoBoundsException Creates a newTLcdTransformedHeightProvider
that uses the given transformation to transform between the reference in which points are given (the destination reference) and the reference associated with the given delegate height provider (the source reference).- Parameters:
aHeightProvider
- the height provider from which heights will be retrieved.aTransformation
- the transformation that will be applied to each point for which a height is retrieved (destination->
source reference), and to each height, after it has been retrieved (source->
destination reference). Note that the transformation should be initialized, i.e. the source and target references must be set.- Throws:
TLcdNoBoundsException
- if the transformed height provider doesn't have valid bounds.
-
-
Method Details
-
retrieveHeightAt
Description copied from interface:ILcdHeightProvider
Returns the height at the given point.- Specified by:
retrieveHeightAt
in interfaceILcdHeightProvider
- Parameters:
aPoint
- a 2D point, in the horizontal reference that is determined by the implementation.- Returns:
- the elevation at the given point, in the vertical reference that
is determined by the implementation. The value may also be
Double.NaN
, if the elevation is not known.
-
getBounds
Description copied from interface:ILcdBounded
Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an
undefined
bounds. You can create undefined bounds using the default constructors ofTLcdLonLatBounds
orTLcdXYBounds
.- Specified by:
getBounds
in interfaceILcdBounded
- Returns:
- the
ILcdBounds
by which the geometry of thisILcdBounded
object is bounded.
-