Package icyllis.arc3d.granite.geom

# Class GridBoundsManager

java.lang.Object
icyllis.arc3d.granite.geom.BoundsManager
icyllis.arc3d.granite.geom.GridBoundsManager

public final class GridBoundsManager extends BoundsManager
A BoundsManager that tracks highest CompressedPaintersOrder over a uniform spatial grid.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GridBoundsManager(int deviceWidth, int deviceHeight, int gridWidth, int gridHeight)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `clear()`
  `int`
  `getMostRecentDraw(Rect2fc bounds)`
  `static GridBoundsManager`
  `makeRes(int deviceWidth, int deviceHeight, int gridCellSize, int maxGridSize)`
  `void`
  `recordDraw(Rect2fc bounds, int order)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GridBoundsManager

    public GridBoundsManager(int deviceWidth, int deviceHeight, int gridWidth, int gridHeight)

- ## Method Details

  - ### makeRes

    @Nonnull public static GridBoundsManager makeRes(int deviceWidth, int deviceHeight, int gridCellSize, int maxGridSize)

  - ### getMostRecentDraw

    public int getMostRecentDraw(Rect2fc bounds)
    Specified by:
      `getMostRecentDraw` in class `BoundsManager`

  - ### recordDraw

    public void recordDraw(Rect2fc bounds, int order)
    Specified by:
      `recordDraw` in class `BoundsManager`

  - ### clear

    public void clear()
    Specified by:
      `clear` in class `BoundsManager`