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