Package com.luciad.view.vertical
Interface ILcdVVGridLineOrdinateProvider
- All Known Implementing Classes:
TLcdDefaultVVGridLineOrdinateProvider
,TLcdVVGridLineOrdinateProviderRVSM
public interface ILcdVVGridLineOrdinateProvider
Provides information on the vertical view grid. It determines the range after snapping of the vertical view grid. It also returns the grid-line ordinates and sub grid-line ordinates for the vertical view grid.
- Since:
- 8.1
-
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.
-
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
.- 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.
- 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.
- 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.
-