public class TLcdHypsometricOrientation extends Object implements ILcdHypsometricValueProvider
This ILcdHypsometricValueProvider computes the cosine of the angle between a given reference direction in the xy plane and the direction of steepest descent. The values lie in the range [-1, 1].
Constructor and Description |
---|
TLcdHypsometricOrientation()
Creates a new TLcdHypsometricOrientation for the reference direction (0, 1).
|
TLcdHypsometricOrientation(double aReferenceDirectionX,
double aReferenceDirectionY)
Creates a new TLcdHypsometricOrientation for the given reference direction.
|
TLcdHypsometricOrientation(double aReferenceDirectionX,
double aReferenceDirectionY,
ILcdHypsometricNormalProvider aHypsometricNormalProvider)
Creates a new TLcdHypsometricOrientation for the given reference direction
and normal provider.
|
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.
|
ILcdHypsometricNormalProvider |
getHypsometricNormalProvider()
Returns the normal 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.
|
double |
getReferenceDirectionX()
Returns the x component of the reference direction.
|
double |
getReferenceDirectionY()
Returns the y component of the reference direction.
|
public TLcdHypsometricOrientation()
public TLcdHypsometricOrientation(double aReferenceDirectionX, double aReferenceDirectionY)
aReferenceDirectionX
- the x component of the reference direction.aReferenceDirectionY
- the y component of the reference direction.public TLcdHypsometricOrientation(double aReferenceDirectionX, double aReferenceDirectionY, ILcdHypsometricNormalProvider aHypsometricNormalProvider)
aReferenceDirectionX
- the x component of the reference direction.aReferenceDirectionY
- the y component of the reference direction.aHypsometricNormalProvider
- the normal provider.public double getReferenceDirectionX()
public double getReferenceDirectionY()
public ILcdHypsometricNormalProvider getHypsometricNormalProvider()
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.