Package com.luciad.geometry.cartesian
Class TLcdGridSegmentScanner
java.lang.Object
com.luciad.geometry.cartesian.TLcdGridSegmentScanner
- All Implemented Interfaces:
ILcdSegmentScanner,ILcdStatusSource
Implementation of ILcdSegmentScanner that generates points along Cartesian scan lines.
-
Constructor Summary
ConstructorsConstructorDescriptionScans a segment along a straight line between the points.TLcdGridSegmentScanner(ILcdGridReference aGridReference) Scans a segment along a straight line between the points. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatusListener(ILcdStatusListener aILcdStatusListener) Adds a status listener.Returns the geo reference system used.Returns the grid reference to calculate distances.static booleanDeprecated.This method has been deprecated.voidremoveStatusListener(ILcdStatusListener aILcdStatusListener) Removes a status listener.voidscanSegment(double aDistanceDelta, ILcdPoint aStartPoint, ILcdPoint aEndPoint, ILcdOnPointFunction aFunction) Scan a given line segment.static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidsetGridReference(ILcdGridReference aGridReference) Sets the grid reference to calculate distances.
-
Constructor Details
-
TLcdGridSegmentScanner
public TLcdGridSegmentScanner()Scans a segment along a straight line between the points. Before scanning, a grid reference needs to be set.- See Also:
-
TLcdGridSegmentScanner
Scans a segment along a straight line between the points.- Parameters:
aGridReference- the reference that defines the unit of measure for distances.
-
-
Method Details
-
scanSegment
public void scanSegment(double aDistanceDelta, ILcdPoint aStartPoint, ILcdPoint aEndPoint, ILcdOnPointFunction aFunction) Description copied from interface:ILcdSegmentScannerScan a given line segment.- Specified by:
scanSegmentin 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
Description copied from interface:ILcdSegmentScannerReturns the geo reference system used.- Specified by:
getGeoReferencein interfaceILcdSegmentScanner- Returns:
- the geo reference system used.
-
setGridReference
Sets the grid reference to calculate distances.- Parameters:
aGridReference- the grid reference to calculate distances.- See Also:
-
getGridReference
Returns the grid reference to calculate distances.- Returns:
- the grid reference to calculate distances.
- See Also:
-
addStatusListener
Adds a status listener.- Specified by:
addStatusListenerin interfaceILcdStatusSource- Parameters:
aILcdStatusListener- AnILcdStatusListener- See Also:
-
removeStatusListener
Removes a status listener.- Specified by:
removeStatusListenerin interfaceILcdStatusSource- Parameters:
aILcdStatusListener- AnILcdStatusListener- See Also:
-
isClassTraceOn
public static boolean isClassTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrueif tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istruethen all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-