public class TLcdHypsometricSlopeAngle extends Object implements ILcdHypsometricValueProvider
This provider is typically useful for computing the slope of the terrain, by using the reference direction (0, 0, 1). The computed values then correspond to the inclination of the terrain, ranging from 0 for horizontal terrain, over larger values for increasingly sloping terrain, to a value of pi/2 (in the limit) for vertical cliffs.
Constructor and Description |
---|
TLcdHypsometricSlopeAngle()
Creates a new TLcdHypsometricSlope for the reference direction
(0, 0, 1).
|
TLcdHypsometricSlopeAngle(double aReferenceDirectionX,
double aReferenceDirectionY,
double aReferenceDirectionZ)
Creates a new TLcdHypsometricSlope for the given reference direction.
|
TLcdHypsometricSlopeAngle(double aReferenceDirectionX,
double aReferenceDirectionY,
double aReferenceDirectionZ,
ILcdHypsometricNormalProvider aHypsometricNormalProvider)
Creates a new TLcdHypsometricSlope 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.
|
double |
getReferenceDirectionZ()
Returns the z component of the reference direction.
|
public TLcdHypsometricSlopeAngle()
public TLcdHypsometricSlopeAngle(double aReferenceDirectionX, double aReferenceDirectionY, double aReferenceDirectionZ)
aReferenceDirectionX
- the x component of the reference direction.aReferenceDirectionY
- the y component of the reference direction.aReferenceDirectionZ
- the z component of the reference direction.public TLcdHypsometricSlopeAngle(double aReferenceDirectionX, double aReferenceDirectionY, double aReferenceDirectionZ, ILcdHypsometricNormalProvider aHypsometricNormalProvider)
aReferenceDirectionX
- the x component of the reference direction.aReferenceDirectionY
- the y component of the reference direction.aReferenceDirectionZ
- the z component of the reference direction.aHypsometricNormalProvider
- the normal provider.public double getReferenceDirectionX()
public double getReferenceDirectionY()
public double getReferenceDirectionZ()
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.