Picking a leaf node

Hi,
I have a BranchGroup (under several other BranchGroups and TransformGroups) which contains a number of Leaves (Spheres). I want to be able to use picking to find out which Sphere the user clicks on - do I have to add a behaviour to the tree to achieve this, and if so, where should I add it? I am not sure of this, but it seems that the Java 3D tutorial says that only BranchGroups can be picked, can this really be?
Cheers!
/David

only BranchGroups can be picked, can this really be?No. See
com.sun.j3d.utils.picking.behaviors.PickRotateBehavior
regards

Similar Messages

  • How to Find the node or leaf node selected in Tree UI element:

    Hi All,
    I have a tree structure with three level design. We have a button, which will perform some operation on the specific node or leaf node on every level.
    When we select any node or leaf node, we have action Onction getting called.  But what we want is that, after we select the node or leaf node,  we press a button below the tree design and perform some operation on the node selected.
    But how to get information that on Application , which node or leaf node has been slected ?
    Thanks
    PG

    Hi,
    Found the solution.
    Juts keep on reading all the nodes, system gives the complete path of the tree by using Lead selection and then we can use this path to peform the update operation on tree structure.
    Thanks alot for the hint.
    Regards
    PG

  • ADF TreeTable - How to hide Disclose/Expand icon for leaf node

    We are using ADF Tree Table in our application.
    Whenever a node is expanded - all the child nodes have the disclose/expand icon along with it.
    But, we don't want to show the disclose/expand icon if it is a leaf node.
    How can this be done?
    JDeveloper Version: JDeveloper 11.1.1.3
    Thanks,
    Navaneeth

    I have a hierarchical tree based on single POJO based class exposed as data control.
    (i.e) a node can have many levels.
    Can you specify how we can use the folder icon for this - Can you please provide some detailed information?
    Thanks in advance,
    Navaneeth

  • How to make the leaf node of the APEX tree downloadable

    Hi All,
    I am trying to build a "library" page for my application, with the documents as the leaf nodes of the tree. The documents come from a database table, and each document is a BLOB.
    My question is, how should I write the "link" part of the APEX tree query to make the lead node document downloadable for the end users?
    Thanks,
    Christine

    Hilary helped me out of this by creating a new form page with two new items there corresponding to the PK and BLOB column, then in the tree query use apex_util.get_blob_file_src function as the link. Below is the email from Hilary:
    1. Created Form, page 13, based upon your table storing the documents as BLOBs. The form page has just two associated items: P13_DOC and P13_DOC_ID. The item P13_DOC is of type FILE and contains a source type of DB column, which is the first required parameters of the function get_blob_file_src. NOTE: I could have created a form region on the same page as your tree, but chose to generate a separate page. You may choose to change this yourself.
    2. Updated the Tree query on pg 12 to use the following link for tree nodes of level 4:
    apex_util.get_blob_file_src('P13_DOC',v.attr3)
    ...where P13_DOC is the application page item mentioned in step 1 above, and v.attr3 should hold the unique ID associated with the document. Your tree now allows users to download the listed documents.

  • How to get the leaf node in a hierachy????

    if i get a record that a parent node in a hierachy table ,so how can i get the leaf node of this parent node quicklly?????thank you!

    Hi xuhuanjun ,
    Refer to the below threads which disucss the same.
    Re: how to ensure a hierarchy tree's node is a internal leaf???????
    Re: Retrieve Hierarchy Leaf Node using API.
    Hope it helps.
    Thanks,
    Minaz

  • Hierarchy VIewer - Card only on Leaf nodes

    I am using version 11.1.2.3.0.
    Is there a way to show a Card only on the leaf nodes of the Hierarchy VIewer?
    I have information that only applies to the nodes on the very bottom of the tree.
    Thanks in advance.

    This should be possible.
    I've not tested this but you can use the rendered property of the panelCard component and set it to an EL which evaluates to false is the node has children (node.hasChildren? or some other data which lets you know if you want to show the card).
    If this does not work you leaf the rendered property as is and use the visible or rendered property of the component which holds the information you only want to show in leaf nodes.
    Timo

  • How to test a 'leaf' node when parses a DTD?

    Hi All:
    Suppose I have <!ELEMENT Name (#PCDATA)> in my dtd. What is the correct way to test the node is a 'leaf' node? I am thinking to use ElementDecl.ELEMENTS to eliminate leaves. Is it correct? As far as I see, the type of leaves is ElementDecl.MIXED. Please verify.
    Thanks!
    Frank

    Hello Sai,
    I am afraid you have posted your question in the wrong forum. This forum is about Oracle On Track Communication, a next-generation social enterprise collaboration product.
    Please re-post your question in an ADF related forum and I am sure someone will be able to answer.
    Thank you,
    Ernst.

  • Hierarchical query - Stop at specific leaf nodes - How to in Oracle 9i ?

    Table H -- Master table to build Hierarchical tree
    C -- Child
    P -- Parent
    Table RN -- Table defining Root Nodes
    N -- Node
    Table LN -- Table defining Leaf Nodes
    N -- Node
    The following Query can generate trees starting with the nodes specified in the Table:RN
    SELECT LEVEL L, C, P, SYS_CONNECT_BY_PATH(C,'/') SCBP
    FROM H
    START WITH C IN ( SELECT N FROM RN )
    CONNECT BY PRIOR C = P
    How do I limit the tree to the nodes specified in the LN table ?
    "CONNECT BY" does not support "IN" clause
    i.e
    CONNECT BY PRIOR C = P AND P NOT IN (SELECT N FROM LN)
    Say we have 2 trees
    1-2-3-4-5
    A-B-C-D-E
    RN : 2,B
    LN : 5,D
    Result:
    2,3,4 (5 is excluded)
    B,C (D is excluded)
    Any help is appreciated...

    What about:
    select level l, c, p, sys_connect_by_path(c,'/') scbp
      from (select * from h
             where c not in (select n from ln))  -- filter via an inline view
    start with c in ( select n from rn )
    connect by prior c = p;

  • Identifying leaf node in a JTree

    I have a single selection JTree which was constructed using DefaultTreeModel.
    asksAllowsChildren is set to 'true' in the tree model.
    The nodes in the model are constructed using DefaultMutableTreeNode and each
    node is marked if it allows children or not.
    How can I find if a selection is a leaf node or not.
    Thanks.

    Answering my own post, solution is:
    tree.getModel().isLeaf(tree.getSelectionPath().getLastPathComponent())
    where tree is the JTree object.

  • Drill and Navifgate only from leaf node

    Hi
    I have implemented level based hierarchy for my dimension. I want to navigate to another report only from the leaf node of the hierarchy.
    Can you please let me know how can this be achieved? How can i identify the leaf node in a level based hierarchy

    This is not a duplicate of the item mentioned. With one I have a node anywhere in the tree and need to walk up to find the parent. In this one, I have the parent and need to delete leaf nodes up to this parent. I each one I have a different set of constraints and different ids to work with. Thanks for your help.

  • Leaf nodes in Flex cluster

    Hi,
      can somebody explain what leaf nodes in flex cluster are?from documentation I see that they are nodes which dont have access to storage and they communicate with hub nodes.
      Can they have oracle db instances?If so how is data transfered between hub and leaf nodes?Through interconnect?Doesn't it overload the interconnect?
    Thanks
    Sekar

    Sekar_BLUE4EVER wrote:
    Thanks Aman...Still confused about this...Consider the following scenario
    |       H1       |<------->  |        H2         |   <------> |       H3        |
    |                   |              |                      |               |                    |
    | L1  L2  L3  |              | L1   L2   L3   |               | L1  L 2 L3   |
    | _________|              |___________|               |__________|
    H depicts the hub nodes and L depict the leaf nodes.Assume each Hub node has 3 leaf nodes attached to them.
    Suppose L1 connected to H1 needs a block and modifies it and after sometime L1 connected to H2 needs the same block then it must follow the same 2 way/3 way grant as in normal cache fusion right?
    Does this actually increase the number of hops since the leaf nodes are not directly connected?
    Do we have any control over the leaf node to hub node mapping or is it all automatically managed?
    Thanks
    The blocks are going to be accessed, modified at the Hub nodes only AFAIK as the Hub nodes are considered as DB Nodes. The Leaf Nodes are going to be considered as the Application Nodes. That's the reason, it's better to set up the instances running on the Hub Nodes only rather than the Leaf Nodes. Even if the instance runs on a Leaf Node, the communication is between the Hub and Leaf node only and it won't do any harm as both the nodes-Hub and Leaf(and the other nodes in the Leaf group) would be talking to each other directly. There is no VIP required on the Leaf Nodes so the connections by the database users would be only on the Hub Nodes, I guess and that means, the block movement would remain essentially the same.
    The number of network hops are reduced as you won't be having a requirement to have too many Hub Nodes since each Hub node can connect to  64(?) Leaf Nodes. So essentially, in your case, you would need only 4 Interconnects (2 on one Hub Node and 1 each on the remaining two) for the private interconnect and just 3 network links for the storage for each Hub node.
    I am not sure that I understood the last question of yours.
    HTH
    Aman....

  • Hierarchical Query from a leaf node

    I have thist table
    create table employee(
    emp_id number(7) not null
    name varchar(30)
    supervisor_id number(7)
    Constraint PK_employee primary key(emp_id))
    This is my data
    Insert into employee(emp_id,name) values (1,Boss)
    Insert into employee values(2,Subordinate1,1)
    Insert into employee values(3,Subordinate2,1)
    Insert into employee values(4,Subordinate3,1)
    Insert into employee values(5,Subordinate4,2)
    Insert into employee values(6,Subordinate5,5)
    Insert into employee values(7,Subordinate6,3)
    In my program, I'll be given the leaf node lets say, Subordinate5, I want to get the whole hierarchy for that subordinate like this:
    Boss\Subordinate1\Subordinate4\Subordinate5
    or Subordinate 6
    Boss\Subordinate2\Subordinate6
    Help will be greatly appreciated. Thanks.

    Here is another - a little bit rewritten - version:
    michaels>  SELECT full_path
      FROM (SELECT LTRIM (SYS_CONNECT_BY_PATH (NAME, '\'), '\') AS full_path
                  FROM employee e
            CONNECT BY PRIOR emp_id = supervisor_id ORDER BY LEVEL DESC)
    WHERE ROWNUM = 1 AND SUBSTR (full_path, INSTR (full_path, '\', -1) + 1) = 'Subordinate5'
    FULL_PATH                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
    Boss\Subordinate1\Subordinate4\Subordinate5                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    1 row selected.

  • Hierarchical Dimension with a leaf node w/o any parent

    Hi
    We have a Product Dimension with five levels L0, L1, L2, L3 and L4 (L0-lowestlevel, L4-HighestLevel).
    With one Hierarchy STANDARD as
    L4, NULL (Parent)
    L3, L4 (L4 is the parent of L3)
    L2, L3
    L1, L2
    L0, L1 (L1 is the parent of L0)
    The product dimension table has a record with values only for L0 and NULL values for other Levels..
    (ie) We have a requirement to create a value in L0 which will have no parents.. The rest of the values in L0 will have parents.
    Would like to know if this is possible in AW. This was possible in Express Server
    regards
    uma

    HI
    yes we have run into a big problem. We have created leaf nodes w/o parent in aw and created relational views of those. The measure views thus created has data for these dimension values but when accessed thru BI Beans (ie in the cross-tab if we have this measure) the data is not getting displayed for these dimension values (Which do not have parent)
    Any immediate response will be of greate help to us.

  • TechTool 4 Volume test and "invalid leaf node"

    Just a "heads up". I just installed TechTool 4 and ran the usual diagnostics as a level-set. I was surprised to discover that I had two volumes with invalid leaf nodes. To make a long story short, the discussion with TT support revealed that there's apparently nothing wrong with my drives. They've both been re-formatted, surface scanned, repaired, etc. I've never had any errors from either of them. One is a Seagate 250GB and the other is a WD 160GB. TT support asked to borrow one of my drives for a couple weeks(!) because they think it's a bug and can't reproduce it. Disk Utility says there's nothing wrong. Take Volume Scan leaf node errors reported by TT4 with about a pound of salt, since the bug is still there (and will be, since I can't live without the drive for weeks and they won't buy it). I'm reporting it here, because they suppressed the majority of our discussion on their forum and I don't particularly approve of them hiding a known bug from customers. I have the TT logs and anyone who wants to see them can just ask, BTW. This isn't a vendetta against them so much as an attempt to spare others the 2 days of lost work I experienced while running various things for TT support, all to find out that I'm not the one with the problem.
    Mac Pro   Mac OS X (10.4.9)   3GHz, 4GB

    Oh Yeah, that I know. I run two intermediate backups and a full clone daily. The awkward thing is that one of the drives is my "snapshot backup" drive, naturally. They swear that they've only had one other report of this and it went away with a reformat. Mine did not. You'd think that a reformat and surface scan would reveal a hard, repeatable, drive error - which TT4 implies I have. What are the odds that I have two drives with a totally unique problem (such as they described it), made by different manufacturers, with hard and repeatable errors that only their program can detect? SMART says they're OK, Disk Utility says they're OK, no errors are logged, their temperatures are the same. If this error is so rare, how is it that I just happen to have it on 50% of my drives? It's been a Royal Pain to re-jigger my drives so that the backups go to a drive that doesn't have the "error", just in case.

  • How to know which leaf node i click and how to add a listener to each node?

    hi! hello to all members, i have a problem i know how to create a listener, but i dont know how to add a listener to each leaf node. here is the scenario i want to do, i have a JTree where theres a topic that you can select on each leaf node, so when the user click the specific topic it will open another JFrame,which i dont know how to do it also, that its! the next problem will be how do i know which leaf node i select, so that i can open a right topic before the JFrame will open?please, i am very need this to solve quickly as possible. thanks again to all members.

    What you have to do is to add a mouse listener on your JTree. Try something like this:
    tree.addMouseListener(new java.awt.event.MouseAdapter() {
             public void mouseReleased(MouseEvent e) {
                tree_mouseReleased(e);
    private void tree_mouseReleased(MouseEvent e) {
          TreePath selPath = tree.getSelectionPath();
          // Check If the click is the Right Click
          if (e.isPopupTrigger() == true) {
          // This is your right Click
           else {
                     // This is your Left Click
    }Your other problem: Set the userObject on nodes and on left click compare it with your object, if it matches, display the appropriate file. Alternatively, if your nodes are unique, you can match the names to open the file.
    Hope this Helps
    Regard
    Raheel

Maybe you are looking for

  • Crashes and Lock-ups

    I have been experiencing crashes and lock-ups in Premiere CS4. Last week I was running Encore to burn a DVD and when I noticed the processor was running flat out. I decided to run Core Temp to check the temperatures. At that point my encoding stopped

  • Can't hear audio from handheld mic recording

    I can hear interviews I recorded with a handheld mic on videos edited in iMovie and uploaded to YouTube only if I access YouTube via a brower such as Safari and Puffin and only if I use my new third generation iPad or an iMac or PC. If I try to acces

  • DAQmx on Debian

    First off, I am not using LabView. I am running Debian 3.1 (sarge) on kernel 2.4.20. I downloaded the DAQmx base from NI's site, and tried to install it. I had to convert each individual RPM to a .deb using alien, then install the .deb's using dpkg.

  • Query to group values with date

    Dear all, I have a table tdate with 13 columns with one column named trandate with value like "11/07/2008 18:00:19" NOw I want to retrieve values from the table like select count(*) from trandate where where ttype = '081' and T_FILE like 'monT%'; I w

  • Inconsistent or No access to Verizon Webmail

    Over the last week or so, we have been unable to access the Verizon Webmail site at all or with serious inconsistency. This does not seem to matter what broswer or version we choose to use.  Site:  webmail.verizon.net or webmail.verizon.com Browser o