public class TLcdHypsometricCrease extends Object implements ILcdHypsometricValueProvider
Modifier and Type | Field and Description |
---|---|
static int |
RIDGE |
static int |
RIDGE_AND_VALLEY |
static int |
VALLEY |
Constructor and Description |
---|
TLcdHypsometricCrease()
Creates a new TLcdHypsometricRidge with a 3x3 foot print for computing
ridges and valleys.
|
TLcdHypsometricCrease(Rectangle aFootPrint,
int aType)
Creates a new TLcdHypsometricRidge with the given foot print and type.
|
Modifier and Type | Method and Description |
---|---|
double |
computeValue(ILcdMatrixView aMatrixView,
int aX,
int aY,
double aElevationScale)
Computes the hypsometric value at the given point.
|
Rectangle |
getFootPrint()
Returns the foot print of this provider.
|
double |
getMaximumValue()
Returns the maximum hypsometric value that this provider may return.
|
double |
getMinimumValue()
Returns the minimum hypsometric value that this provider may return.
|
int |
getType()
Returns the type of this provider.
|
public static final int RIDGE
public static final int VALLEY
public static final int RIDGE_AND_VALLEY
public TLcdHypsometricCrease()
public TLcdHypsometricCrease(Rectangle aFootPrint, int aType)
aFootPrint
- the foot print for the computations.aType
- one of RIDGE, VALLEY, or RIDGE_AND_VALLEY.public int getType()
public Rectangle getFootPrint()
ILcdHypsometricValueProvider
getFootPrint
in interface ILcdHypsometricValueProvider
public double getMinimumValue()
ILcdHypsometricValueProvider
getMinimumValue
in interface ILcdHypsometricValueProvider
public double getMaximumValue()
ILcdHypsometricValueProvider
getMaximumValue
in interface ILcdHypsometricValueProvider
public double computeValue(ILcdMatrixView aMatrixView, int aX, int aY, double aElevationScale)
ILcdHypsometricValueProvider
computeValue
in interface ILcdHypsometricValueProvider
aMatrixView
- the matrix containing elevation values.aX
- the x ordinate in the matrix.aY
- the y ordinate in the matrix.aElevationScale
- the scale of the elevation values in the tiles,
expressed in matrix units per tile elevation unit.