I normally use Shape3D's to pick on. Picking of course works by
starting on a Shape3D that you have selected, and then if you want a
TransformGroup, it finds the next TransformGroup in the hierarchy with
pick reporting enabled (if I'm not mistaken). Therefore, I normally
just ask for Shape3D "picks" and do the setUserData on the Shape3D.
-Lee
-----Original Message-----
From: richie [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 15, 2001 2:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] picking behavior
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".
===========================================================================
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".