public class TLcdFixedHeightAltitudeProvider extends Object implements ILcdAltitudeProvider
Returns a fixed altitude value for each point.
The following image gives a visual explanation of this altitude provider. The two green lines denotes the two different altitudes path that can result from this provider.
Constructor and Description |
---|
TLcdFixedHeightAltitudeProvider(double aFixedHeight,
TLcdCoverageAltitudeMode aAltitudeMode)
Creates a new fixed height altitude provider.
|
Modifier and Type | Method and Description |
---|---|
TLcdAltitudeDescriptor |
getAltitudeDescriptor()
Returns the descriptor which describes how to interpret the altitude values.
|
TLcdCoverageAltitudeMode |
getAltitudeMode()
Returns the altitude mode specified in the constructor of this instance.
|
ILcdGeoReference |
getPreferredReference()
Returns
null . |
double |
retrieveAltitudeAt(ILcdPoint aPoint,
ILcdGeoReference aPointReference)
Returns a fixed height, specified in the constructor of this instance, for the given point.
|
public TLcdFixedHeightAltitudeProvider(double aFixedHeight, TLcdCoverageAltitudeMode aAltitudeMode)
aFixedHeight
- The fixed height for this altitude provider.aAltitudeMode
- The altitude mode for this altitude provider.public double retrieveAltitudeAt(ILcdPoint aPoint, ILcdGeoReference aPointReference)
retrieveAltitudeAt
in interface ILcdAltitudeProvider
aPoint
- The point indicating the location for which to retrieve the altitude.aPointReference
- The reference of the given point.public ILcdGeoReference getPreferredReference()
null
. This altitude provider does not have a preferred reference.getPreferredReference
in interface ILcdAltitudeProvider
null
.ILcdAltitudeProvider.retrieveAltitudeAt(ILcdPoint,ILcdGeoReference)
public TLcdAltitudeDescriptor getAltitudeDescriptor()
ILcdAltitudeProvider
getAltitudeDescriptor
in interface ILcdAltitudeProvider
public TLcdCoverageAltitudeMode getAltitudeMode()
getAltitudeMode
in interface ILcdAltitudeProvider