Class TLcdVVGridLineOrdinateProviderRVSM

java.lang.Object
com.luciad.view.vertical.TLcdVVGridLineOrdinateProviderRVSM
All Implemented Interfaces:
ILcdVVGridLineOrdinateProvider

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.

Since:
8.1
  • Constructor Details

    • TLcdVVGridLineOrdinateProviderRVSM

      public TLcdVVGridLineOrdinateProviderRVSM()
      Constructs a default RVSM grid-line ordinate provider.
  • Method Details

    • getSnappedRange

      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.

      Specified by:
      getSnappedRange in interface ILcdVVGridLineOrdinateProvider
      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

      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.

      Specified by:
      getGridLineOrdinates in interface ILcdVVGridLineOrdinateProvider
      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

      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.

      Specified by:
      getSubGridLineOrdinates in interface ILcdVVGridLineOrdinateProvider
      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.