Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8133331

Public Scene Graph Traversal API

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8u60
    • javafx

      A DESCRIPTION OF THE REQUEST :
      It is necessary to perform custom picking and scene traversal for various purposes. Docking frameworks require the ability to transform events to occluded scene graph nodes. Ray casting and hit detection is an integral aspect of rich graphics processing both 2D and 3D. For picking event targets on custom events it is necessary to have this functionality for the programmer to easily define event targets.

      JUSTIFICATION :
      The existing code is already stable and an integral part of the JavaFX framework. This code can be leveraged through a public API for a number of use cases. The disclosure of this private functionality is a cost-effective task with a number of benefits.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I would like to be able to ask a scene or scene graph node to traverse its children and find a collision detection with a shape or ray cast just as can be done using .lookup()

      I would also like to see the ability to traverse the entire scene graph from the root to all individual leafs.

      It would primarily be expected that Node.pick() be made public.
      ACTUAL -
      There is limited functionality provided including .lookup() and built in MouseEvent pick results. In some cases parents such as SplitPane have inconsistent parenting scheme's compared to other nodes and require additional casting for traversal.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: