|
Thanks a lot for all ur help.. I will try that and
let u know..
Thanks again
ishwari
----- Original Message -----
Sent: Wednesday, June 20, 2001 2:01
PM
Subject: Re: [JAVA3D] Zooming
Hi ishwari,
I think you can do this in two
ways.
1. You can use PickZoom behavior
and attach it to your SceneGraph. 2. You could use
PickObject class to pick your object and create
a PickingCallback
method which can zoom your transformgroup. Add the
PickingCallback method
as the callback to your PickObject
behavior.
Anand
ishwari
<[EMAIL PROTECTED]> on 06/20/2001 08:15:02 AM
Please respond
to Discussion list for Java 3D API
<[EMAIL PROTECTED]>
To:
[EMAIL PROTECTED] cc: (bcc: Anand
PILLAI/dassault-systemes) Subject: Re: [JAVA3D]
Zooming
Hi,
Thanks for ur reply. But I don't want the
mouse zoom feature. I wish to do zoom window by selecting a portion of the
scene graph and scaling them. Got any idea on
this?
Regards, ishwari ----- Original Message
----- From: Anand Pillai To:
[EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 9:23
PM Subject: Re: [JAVA3D] Zooming
Hi,
I think what you need is a MouseZoom object. Set
the TransformGroup object as the argument to the MouseZoom
object.
MouseZoom zoomObj = new MouseZoom();
zoomObj.setTransformGroup(t3d);
zoomObj.setSchedulingBounds( new
BoundingSphere());
After this, adding your Shape3D objects
to t3d should do the work.
Regards,
Anand
ishwari <[EMAIL PROTECTED]> on
06/19/2001 04:43:42 PM
Please respond to Discussion list for
Java 3D API <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] cc:
(bcc: Anand PILLAI/dassault-systemes) Subject: [JAVA3D]
Zooming
Hi,
I have a scenegraph object
containing some lines, circles, arcs, texts etc. I wish to do some
zooming and hence I did the follg to the scenegraph's
transformgroup
Transformgroup
t3d; t3d.setTranslation(new
Vector3d(0,0,0));
t3d.setScale(scale); t3d.setTranslation(new
Vector3d(test.x,test.y,test.z));//screen origin
scenegraph.transformgroup.setTransform(t3d);
With this I am
able to zoom line and circle. But the arc, text etc are not zoomed
but only translated.. Can anyone tell me whether what I did is
correct or not? If yes, why it is not zooming all the objects? Is
my approach correct?
Regards,
ishwari
|