Package com.luciad.earth.tileset.terrain
Class TLcdEarthTileSetElevationProviderAdapter
java.lang.Object
com.luciad.earth.tileset.terrain.TLcdEarthTileSetElevationProviderAdapter
- All Implemented Interfaces:
ILcdBounded
,ILcdHeightProvider
This class wraps an
ALcdEarthTerrainElevationProvider
to implement the
ILcdHeightProvider
interface.- Since:
- 9.1
-
Constructor Summary
ConstructorDescriptionTLcdEarthTileSetElevationProviderAdapter
(ALcdEarthTerrainElevationProvider aProvider, ILcdGeoReference aSourceReference) Constructs aTLcdEarthTileSetElevationProviderAdapter
using anALcdEarthTerrainElevationProvider
and anILcdGeoReference
.TLcdEarthTileSetElevationProviderAdapter
(ALcdEarthTerrainElevationProvider aProvider, ILcdGeoReference aSourceReference, double aDesiredResolution) Constructs aTLcdEarthTileSetElevationProviderAdapter
using anALcdEarthTerrainElevationProvider
,anILcdGeoReference
and a desired resolution. -
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
-
TLcdEarthTileSetElevationProviderAdapter
public TLcdEarthTileSetElevationProviderAdapter(ALcdEarthTerrainElevationProvider aProvider, ILcdGeoReference aSourceReference) Constructs aTLcdEarthTileSetElevationProviderAdapter
using anALcdEarthTerrainElevationProvider
and anILcdGeoReference
. The reference of the elevation provider should be equal to its preferred reference.- Parameters:
aProvider
- theALcdEarthTerrainElevationProvider
to be wrapped.aSourceReference
- theILcdGeoReference
in which theILcdPoint
s will be defined when retrieving height data.
-
TLcdEarthTileSetElevationProviderAdapter
public TLcdEarthTileSetElevationProviderAdapter(ALcdEarthTerrainElevationProvider aProvider, ILcdGeoReference aSourceReference, double aDesiredResolution) Constructs aTLcdEarthTileSetElevationProviderAdapter
using anALcdEarthTerrainElevationProvider
,anILcdGeoReference
and a desired resolution. The reference of the elevation provider should be equal to its preferred reference.- Parameters:
aProvider
- theALcdEarthTerrainElevationProvider
to be wrapped.aSourceReference
- theILcdGeoReference
in which theILcdPoint
s will be defined when retrieving height data.aDesiredResolution
- the desired resolution.
-
-
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.
-
getEarthTerrainElevationProvider
-