Interface ILcdMultilevelGrid

All Superinterfaces:
ILcdBounded

public interface ILcdMultilevelGrid extends ILcdBounded
Describes a rectangular, axis aligned, uniform, multilevel grid. A grid defines a number of areas which can be located and expressed using multilevel coordinates. These coordinates may be expressed in any reference. A multilevel grid has multiple levels, each having a different granularity, based on the level above, designating smaller areas. A multilevel grid is defined by:
  • the extreme points of the grid. These are the points with the highest and lowest coordinates expressed in the reference on which this grid is based.
  • the number of levels of the grid,
  • the number of subdivisions of the grid at each of those levels. The number of subdivisions will define the granularity of the grid at each level.
Since:
7.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Constant for the X axis.
    static final int
    Constant for the Y axis.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new editable multilevel grid coordinate.
    int
    getDivisions(int aLevel, int aAxis)
    Returns the number of subdivisions in the grid at a given level along a given axis.
    int
    Returns the number of levels the grid described consists of.

    Methods inherited from interface com.luciad.shape.ILcdBounded

    getBounds
  • Field Details

  • Method Details

    • getLevelCount

      int getLevelCount()
      Returns the number of levels the grid described consists of.
      Returns:
      the number of levels the grid described consists of.
    • getDivisions

      int getDivisions(int aLevel, int aAxis)
      Returns the number of subdivisions in the grid at a given level along a given axis. The number of subdivisions is given compared to the previous level.
      Parameters:
      aLevel - the level for which the subdivisions will be returned. Should be smaller than the level count.
      aAxis - the axis for which the subdivisions will be returned, either X_AXIS or Y_AXIS.
      Returns:
      the number of subdivisions in the grid at a given level along a given axis.
    • createGridCoordinate

      default ILcdEditableMultilevelGridCoordinate createGridCoordinate()
      Creates a new editable multilevel grid coordinate.
      Returns:
      a multilevel grid coordinate that can be edited
      Since:
      2020.1