Hi Richie,

The way I have done this, there's a function;

        public void setUserData(java.lang.Object userData)

you can set your customized info into a transform group or other objects and then;

        public java.lang.Object getUserData()

you can retrieve the info with this function.

Tell me if this is what you want


Ahmed





-----Original Message-----
From: richie [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 15, 2001 2:01 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Fw: [JAVA3D] picking behavior
Importance: High


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".

Reply via email to