aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp/graph/ui/Container.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-04-10 06:05:41 +0200
committerSven Gothel <[email protected]>2023-04-10 06:05:41 +0200
commit05de3b0797ea2e41462a3a419bccc998c77a30dd (patch)
treecf50e65df7594fd158dadeca588ca4f380502cd8 /src/graphui/classes/com/jogamp/graph/ui/Container.java
parentdf60909c70b5dba10c9734e0c26d31e0649f4309 (diff)
GraphUI: Container (Group, Scene): Add removeAllShapes() and expose frustum-culling get/set
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/Container.java')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/Container.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Container.java b/src/graphui/classes/com/jogamp/graph/ui/Container.java
index e48476fcf..3cc8e2ce4 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/Container.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/Container.java
@@ -56,10 +56,19 @@ public interface Container {
/** Removes all given shapes, w/o {@link Shape#destroy(com.jogamp.opengl.GL2ES2, com.jogamp.graph.curve.opengl.RegionRenderer) destroying} them. */
void removeShapes(Collection<? extends Shape> shapes);
+ /** Removes all contained shapes, w/o {@link Shape#destroy(com.jogamp.opengl.GL2ES2, com.jogamp.graph.curve.opengl.RegionRenderer) destroying} them. */
+ void removeAllShapes();
+
boolean contains(Shape s);
AABBox getBounds(final PMVMatrix pmv, Shape shape);
+ /** Enable or disable {@link PMVMatrix#getFrustum()} culling per {@link Shape}. Default is disabled. */
+ void setFrustumCullingEnabled(final boolean v);
+
+ /** Return whether {@link #setFrustumCullingEnabled(boolean) frustum culling} is enabled. */
+ boolean isFrustumCullingEnabled();
+
/**
* Traverses through the graph up until {@code shape} and apply {@code action} on it.
* @param pmv