TLcdPolylineContourFinder
or TLcdComplexPolygonContourFinder
.
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 LuciadMappublic class TLcdContourFinder extends Object
ILcdMatrix
.
The contour lines are not returned, but instead a user-given ILcdFunction
is applied on each generated ILcdValuedPolygon
.Constructor and Description |
---|
TLcdContourFinder()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
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 generated
ILcdValuedPolygon . |
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 generated
ILcdValuedPolygon . |
double |
getProgress()
Deprecated.
|
boolean |
isAutoClearOn()
Deprecated.
Returns whether the working memory is cleared after each call of
applyOnAllContours.
|
boolean |
isCloseEdgesAroundLower()
Deprecated.
|
boolean |
isOptimizedEdges()
Deprecated.
|
boolean |
isTimingOn()
Deprecated.
Returns whether timing is on for this instance of
TLcdContourFinder . |
boolean |
isTraceOn()
Deprecated.
Returns whether tracing is on for this instance of
TLcdContourFinder . |
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 of
TLcdContourFinder . |
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 the
ILcdContourFactory that needs to be used when
generating an ILcdValuedPolygon . |
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 of
TLcdContourFinder . |
void |
setTraceOn(boolean aTraceOn)
Deprecated.
Set tracing to aClassTraceOn for this instance of
TLcdContourFinder . |
public boolean isTraceOn()
TLcdContourFinder
.public static void setClassTraceOn(boolean aClassTraceOn)
TLcdContourFinder
.public void setTraceOn(boolean aTraceOn)
TLcdContourFinder
.public boolean isTimingOn()
TLcdContourFinder
.public void setTimingOn(boolean aTimingOn)
TLcdContourFinder
.public boolean isAutoClearOn()
public void setAutoClearOn(boolean aAutoClearOn)
isAutoClearOn()
public void setOptimizedEdges(boolean aOptimizedEdges)
public boolean isOptimizedEdges()
setOptimizedEdges( boolean )
public void setCloseEdgesAroundLower(boolean aCloseEdgesAroundLower)
aCloseEdgesAroundLower
- The value to be set.public boolean isCloseEdgesAroundLower()
setCloseEdgesAroundLower( boolean )
public double getProgress()
public void setContourFactory(ILcdContourFactory aContourFactory)
ILcdContourFactory
that needs to be used when
generating an ILcdValuedPolygon
.aContourFactory
- The ILcdContourFactory
to be set.public int applyOnAllContours(ILcdFunction aFunction, ILcdMatrix aMatrix, int aNumberOfLevels, boolean aLogInterval, double aMaxLevel, double aMinLevel)
ILcdValuedPolygon
.aFunction
- The function to apply on each generated ILcdValuedPolygon
.aMatrix
- The ILcdMatrix
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.public int applyOnAllContours(ILcdFunction aFunction, ILcdMatrix aMatrix, double[] aContourLevels)
ILcdValuedPolygon
.aFunction
- The function to apply on each generated ILcdValuedPolygon
.aMatrix
- The ILcdMatrix
representing the data.aContourLevels
- The different levels to compute the contours on.