Class TLcdEarthTileSetElevationProviderAdapter

java.lang.Object
com.luciad.earth.tileset.terrain.TLcdEarthTileSetElevationProviderAdapter
All Implemented Interfaces:
ILcdBounded, ILcdHeightProvider

public class TLcdEarthTileSetElevationProviderAdapter extends Object implements ILcdHeightProvider
This class wraps an ALcdEarthTerrainElevationProvider to implement the ILcdHeightProvider interface.
Since:
9.1
  • Constructor Details

    • TLcdEarthTileSetElevationProviderAdapter

      public TLcdEarthTileSetElevationProviderAdapter(ALcdEarthTerrainElevationProvider aProvider, ILcdGeoReference aSourceReference)
      Constructs a TLcdEarthTileSetElevationProviderAdapter using an ALcdEarthTerrainElevationProvider and an ILcdGeoReference.

      The reference of the elevation provider should be equal to its preferred reference.

      Parameters:
      aProvider - the ALcdEarthTerrainElevationProvider to be wrapped.
      aSourceReference - the ILcdGeoReference in which the ILcdPoints will be defined when retrieving height data.
    • TLcdEarthTileSetElevationProviderAdapter

      public TLcdEarthTileSetElevationProviderAdapter(ALcdEarthTerrainElevationProvider aProvider, ILcdGeoReference aSourceReference, double aDesiredResolution)
      Constructs a TLcdEarthTileSetElevationProviderAdapter using an ALcdEarthTerrainElevationProvider ,an ILcdGeoReference and a desired resolution.

      The reference of the elevation provider should be equal to its preferred reference.

      Parameters:
      aProvider - the ALcdEarthTerrainElevationProvider to be wrapped.
      aSourceReference - the ILcdGeoReference in which the ILcdPoints will be defined when retrieving height data.
      aDesiredResolution - the desired resolution.
  • Method Details

    • retrieveHeightAt

      public double retrieveHeightAt(ILcdPoint aPoint)
      Description copied from interface: ILcdHeightProvider
      Returns the height at the given point.
      Specified by:
      retrieveHeightAt in interface ILcdHeightProvider
      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

      public ILcdBounds getBounds()
      Description copied from interface: ILcdBounded
      Returns the 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.

      Specified by:
      getBounds in interface ILcdBounded
      Returns:
      the ILcdBounds by which the geometry of this ILcdBounded object is bounded.
    • getEarthTerrainElevationProvider

      public ALcdEarthTerrainElevationProvider getEarthTerrainElevationProvider()