From 05de3b0797ea2e41462a3a419bccc998c77a30dd Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 10 Apr 2023 06:05:41 +0200 Subject: GraphUI: Container (Group, Scene): Add removeAllShapes() and expose frustum-culling get/set --- src/graphui/classes/com/jogamp/graph/ui/Container.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/graphui/classes/com/jogamp/graph/ui/Container.java') 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 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 -- cgit v1.2.3