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
ConstructorDescriptionGridBoundsManager
(int deviceWidth, int deviceHeight, int gridWidth, int gridHeight) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
int
getMostRecentDraw
(Rect2fc bounds) static GridBoundsManager
makeRes
(int deviceWidth, int deviceHeight, int gridCellSize, int maxGridSize) void
recordDraw
(Rect2fc bounds, int order)
-
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
- Specified by:
getMostRecentDraw
in classBoundsManager
-
recordDraw
- Specified by:
recordDraw
in classBoundsManager
-
clear
public void clear()- Specified by:
clear
in classBoundsManager
-