Package com.luciad.tea
Class TLcdTerrainSegmentScanner
java.lang.Object
com.luciad.tea.TLcdTerrainSegmentScanner
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionTLcdTerrainSegmentScanner
(ALcdTerrainElevationProvider aElevationProvider) Constructs a newTLcdTerrainSegmentScanner
. -
Method Summary
Modifier and TypeMethodDescriptionDelegates to the internal scanner if that is set.Scanner to use for generating the discrete segment points.Gets the elevation provider to use for getting the terrain elevation.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.void
setSegmentScanner
(ILcdSegmentScanner aSegmentScanner) Set the scanner to use for generating the discrete segment points.void
setTerrainElevationProvider
(ALcdTerrainElevationProvider aTerrainElevationProvider) Set the elevation provider to use for getting the terrain elevation.
-
Constructor Details
-
TLcdTerrainSegmentScanner
Constructs a newTLcdTerrainSegmentScanner
.- Parameters:
aElevationProvider
- TheALcdTerrainElevationProvider
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 interfaceILcdSegmentScanner
- 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
Delegates to the internal scanner if that is set.- Specified by:
getGeoReference
in interfaceILcdSegmentScanner
- Returns:
- the georeference of the internal scanner.
-
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
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
Scanner to use for generating the discrete segment points.- Returns:
- Scanner to use for generating the discrete segment points.
- See Also:
-
setSegmentScanner
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:
-