I just want to thank you for your answer, I guess the get-technik is a try
to reduce the garbage collector work. Once again - thanx.

Chris



On Friday 08 November 2002 11:17 am, Hristo Matev wrote:
> Hello,
>
> 2.) I found this in the manual:
> class TransformGroup
> void getTransform(Transform3D t1);
> How is this possible? To have a get-method, which is not returning a
> value?

The method requires you to pass a transform in and the values will be set
into that transform. This is an optimization that allows you to create a
single transform and use it to fetch values from all over the place without
each method having to create a new object and return it.

> 3.) Is there a possibility to set a capability to the ViewingPlatform
> using SimpleUniverse? Say, this is throwing an exception:
> vpTrans = su.getViewingPlatform().getViewPlatformTransform();
> vpTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);

You will want to work with the transform group above the view platform. You
can get access to this in ViewingPlatform.getMultiTransformGroup() if you
are using simple universe, but you can also construct your own universe and
just keep a reference to the transform that you use on the view side of the
scene graph.

To find the position of the view platform, you should be able to get the
transform and apply it to a point that started at 0,0,0.


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail

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