Class TLcdVVGridLineOrdinateProviderRVSM
- All Implemented Interfaces:
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.
- Since:
- 8.1
-
Constructor Summary
ConstructorDescriptionConstructs a default RVSM grid-line ordinate provider. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
getGridLineOrdinates
(double aScale, ILcdInterval aRange, TLcdAltitudeUnit aUnit) Returns an array of altitudes for which a grid-line is needed in the vertical view.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.
-
Constructor Details
-
TLcdVVGridLineOrdinateProviderRVSM
public TLcdVVGridLineOrdinateProviderRVSM()Constructs a default RVSM grid-line ordinate provider.
-
-
Method Details
-
getSnappedRange
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.
- Specified by:
getSnappedRange
in interfaceILcdVVGridLineOrdinateProvider
- Parameters:
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.- Returns:
- the range required by the vertical view to snap to its grid.
-
getGridLineOrdinates
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.
- Specified by:
getGridLineOrdinates
in interfaceILcdVVGridLineOrdinateProvider
- Parameters:
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.- Returns:
- an array of altitudes for which a grid-line is needed in the vertical view.
-
getSubGridLineOrdinates
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.
- Specified by:
getSubGridLineOrdinates
in interfaceILcdVVGridLineOrdinateProvider
- Parameters:
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.- Returns:
- an array of altitudes for which a sub grid-line is needed in the vertical view.
-