Package icyllis.arc3d.granite.geom
Class GridBoundsManager
java.lang.Object
icyllis.arc3d.granite.geom.BoundsManager
icyllis.arc3d.granite.geom.GridBoundsManager
A BoundsManager that tracks highest CompressedPaintersOrder over a uniform spatial grid.
-
Constructor Summary
ConstructorsConstructorDescriptionGridBoundsManager(int deviceWidth, int deviceHeight, int gridWidth, int gridHeight) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intgetMostRecentDraw(Rect2fc bounds) static @NonNull GridBoundsManagermakeRes(int deviceWidth, int deviceHeight, int gridCellSize, int maxGridSize) voidrecordDraw(Rect2fc bounds, int order)
-
Constructor Details
-
GridBoundsManager
public GridBoundsManager(int deviceWidth, int deviceHeight, int gridWidth, int gridHeight)
-
-
Method Details
-
makeRes
public static @NonNull GridBoundsManager makeRes(int deviceWidth, int deviceHeight, int gridCellSize, int maxGridSize) -
getMostRecentDraw
- Specified by:
getMostRecentDrawin classBoundsManager
-
recordDraw
- Specified by:
recordDrawin classBoundsManager
-
clear
public void clear()- Specified by:
clearin classBoundsManager
-