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
ConstructorDescriptionScans 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 TypeMethodDescriptionvoid
addStatusListener
(ILcdStatusListener aILcdStatusListener) Adds a status listener.Returns the geo reference system used.Returns the grid reference to calculate distances.static boolean
Deprecated.This method has been deprecated.void
removeStatusListener
(ILcdStatusListener aILcdStatusListener) Removes a status listener.void
scanSegment
(double aDistanceDelta, ILcdPoint aStartPoint, ILcdPoint aEndPoint, ILcdOnPointFunction aFunction) Scan a given line segment.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setGridReference
(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:ILcdSegmentScanner
Scan a given line segment.- 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
Description copied from interface:ILcdSegmentScanner
Returns the geo reference system used.- Specified by:
getGeoReference
in 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:
addStatusListener
in interfaceILcdStatusSource
- Parameters:
aILcdStatusListener
- AnILcdStatusListener
- See Also:
-
removeStatusListener
Removes a status listener.- Specified by:
removeStatusListener
in 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.Returnstrue
if 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 istrue
then 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.
-