I'm not sure why your TransformGroups SEEM to have different IDs when they
are created and when they are picked.

I assure you, this works for me and is how I identify which TG I picked.

Check your hierarchy closely, I think the picking is reporting a different
TG in your hierarchy.




At 08:19 PM 01/15/2001 +0100, you wrote:
>hi Kyle,
>thats exactly what i tried to do, but my problem is so that after clicking i
>only retrieve a TG and when i apply getUserData() on this TG it gives null,
>but when i print this TG it gives a certain code which is different for
>every object but also different than when they were created. so there is no
>value which really stays constant and can be matched with. Dont know why ..
>
>Richie
>
>----- Original Message -----
>From: "Kyle Wayne Kelly" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, January 15, 2001 6:30 PM
>Subject: Re: [JAVA3D] Fw: [JAVA3D] picking behavior
>
>
> > You could keep a hashtable of objects in your listener, and upon receiving
>a
> > click check the hash.  Just use the object as the key, and the same
> > reference as the value.  When clicking, check the hash for the object, and
> > print whatever important info.  Does this answer your question?
>
> > ----- Original Message -----
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, January 15, 2001 4:01 AM
> > Subject: [JAVA3D] Fw: [JAVA3D] picking behavior
> >
> >
> > > Hi all!
> > > since I am really looking forward to find some way out and have'nt got
>any
> > > response from anybody, I am sending the problem again.
> > > thankx for any help, in advance
> > >
> > > ----- Original Message -----
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Sunday, January 14, 2001 10:22 PM
> > > Subject: [JAVA3D] picking behavior
> > >
> > >
> > > > To all,
> > > >
> > > > I have an application where when one double clicks on any text2D
>object,
> > a
> > > > certain action happens, which as of now works well, jointly for all
>the
> > > text
> > > > objects.
> > > > Now I  want that every object has its own unique info which i want to
> > > print
> > > > in a dialog box. For this i need to check  for its unique identity .
>All
> > > the
> > > > text Objects r under the same TG.
> > > >
> > > > When i try to print the TransformGroup  which is retrieved after
> > > > DoubleClicking
> > > > method the system prints code like:
> > > > javax.media.j3d.TransformGroup@68a41a99
> > > > javax.media.j3d.TransformGroup@e1801a98
> > > > javax.media.j3d.TransformGroup@e9981a98
> > > >
> > > >
> > > > The last four characters after the second Object r always the same.
> > > > I dont know how to identify the object with its unique identity.( The
> > > > complete number at the time of creation is different from the one that
> > one
> > > > gets when one clicks on some object !!) .
> > > >
> > > > When I pick the object I retrieve its TG.
> > > > IS THERE SOME WAY FOR ONE TO RETRIEVE WHICH OBJECT FROM THIS TG HAS
>BEEN
> > > > CLICKED ON ??
> > > >
> > > > Can somebody suggest me which way i can create objects and identify
>each
> > > > separately , such that every time one Double Clicks it can check for
>the
> > > > objects unique identity and accordingly print the right info.
> > > > Thankx a ton in advance..
> > > >
> > > > Richie
> > > >
> > >
> > >
> >
>===========================================================================
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> > > of the message "signoff JAVA3D-INTEREST".  For general help, send email
>to
> > > [EMAIL PROTECTED] and include in the body of the message "help".
> > >
> >
> >
>===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>body
> > of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".

***********************************************************************
Eric Reiss
Manager MEMS Lab
Swanson New Product Incubator
School of Engineering  - University of Pittsburgh

3700 O'Hara Street
647 Benedum Hall
Pittsburgh, PA 15261
Phone: 412-624-9696
Email: [EMAIL PROTECTED]
http://www.sigda.acm.org/Eric/
***********************************************************************

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to