public class TLcdEarthTileSetElevationProviderAdapter extends Object implements ILcdHeightProvider
ALcdEarthTerrainElevationProvider
to implement the
ILcdHeightProvider
interface.Constructor and Description |
---|
TLcdEarthTileSetElevationProviderAdapter(ALcdEarthTerrainElevationProvider aProvider,
ILcdGeoReference aSourceReference)
Constructs a
TLcdEarthTileSetElevationProviderAdapter using an
ALcdEarthTerrainElevationProvider and an ILcdGeoReference . |
TLcdEarthTileSetElevationProviderAdapter(ALcdEarthTerrainElevationProvider aProvider,
ILcdGeoReference aSourceReference,
double aDesiredResolution)
Constructs a
TLcdEarthTileSetElevationProviderAdapter using an
ALcdEarthTerrainElevationProvider ,an ILcdGeoReference
and a desired resolution. |
Modifier and Type | Method and Description |
---|---|
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
ALcdEarthTerrainElevationProvider |
getEarthTerrainElevationProvider() |
double |
retrieveHeightAt(ILcdPoint aPoint)
Returns the height at the given point.
|
public TLcdEarthTileSetElevationProviderAdapter(ALcdEarthTerrainElevationProvider aProvider, ILcdGeoReference aSourceReference)
TLcdEarthTileSetElevationProviderAdapter
using an
ALcdEarthTerrainElevationProvider
and an ILcdGeoReference
.
The reference of the elevation provider should be equal to its preferred reference.aProvider
- the ALcdEarthTerrainElevationProvider
to be wrapped.aSourceReference
- the ILcdGeoReference
in which the
ILcdPoint
s will be defined when retrieving height data.public TLcdEarthTileSetElevationProviderAdapter(ALcdEarthTerrainElevationProvider aProvider, ILcdGeoReference aSourceReference, double aDesiredResolution)
TLcdEarthTileSetElevationProviderAdapter
using an
ALcdEarthTerrainElevationProvider
,an ILcdGeoReference
and a desired resolution.
The reference of the elevation provider should be equal to its preferred reference.aProvider
- the ALcdEarthTerrainElevationProvider
to be wrapped.aSourceReference
- the ILcdGeoReference
in which the
ILcdPoint
s will be defined when retrieving height data.aDesiredResolution
- the desired resolution.public double retrieveHeightAt(ILcdPoint aPoint)
ILcdHeightProvider
retrieveHeightAt
in interface ILcdHeightProvider
aPoint
- a 2D point, in the horizontal reference that is determined by
the implementation.Double.NaN
, if the elevation is not known.public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
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
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public ALcdEarthTerrainElevationProvider getEarthTerrainElevationProvider()