|
In many applications an event occurs when the mouse
pointer is on an object for a time, is it possible to do something
similar in Java 3D?.
Thanks. (and sorry for mi english
please).
----- Original Message -----
Sent: Wednesday, November 21, 2001 7:20
PM
Subject: Re: [JAVA3D] MousePick!
sorry, i need to clarify one thing.
I haven't been
actively doing any Java3D and forgot that the callback method is implemented
in the picking versions of those three behaviors. So what I was talking
about would require using the extended picking versions of those three
behaviors.
The Sun examples show the basics of implementing the
callback method for the picking mouse behaviors.
Sorry for needing to
make a follow-up post.
At 01:13 PM 11/21/2001 -0500, you
wrote:
Each of the three behaviors you
mentioned has a callback method which when setup returns the transformgroup
of the object that was zoomed, translated, or rotated.
From this
transformgroup, you can get the Transform3D and hence the three
coordinates.
If you want to simply get the three coordinates without
causing the position / orientation of the object to change, this is a little
different.
You would need to right your own behavior. I have
modified the three behaviors you mentioned and created one that allows me to
retrieve properties of an object without changing the position /
orientation.
If you want to see what i did, follow this
URL:
http://www.sigda.org/Eric/java3d/behaviors/index.htm
At
05:53 PM 11/21/2001 +0100, you wrote:
Hi
all, I have a system of three axis and I work with
mouseZoom mouseTranslate and mouseRotate in this system. But I want to find a generic point(x,y,z) in this system. Is it possible to return by
mouseclick the three coordinates of this point? Thanks. Gianni
*********************************************************************** Eric
N. Reiss MEMS Manager Swanson Center for Product
Innovation Department of Mechanical Engineering School of
Engineering - University of Pittsburgh
3700 O'Hara
Street 647 Benedum Hall Pittsburgh, Pennsylvania 15261 Phone:
412-624-9696 FAX: 412-624-7701 Email: [EMAIL PROTECTED] http://www.sigda.org/Eric/ ***********************************************************************
*********************************************************************** Eric
N. Reiss MEMS Manager Swanson Center for Product
Innovation Department of Mechanical Engineering School of
Engineering - University of Pittsburgh
3700 O'Hara Street 647
Benedum Hall Pittsburgh, Pennsylvania 15261 Phone: 412-624-9696 FAX:
412-624-7701 Email: [EMAIL PROTECTED] http://www.sigda.org/Eric/ ***********************************************************************
|