summaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp/graph
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-05-23 02:15:00 +0200
committerSven Gothel <[email protected]>2023-05-23 02:15:00 +0200
commit8c0f65869a4689d5f908249de3a3439930f2886e (patch)
tree365a80a64126a31fc71381705458e5b6d826e002 /src/graphui/classes/com/jogamp/graph
parenta792b8f61d1274ba34fed6f8e1361117bd0e703e (diff)
GraphUI Scene: Drop redundant and wrong setupMatrix(pmv) for forOne(..) and forAll(..), should be setup before call by user
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/Scene.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Scene.java b/src/graphui/classes/com/jogamp/graph/ui/Scene.java
index 4ddcc719c..c501b8eb8 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/Scene.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/Scene.java
@@ -631,26 +631,24 @@ public final class Scene implements Container, GLEventListener {
/**
* Traverses through the graph up until {@code shape} and apply {@code action} on it.
- * @param pmv
+ * @param pmv {@link PMVMatrix}, which shall be properly initialized, e.g. via {@link Scene#setupMatrix(PMVMatrix)}
* @param shape
* @param action
* @return true to signal operation complete, i.e. {@code shape} found, otherwise false
*/
@Override
public boolean forOne(final PMVMatrix pmv, final Shape shape, final Runnable action) {
- setupMatrix(pmv);
return TreeTool.forOne(shapes, pmv, shape, action);
}
/**
* Traverses through the graph and apply {@link Visitor2#visit(Shape, PMVMatrix)} for each, stop if it returns true.
- * @param pmv
+ * @param pmv {@link PMVMatrix}, which shall be properly initialized, e.g. via {@link Scene#setupMatrix(PMVMatrix)}
* @param v
* @return true to signal operation complete and to stop traversal, i.e. {@link Visitor2#visit(Shape, PMVMatrix)} returned true, otherwise false
*/
@Override
public boolean forAll(final PMVMatrix pmv, final Visitor2 v) {
- setupMatrix(pmv);
return TreeTool.forAll(shapes, pmv, v);
}