Class TLcdTerrainSegmentScanner

java.lang.Object
com.luciad.tea.TLcdTerrainSegmentScanner
All Implemented Interfaces:
ILcdSegmentScanner

public class TLcdTerrainSegmentScanner extends Object implements ILcdSegmentScanner
This is a utility class for scanning terrain elevation along a line segment. The function that is passed as an argument to the scan-methods gets a 3D point as an argument: the (x,y) coordinates give the position of the point being scanned, while the z-coordinate gives the terrain elevation for this point.
  • Constructor Details

    • TLcdTerrainSegmentScanner

      public TLcdTerrainSegmentScanner(ALcdTerrainElevationProvider aElevationProvider)
      Constructs a new TLcdTerrainSegmentScanner.
      Parameters:
      aElevationProvider - The ALcdTerrainElevationProvider that will be used to retrieve the elevation in the scanning points.
  • Method Details

    • scanSegment

      public void scanSegment(double aDistanceDelta, ILcdPoint aStartPoint, ILcdPoint aEndPoint, ILcdOnPointFunction aFunction)
      Scan a given line segment and move the generated points to the elevation of the terrain.
      Specified by:
      scanSegment in interface ILcdSegmentScanner
      Parameters:
      aDistanceDelta - Distance between consecutive generated points in meters.
      aStartPoint - Start point of segment.
      aEndPoint - End point of segment.
      aFunction - Function to apply on generated points.
    • getGeoReference

      public ILcdGeoReference getGeoReference()
      Delegates to the internal scanner if that is set.
      Specified by:
      getGeoReference in interface ILcdSegmentScanner
      Returns:
      the georeference of the internal scanner.
    • getTerrainElevationProvider

      public ALcdTerrainElevationProvider getTerrainElevationProvider()
      Gets the elevation provider to use for getting the terrain elevation.
      Returns:
      the elevation provider to use for getting the terrain elevation.
      See Also:
    • setTerrainElevationProvider

      public void setTerrainElevationProvider(ALcdTerrainElevationProvider aTerrainElevationProvider)
      Set the elevation provider to use for getting the terrain elevation.
      Parameters:
      aTerrainElevationProvider - the elevation provider to use for getting the terrain elevation.
      See Also:
    • getSegmentScanner

      public ILcdSegmentScanner getSegmentScanner()
      Scanner to use for generating the discrete segment points.
      Returns:
      Scanner to use for generating the discrete segment points.
      See Also:
    • setSegmentScanner

      public void setSegmentScanner(ILcdSegmentScanner aSegmentScanner)
      Set the scanner to use for generating the discrete segment points.
      Parameters:
      aSegmentScanner - the scanner to use for generating the discrete segment points.
      See Also: