Class TLcdContourUtil

java.lang.Object
com.luciad.geometry.cartesian.TLcdContourUtil

public class TLcdContourUtil extends Object
This is a utility class for the computation of contour lines.
  • Constructor Details

    • TLcdContourUtil

      public TLcdContourUtil()
      Constructs a new TLcdContourUtil class.
  • Method Details

    • getLinearLevels

      public double[] getLinearLevels(ILcdMatrixView aMatrix, int aNumberOfLevels, double aMinLevel, double aMaxLevel)
      Returns the different levels using a linear subdivision.
      Parameters:
      aMatrix - the ILcdMatrixView to compute the levels from.
      aNumberOfLevels - The number of levels to compute.
      aMinLevel - The minimum level. Only values above this level will be considered when computing the subdivision.
      aMaxLevel - The minimum level. Only values below this level will be considered when computing the subdivision.
      Returns:
      An array of length aNumberOfLevels containing the levels for a linear subdivision.
    • getLogarithmicLevels

      public double[] getLogarithmicLevels(ILcdMatrixView aMatrix, int aNumberOfLevels, double aMinLevel, double aMaxLevel)
      Returns the different levels using a logarithmic subdivision. For a logarithmic subdivision, either aMatrix should only contain positive values, or aMinLevel should be larger than zero.
      Parameters:
      aMatrix - the ILcdMatrixView to compute the levels from.
      aNumberOfLevels - The number of levels to compute.
      aMinLevel - The minimum level. Only values above this level will be considered when computing the subdivision.
      aMaxLevel - The minimum level. Only values below this level will be considered when computing the subdivision.
      Returns:
      An array of length aNumberOfLevels containing the levels for a logarithmic subdivision.