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
ConstructorsConstructorDescriptionTLcdEarthTileSetElevationProviderAdapter(ALcdEarthTerrainElevationProvider aProvider, ILcdGeoReference aSourceReference) Constructs aTLcdEarthTileSetElevationProviderAdapterusing anALcdEarthTerrainElevationProviderand anILcdGeoReference.TLcdEarthTileSetElevationProviderAdapter(ALcdEarthTerrainElevationProvider aProvider, ILcdGeoReference aSourceReference, double aDesiredResolution) Constructs aTLcdEarthTileSetElevationProviderAdapterusing anALcdEarthTerrainElevationProvider,anILcdGeoReferenceand a desired resolution. -
Method Summary
Modifier and TypeMethodDescriptionReturns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.doubleretrieveHeightAt(ILcdPoint aPoint) Returns the height at the given point.
-
Constructor Details
-
TLcdEarthTileSetElevationProviderAdapter
public TLcdEarthTileSetElevationProviderAdapter(ALcdEarthTerrainElevationProvider aProvider, ILcdGeoReference aSourceReference) Constructs aTLcdEarthTileSetElevationProviderAdapterusing anALcdEarthTerrainElevationProviderand anILcdGeoReference. The reference of the elevation provider should be equal to its preferred reference.- Parameters:
aProvider- theALcdEarthTerrainElevationProviderto be wrapped.aSourceReference- theILcdGeoReferencein which theILcdPoints will be defined when retrieving height data.
-
TLcdEarthTileSetElevationProviderAdapter
public TLcdEarthTileSetElevationProviderAdapter(ALcdEarthTerrainElevationProvider aProvider, ILcdGeoReference aSourceReference, double aDesiredResolution) Constructs aTLcdEarthTileSetElevationProviderAdapterusing anALcdEarthTerrainElevationProvider,anILcdGeoReferenceand a desired resolution. The reference of the elevation provider should be equal to its preferred reference.- Parameters:
aProvider- theALcdEarthTerrainElevationProviderto be wrapped.aSourceReference- theILcdGeoReferencein which theILcdPoints will be defined when retrieving height data.aDesiredResolution- the desired resolution.
-
-
Method Details
-
retrieveHeightAt
Description copied from interface:ILcdHeightProviderReturns the height at the given point.- Specified by:
retrieveHeightAtin 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:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject 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
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
getEarthTerrainElevationProvider
-