The OrbitBehavior does take into account any translation changes to the
view Transform, the view will be positioned at the translated point
but will always point to the rotation center.
Java 3D Fly Through uses this functionality for the 'Show All' command.
How does this differ from your requirements ?
As a side note, the resetViewPosition method should not be made public as that
would require user code to have knowledge about which ViewPlatformBehavior
is currently driving the view.
Rgds
Paul
----------------------------------------------------------
Paul Byrne Email : [EMAIL PROTECTED]
Sun Microsystems Phone : (650) 786 9926
Visualization Software Group Fax : (650) 786 5852
----------------------------------------------------------
>I had a look at the source of the OrbitBehavior class that is coming
>with Java 3D 1.2.1_01. It has a private method called
>resetViewPosition(), which is called when the behavior is attached to
>the Viewplatform or when the target transform is changed. It changes
>the internal state of the OrbitBehavior, so that it works perfectly
>when you change the rotation and zoom of the target transfrom, but it
>does not take translations into account!!!
>I know it's no simple mathematics, but is it not possible to reset the
>translation as well?
>I wished the guy at SUN, who is responsible for this class, could
>implement this.
>
>Regards,
>
>Ingo
>
>===========================================================================
>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".
===========================================================================
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".