Class TLcdContourFinder

java.lang.Object
com.luciad.tea.TLcdContourFinder

public class TLcdContourFinder extends Object
Deprecated.
Use 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 LuciadMap
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

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    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
    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 of TLcdContourFinder.
    boolean
    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
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TLcdContourFinder

      public TLcdContourFinder()
      Deprecated.
  • Method Details

    • isTraceOn

      public boolean isTraceOn()
      Deprecated.
      Returns whether tracing is on for this instance of TLcdContourFinder.
    • setClassTraceOn

      public static void setClassTraceOn(boolean aClassTraceOn)
      Deprecated.
      Set tracing to aClassTraceOn for all instances of TLcdContourFinder.
    • setTraceOn

      public void setTraceOn(boolean aTraceOn)
      Deprecated.
      Set tracing to aClassTraceOn for this instance of TLcdContourFinder.
    • isTimingOn

      public boolean isTimingOn()
      Deprecated.
      Returns whether timing is on for this instance of TLcdContourFinder.
    • setTimingOn

      public void setTimingOn(boolean aTimingOn)
      Deprecated.
      Set timing to aTimingOn for this instance of TLcdContourFinder.
    • 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

      public void setContourFactory(ILcdContourFactory aContourFactory)
      Deprecated.
      Set the ILcdContourFactory that needs to be used when generating an ILcdValuedPolygon.
      Parameters:
      aContourFactory - The ILcdContourFactory 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 generated ILcdValuedPolygon.
      Parameters:
      aFunction - The function to apply on each generated ILcdValuedPolygon.
      aMatrix - The ILcdMatrix representing the data
      aNumberOfLevels - 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

      public 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.
      Parameters:
      aFunction - The function to apply on each generated ILcdValuedPolygon.
      aMatrix - The ILcdMatrix representing the data.
      aContourLevels - The different levels to compute the contours on.
      Returns:
      The number of contours that were computed.