public class TLcdVVGridLineOrdinateProviderRVSM extends Object implements ILcdVVGridLineOrdinateProvider
Provides grid-line information based on the Reduced Vertical Separation Minimum (RVSM). The
provider is defined for the altitude units FLIGHT_LEVEL
and FEET
.
The provider will always return valid flight level values. For values below FL410 (41,000 ft) a step of 1,000 ft is used, for values above FL410 (41,000 ft) the step is 2,000 ft. Note that negative flight levels are not allowed. The lowest flight level returned is therefor FL0.
Constructor and Description |
---|
TLcdVVGridLineOrdinateProviderRVSM()
Constructs a default RVSM grid-line ordinate provider.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getGridLineOrdinates(double aScale,
ILcdInterval aRange,
TLcdAltitudeUnit aUnit)
Returns an array of altitudes for which a grid-line is needed in the vertical view.
|
ILcdInterval |
getSnappedRange(double aScale,
ILcdInterval aRange,
TLcdAltitudeUnit aUnit)
Returns the range required by the vertical view to snap to its grid.
|
double[] |
getSubGridLineOrdinates(double aScale,
ILcdInterval aRange,
TLcdAltitudeUnit aUnit)
Returns an array of altitudes for which a sub grid-line is needed in the vertical view.
|
public TLcdVVGridLineOrdinateProviderRVSM()
public ILcdInterval getSnappedRange(double aScale, ILcdInterval aRange, TLcdAltitudeUnit aUnit)
Returns the range required by the vertical view to snap to its grid. This method is
used when the vertical view is configured to snap to its grid
.
The range is snapped to valid flight levels as defined by RVSM.
getSnappedRange
in interface ILcdVVGridLineOrdinateProvider
aScale
- The scale of the vertical view grid, defined in pixels per altitude unit.aRange
- The current range of the vertical view grid.aUnit
- The altitude unit in which the vertical view grid is defined.public double[] getGridLineOrdinates(double aScale, ILcdInterval aRange, TLcdAltitudeUnit aUnit)
Returns an array of altitudes for which a grid-line is needed in the vertical view.
The returned ordinates are always to valid flight levels as defined by RVSM.
getGridLineOrdinates
in interface ILcdVVGridLineOrdinateProvider
aScale
- The scale of the vertical view grid, defined in pixels per altitude unit.aRange
- The current range of the vertical view grid.aUnit
- The altitude unit in which the vertical view grid is defined.public double[] getSubGridLineOrdinates(double aScale, ILcdInterval aRange, TLcdAltitudeUnit aUnit)
Returns an array of altitudes for which a sub grid-line is needed in the vertical view.
The returned ordinates are always to valid flight levels as defined by RVSM.
getSubGridLineOrdinates
in interface ILcdVVGridLineOrdinateProvider
aScale
- The scale of the vertical view grid, defined in pixels per altitude unit.aRange
- The current range of the vertical view grid.aUnit
- The altitude unit in which the vertical view grid is defined.