Package com.luciad.tea
Class TLcdContourFinder
java.lang.Object
com.luciad.tea.TLcdContourFinder
Deprecated.
This is a class to generate contour lines of an
ILcdMatrix
.
The contour lines are not returned, but instead a user-given ILcdFunction
is applied on each generated ILcdValuedPolygon
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
applyOnAllContours
(ILcdFunction aFunction, ILcdMatrix aMatrix, double[] aContourLevels) Deprecated.Computes all contour lines of aMatrix at the levels indicated by aContourLevels and applies aFunction to each generatedILcdValuedPolygon
.int
applyOnAllContours
(ILcdFunction aFunction, ILcdMatrix aMatrix, int aNumberOfLevels, boolean aLogInterval, double aMaxLevel, double aMinLevel) Deprecated.Computes all contour lines of aMatrix at aNumberOfLevels different levels and applies aFunction to each generatedILcdValuedPolygon
.double
Deprecated.boolean
Deprecated.Returns whether the working memory is cleared after each call of applyOnAllContours.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.Returns whether timing is on for this instance ofTLcdContourFinder
.boolean
Deprecated.Returns whether tracing is on for this instance ofTLcdContourFinder
.void
setAutoClearOn
(boolean aAutoClearOn) Deprecated.Set autoClearing to aAutoClearOn for this instance of TLcdContourFinder.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.Set tracing to aClassTraceOn for all instances ofTLcdContourFinder
.void
setCloseEdgesAroundLower
(boolean aCloseEdgesAroundLower) Deprecated.Set whether contour lines that run from edge to edge are closed around the lower side of the contour or the higher side.void
setContourFactory
(ILcdContourFactory aContourFactory) Deprecated.Set theILcdContourFactory
that needs to be used when generating anILcdValuedPolygon
.void
setOptimizedEdges
(boolean aOptimizedEdges) Deprecated.Set the behavior for the algorithm when traversing the edges.void
setTimingOn
(boolean aTimingOn) Deprecated.Set timing to aTimingOn for this instance ofTLcdContourFinder
.void
setTraceOn
(boolean aTraceOn) Deprecated.Set tracing to aClassTraceOn for this instance ofTLcdContourFinder
.
-
Constructor Details
-
TLcdContourFinder
public TLcdContourFinder()Deprecated.
-
-
Method Details
-
isTraceOn
public boolean isTraceOn()Deprecated.Returns whether tracing is on for this instance ofTLcdContourFinder
. -
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.Set tracing to aClassTraceOn for all instances ofTLcdContourFinder
. -
setTraceOn
public void setTraceOn(boolean aTraceOn) Deprecated.Set tracing to aClassTraceOn for this instance ofTLcdContourFinder
. -
isTimingOn
public boolean isTimingOn()Deprecated.Returns whether timing is on for this instance ofTLcdContourFinder
. -
setTimingOn
public void setTimingOn(boolean aTimingOn) Deprecated.Set timing to aTimingOn for this instance ofTLcdContourFinder
. -
isAutoClearOn
public boolean isAutoClearOn()Deprecated.Returns whether the working memory is cleared after each call of applyOnAllContours. When doing multiple consecutive calls of applyOnAllContours, it might be better to set this property to false. -
setAutoClearOn
public void setAutoClearOn(boolean aAutoClearOn) Deprecated.Set autoClearing to aAutoClearOn for this instance of TLcdContourFinder.- See Also:
-
setOptimizedEdges
public void setOptimizedEdges(boolean aOptimizedEdges) Deprecated.Set the behavior for the algorithm when traversing the edges. When false, all edge points traversed will be included in the contour. When true, only the traversed corner points will be included. Default is true -
isOptimizedEdges
public boolean isOptimizedEdges()Deprecated.- See Also:
-
setCloseEdgesAroundLower
public void setCloseEdgesAroundLower(boolean aCloseEdgesAroundLower) Deprecated.Set whether contour lines that run from edge to edge are closed around the lower side of the contour or the higher side. For computing altitude contours, this value should be set to false. For computing depth contours, it should be set to true. Default is false.- Parameters:
aCloseEdgesAroundLower
- The value to be set.
-
isCloseEdgesAroundLower
public boolean isCloseEdgesAroundLower()Deprecated.- See Also:
-
getProgress
public double getProgress()Deprecated. -
setContourFactory
Deprecated.Set theILcdContourFactory
that needs to be used when generating anILcdValuedPolygon
.- Parameters:
aContourFactory
- TheILcdContourFactory
to be set.
-
applyOnAllContours
public int applyOnAllContours(ILcdFunction aFunction, ILcdMatrix aMatrix, int aNumberOfLevels, boolean aLogInterval, double aMaxLevel, double aMinLevel) Deprecated.Computes all contour lines of aMatrix at aNumberOfLevels different levels and applies aFunction to each generatedILcdValuedPolygon
.- Parameters:
aFunction
- The function to apply on each generatedILcdValuedPolygon
.aMatrix
- TheILcdMatrix
representing the dataaNumberOfLevels
- The number of levels to compute.aLogInterval
- If true, a logarithmic subdivision is used, if false a linear subdivision is used.aMaxLevel
- The minimum level. Only values below this level will be considered when computing the subdivision.aMinLevel
- The minimum level. Only values above this level will be considered when computing the subdivision.- Returns:
- The number of contours that were computed.
-
applyOnAllContours
Deprecated.Computes all contour lines of aMatrix at the levels indicated by aContourLevels and applies aFunction to each generatedILcdValuedPolygon
.- Parameters:
aFunction
- The function to apply on each generatedILcdValuedPolygon
.aMatrix
- TheILcdMatrix
representing the data.aContourLevels
- The different levels to compute the contours on.- Returns:
- The number of contours that were computed.
-
TLcdPolylineContourFinder
orTLcdComplexPolygonContourFinder
. This class relies on deprecated contour finding algorithms. The output of the new contour finding algorithms are much more practical to work as they split up contours into two separate, disambiguous, concepts that can be retrieved individually.TLcdPolylineContourFinder
finds contour lines of equal height, much like this class, except that it doesn't close the shapes to represent an area.TLcdComplexPolygonContourFinder
finds complex polygons instead of the simple polygons of this class. This allows them to model interval areas with holes. This class has been kept for compatibility reasons with LuciadMap