Accessing nodes by name

I need to get stuff out of the scene graph, but the only thing I've found so far is this:
Enumeration enum = scene.getAllChildren();
... and then recurse through (ouch!), and then I still don't know anything about the objects returned except the type. I can also do getChild(index), but what if I don't know the index? All I really want to do is stuff like this:
TransformGroup myGroup = scene.getNode("TransGroup123");
But I haven't found any way to get Geometry, Shapes, or Groups by name.

The Java3D objects have a 'user data' instance variable that you can use for your whatever purpose you want. For example, consider using a hash map in your branch group to keep the children by name. When adding the object to the scence graph, also add it to the hash map. Then you can access it by name via the hash map lookup.
See getUserData() and setUserData() in SceneGraphObject.
Mike

Similar Messages

  • We have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc. from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when

    Hello All,
    we have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc.
    from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when we are trying to access the share folder with IP it asking for credentials i have type again and again
    correct credential but unable to access that. If i re-share the folder then we are access it but when we are restarted the system then same problem is occurring.
    I have checked IP,DNS,Gateway and more each & everything is well.
    Pls suggest us.
    Pankaj Kumar

    Hi,
    According to your description, my understanding is that the same shared folder can be accessed by name, but can’t be accessed be IP address and asks for credentials.
    Please try to enable the option below on the device which has shared folder:
    Besides, check the Advanced Shring settings of shared folder and confrim that if there is any limitation settings.
    Best Regards,
    Eve Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Windows 7 Desktop synchronisation - Windows cannot access \\server\users\name\desktop

    Hi there
    My client has a laptop which won’t load the desktop when disconnected from the network. When you log on (while disconnected) you get the error
    “Windows cannot access \\server\users\name\desktop”
    Works as expected while connected to the network.
    The server is a Windows Small Business Server 2003 with active directory etc. and roaming profiles turned on. This issue does not occur on other workstations/laptops.
    When I check the Users folder on the local system drive there is not a desktop folder. I assume this is the issue although I’m not sure how you would force windows to create one or why one hasn’t been created?
    This is a brand new laptop so my initial reaction was to reset the laptop to factory state and then add the laptop back in to the domain. After this process the issue was still present!
    I guess the only thing I should mention is that this was shipped as a Home Premium laptop and was then upgraded to Professional using an upgrade key.
    I have checked Control Panel, System & Security, System, Advanced, User Profiles and the account shows as Local with Roaming Profiles greyed out.
    Any ideas?
    Martyn Fewtrell
    [email protected]
    Martyn Fewtrell TNC (IT Solutions) Ltd Email: [email protected] Web: http://www.tncit.co.uk

    Hi,
    I am just writing to check the status of this thread. Was the information provided in previous
    reply helpful to you? Do you have any further questions or concerns? Please feel free to let us know.
    Regards,
    Alex Zhao
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Alex Zhao
    TechNet Community Support

  • How to access PO host name in SAP BPM

    Dear experts,
       I want to give BPM inbox link as a customized message to "potential owners" in "Email Notification" step in BPM. I want to identify the <hostname> and generate the BPM inbox link. Is they any way to access the host name as "system variable" in BPM?
    Thanks!
    Amulya

    Thank you for your reply Siddhant.
    Ya, I am aware of NWA config to get an automated email for human activity. The reason I can not use this option because, automated email can not be customised. I have the requirement to customize the email with some payload variables.
    I have implemented some workaround to get the host name in BPM.
    Thanks and Regards,
    Amulya

  • CalDAV Server: Access to account "NAME" is not permitted.  The server responded: "403" to operation CalDAVRemoveCalendarQueueableOperation.

    I am running SL Server 10.6.8 and have a problem with only one iCal server account (mine).  I am unable to delete a calendar that I created. I can rename it (was called "Home" and changed it to "Delete Me"). I can create new calendars and have one called "Home" and another called "Work" which I can also rename and delete without any problem.  However, when I try to delete my original "Home" calendar, now called "Delete Me" it warns me that I will loose any appointments so I know iCal thinks there are events in the calendar otherwise it would not give that prompt. However, when I go to the year view and scan forward and back approx 20 years there are no events to be seen. I then confirm that I want to delete the account and then I get the following error with the option to "Ignore" or "Go Off-line"...
    Access to account “NAME” is not permitted.
    The server responded: “403” to operation CalDAVRemoveCalendarQueueableOperation.
    If I ignore the calendar simply reapears and if I go off-line my calendar stops syncing and remains off-line until I try to take it back on-line at which time I get the above error again.
    Any ideas how to fix this?  I think it is because of this calendar I am unable to access my calendar via web as well. All other accounts on the server are able to but mine but going to eat this elephant one bite at a time and then resolve the ical web access afterwards.
    Any help is greatly appreciated.  Thank you.

    Found solution!!!!
    After trying to delete the calendar "family" multiple times and reading through some threads... I was able to figure out that the "Family" calendar that we can't seem to delete is corrected to FAMILY SHARING.  Here is what I did:
    Went on my iPhone 5S
    1.Go to Settings
    2. Scroll down to iCloud; and click on it
    3.Click on "Family"
    4. Click on your name at the top (has to be the organizer, i think)- I was the organizer so it worked
    5.Stop Family Sharing
    6. Stop Sharing
    Now you can go to your calendar app and delete it! here is how in case you don't know
    1. Click on Calendar app
    2. Click on the word "Calendars" in middle of screen
    3.Click on "Edit" at top left hand corner of screen
    4. Scroll down to the calendar you want to delete and click on it
    5. Scroll to the bottom of the screen and click "delete calendar"
    DONE!!
    If you  are using your calendar on a mac like I was.... hence why it took sometime to figure this out.  You have to stop family sharing from iPhone (if you can do it on the mac- more power to you, I didn't try figuring that out) and then you can go on your mac (if your connect to WI-Fi):
    right click the calendar you want to delete,
    select delete and it should go away!
    yay!! hope this helps!!

  • Accessing  table column names from WAD

    Hi  All,
       I w ould  like  to  access  the  column names (the  Infoobject name) of a  table .
    Was  playing  arnd with  the API..SAPBWGetDataProviderDimensions
    but it  gives only characters  column name..
    WAS wondering if  any of  you  has any  idea  to access both  the  char  names as well  as  KF's.
    thnx  for  your  time..
    appreciate your  inputs/cues..
    -Led

    You can use the getDimensionName function to get the characteristic texts and infoobject technical name.  The following function might help you. 
    function getDimensionName(n,dp){
        var dim = SAPBWGetDataProviderDimensions(dp);
        var iobjnm = "";
        var str = "";
        if ( dim != null ){
          for( i=0;i<dim.length;i++ ){
            str = dim<i>[0];//setting str equal to the first position in the array
         str.indexOf("__")>-1 ? iobjnm = str.substring( str.indexOf("__")+2, str.length ) : iobjnm = str ;
           if (dim<i>[0]==n ){//this means we have found the property array for the info object we are concerned with
                if (dim<i>[20] == iobjnm)
                    return iobjnm
                else if ((dim<i>[20] != "") && (dim<i>[0] != dim<i>[20]))
                    return dim<i>[0]
                else
                    return dim<i>[0]
            else
               iobjnm="error";
          }//for
        }//if
        return iobjnm;
    }//end function
    Thanks,
    Jeff

  • Sharepoint access denied- Domain name expired

    Hi All,
    I am one of the user of sharepoint. Access and domain name was created by administrator for me earlier.
    Now when I am trying to log in it says domain name expired.
    In such cases, if any document is uploaded and shared through sharepoint then what will happen to it?
    All documents are erased or are still on server?
    Need help in this context.
    Thanks in advance
    TransSP

    Hi,
    No files and documents should be still there. The domain name expires just restrict you to log in to sharepoint site
    Hope this helps, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Netgear and 'Allow Access From "Any" Name'

    I have a Netgear Wireless Router MR814. My iBook with Airport Extreme connects without problems and reconnects automatically after sleep. I have turned on every level of security available except for one labelled 'Wireless Broadcast: Allow Access From "Any" Name'. If I turn this off (uncheck it), the Router does not appear in the iBook's Airport list but I can still connect if I use Internet Connect and select "Other Network". I then have to manually type in the name of the network and the 26 character WEP passphrase. However if I put the computer to sleep when it wakes up the connection is not automatically restored. I have the "Network" control panel set to "Connect to a specific Network" and entered my Network Name and WEP password with preceding $ but no joy. These settings work fine if I turn on 'Allow Access From "Any" Name'.
    12 iBookG4 + Quicksilver 867   Mac OS X (10.3.9)  

    <cut>
    </cut>
    IME, Windows wireless utilities could care less
    whether the name is broadcast or not. They decipher
    and show the name of the network anyway.
    Dueane,
    Who cares if your Windoze Utilities can find the SSID when someone turns the broadcast of their station name off? If the person is using WPA2 Personal level security as I am, You still have to crack the 63 character hex passphrase in order to gain entrance to my network.
    Not everyone is foolish enough to use a simple enlish passphrase so a Dictionary Attack can succeed with ease. Many of us make it as difficult as possible for some "script kiddie" or "war driver" to invade our private network.
    IIRC, a crack has yet to be found for WPA2 if you only know the station name & MAC address, but do NOT know the 63 hex character passphrase. I welcome urls from reliable web sites that will prove that WPA2 can be cracked withOUT the proper passphrase.
    Regards,
    Albatross
    G4 QuickSilver01 OWC 1.47Ghz CPU 1.5GB RAM 740GB HD   Mac OS X (10.4.2)   Al 17" G4 1.33 Ghz PowerBook with Aiport Extreme / Netgear WG302 & FVS318v3

  • Access Nodes Programmatically in Hierarchical Viewer

    Hi All
    Can any one tell me how to Access Nodes Programmatically in Hierarchical Viewer
    Tx

    How is the HierarchyViewer component populated (What is the data model for the HierarchyViewer)?
    What is your exact use-case/flow for your use-case?
    As the underlying data model/structure for the HierarchyViewer is exactly the same as the treetable, adding & deleting of nodes to the HierarchyViewer is exactly same as how we do for tree table.
    Thanks,
    Navaneeth

  • Access Node effecting Other Building Nodes

    We have one access ring having 6 Access Nodes(3750) and 6 Building nodes(2950) connected to each Access Node.Find ring connectivity diagram in attachment.
    Whenever Access Node 4 is become unreachable (i.e Due to power problem) Access Node 3 & 5's Building Switches got fluctuated twice for 10 to 15 seconds (Once when access Node 4 is down and second time when access node 4 is up). We've checked logging also on both Building Switches but not found any info. for this problem.
    Also, We've checked all the configuration on all switches (AS/BS) and found all configuration is ok on all switches.
    Pls help....

    This probaly has something to do with Spanning-Tree convergence.
    What do you mean by "Fluctuated"? Do you see complete downtime on the building nodes?
    Do you have any trunking going on between your building and access nodes? What settings are your building-access uplinks on?
    May we see a sample of your configs for a building as well as access node?
    Cheers,
    Josef.
    PS - I think the convention for naming "Building" (or Distribution) and "Access" functions may be the reverse of what you have in your diagram.

  • Accessing ArrayCollection Field Names

    Hello, this may sound like a n00b questoin but, I have an array collection which looks like the below:
        public var topFive:ArrayCollection = new ArrayCollection([
             {Month:"GAME_Redemptions"},
             {Month:"TALLINK_Redemptions"},
             {Month:"YvesRocher_Redemptions"},
             {Month:"ETAM_Redemptions"}
    With a loop for example, if I want to access the Value, I would type, topFive[i].month. However, if I want to access the Field name what would be the code. Im assuming it would be something like topFive[i] - but this does not return the desired output.
    Does anyone know how to do this? I wanted to avoid having to put the array into a datagrid and then extracting the values from there.
    Please help!
    Craig

    Thanks for your response, much appreciated. It works perfectly. Do you know how to delete a whole column out of an array coll
    ection?
    e.g.
        private var topFive:ArrayCollection = new ArrayCollection([
                     {Month:"GAME_Redemptions", value:10},
                     {Month:"TALLINK_Redemptions", value:10},
                     {Month:"YvesRocher_Redemptions",value:10},
                     {Month:"ETAM_Redemptions",value:10}
    To
                     {Month:"GAME_Redemptions"},
                     {Month:"TALLINK_Redemptions"},
                     {Month:"YvesRocher_Redemptions"},
                     {Month:"ETAM_Redemptions"}

  • Rename node tree name

    HI All
    I am working with alv tree (CL_GUI_ALV_TREE)and i want to rename a node name (via ON_NODE_CONTEXT_MENU_SELECT i provide  the option to rename node)
    in the tree and i found the method set_name but i dont have there
    a place when can i put the key of node
    there is diffrent way to update the node tree name  ?
    fior instance change node name from node_x to node_y  on the node view , i have node_x key
    Best regards
    Alex
    Edited by: Alex Dean on Sep 6, 2010 9:56 PM

    Hello,
    Please check this code.
       DATA: k_node_layout TYPE lvc_s_lacn.
       CONSTANTS: c_checked VALUE 'X'.
       FIELD-SYMBOLS: <leaves>  TYPE table,
                      <leaf>    TYPE ANY.
    Set the icon based on the parameter.
       k_node_layout-u_n_image  = c_checked.
       k_node_layout-u_exp_imag = c_checked.
    Set the icon value based on the parameter.
       k_node_layout-n_image   = new_icon.
       k_node_layout-exp_image = new_icon.
    Build the dynamic values for table and line.
       ASSIGN leaves->* TO <leaves>.
       CREATE DATA leaf LIKE LINE OF <leaves>.
       ASSIGN leaf->* TO <leaf>.
    Get the associated line item for the selected node.
       tree->get_outtab_line( EXPORTING  i_node_key     = node_key
                              IMPORTING  e_outtab_line  = <leaf>
                              EXCEPTIONS node_not_found = 1
                                         OTHERS         = 2 ).
    Update the icon of the node.
       tree->change_node( EXPORTING  i_node_key     = node_key
                                     i_outtab_line  = <leaf>
                                     is_node_layout = k_node_layout
                          EXCEPTIONS node_not_found = 1
                                     OTHERS         = 2 ).
    Thanks.
    Ramya.

  • Accessing Node Name in XSL

    Hi all,
    Is there some way I can access the node name of a node when I'm in an xsl, perhaps some kind of xpath statement, for example, I have the following:
    <row>
    <agreement>test</agreement>
    <date>today</date>
    </row>
    When I access all the child nodes of the row element, how can I find out the name of each child node, like "agreement" and "date"? thanks in advance.

    I Think this will help u
    <xsl:template match="/">
    <xsl:for-each select='.//row'>
    Node Name is : <xsl:value-of select="name()"/>
    <xsl:for-each select='./@*'>
    Attribute Name is :<xsl:value-of select="name()"/>
    Attribute Value is :<xsl:value-of select="."/>
    </xsl:for-each>
    Node value is : <xsl:value-of select="."/>
    </xsl:for-each>
    </xsl:template>
    Regards
    John Bruno
    508-740-2696

  • I have a listbox with propety nodes "Item names" and "Double click".I'm trying to access the files in the listbox using these nodes but it isn't working. How exactly does Items names work??

    I realise that the first item in the listbox is 0 but how can I open these files in the listbox...I'm very confused!!

    I have attached an example to help you out. Let me know if this is what your looking for.
    Good luck,
    Greg
    Attachments:
    listbox.vi ‏30 KB

  • Accessing Plot/Legend name

    In the proprty node of the graph I can only access the number of plots shown, but not their name in the legend. For exemple I have 6 plots. I want to name the last one "MyPlot 6". When I put plot shwn =5 plot 6 is disable, but when I put plot shown = 6, I have 6 plots but the name of the plot changed. I want to keep the same name as "MyPlot 6"

    You can use the "Active Plot" property to select a plot and change the plot name through "Plot -> Plot Name".
    Joe

Maybe you are looking for