Package com.luciad.geometry.cartesian
Class TLcdContourUtil
java.lang.Object
com.luciad.geometry.cartesian.TLcdContourUtil
This is a utility class for the computation of contour lines.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
getLinearLevels
(ILcdMatrixView aMatrix, int aNumberOfLevels, double aMinLevel, double aMaxLevel) Returns the different levels using a linear subdivision.double[]
getLogarithmicLevels
(ILcdMatrixView aMatrix, int aNumberOfLevels, double aMinLevel, double aMaxLevel) Returns the different levels using a logarithmic subdivision.
-
Constructor Details
-
TLcdContourUtil
public TLcdContourUtil()Constructs a newTLcdContourUtil
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
- theILcdMatrixView
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
- theILcdMatrixView
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.
-