diff options
author | Sven Göthel <[email protected]> | 2024-02-05 12:03:02 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-02-05 12:03:02 +0100 |
commit | 4b5de7337d2b335d512a0ff969222f038b734b8b (patch) | |
tree | 5440d01debde253aaa25a4f6a5b572ec61b25284 /src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGv0500Natives.java | |
parent | 43a7899fedf2a570d20b03848bf15710f30b7f26 (diff) |
Bug 1498: GraphUI: Fix Picking Traversal throughout Groups in Z-Descending Order, testing Children and fallback to Group if positive
Picking algo in Z-Ascending order worked only by chance, as it picked up any bottom node.
+++
Proper algo is in Z-Descending order to block occluded (child) nodes:
for-all s : shapes
p1 = testPicking(s)
if ( s is Container ) {
p2 = testPicking(s.childs)
if( null != p2 ) {
p1 = p2; // override w/ child prio
}
}
return p1
}
Further, testPicking(shape) shall only return a positive shape,
if the event dispatching check (mouse-over, click, ..)
signals end-of-traversal - as originally intended.
Overall philosophy is to pick the 'deepest' child of a group
if responding, otherwise the next higher interactive group.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGv0500Natives.java')
0 files changed, 0 insertions, 0 deletions