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. -mike -- Mike Pilone <[EMAIL PROTECTED]> http://www.slac.com/mpilone/personal/ GPG Fingerprint = 856C 8B36 ECF7 9156 4611 7C6B C265 05C4 162F C3B5 See http://www.slac.com/mpilone/personal/mpilone_pub_key.gpg for full key. See http://www.gnupg.org for GPG information. =========================================================================== 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".
