>On Fri, 21 Jun 2002 11:11:10 +0200, =?iso-8859-1?q?R=20CM?= <[EMAIL PROTECTED]> >wrote:
>Hi all, >I have just a simple question, >why the method "transformChanged" or the >MouseBehaviorCallback system doesn't exist in this >class (orbitBehavior)??? >how can i get the transform3D apply >to the Viewing plateformTG?? >(without modifying the source code and add my own >method TransformChanged!) > >it's very usefull for synchronize two TG or for the >Observer pattern for exemple... > >I'm sure there are some reasons but i don't find it. > >thanks for your advices > >Kindest regards > >Renaud Yes, it would be convenient to have this feature since there would be uniformity in the various manipulation API and, of course, there is one less of your own class to document :). See if the following helps (IIRC, Artur had a similar idea): 1. subclass OrbitBehavior 2. store a reference to your "OrbitBehaviorCallback" 3. override integrateTransforms() method, and within that invoke your callback.transformChanged(..) method after calling super.integrateTransforms(). targetTransform (protected field) would have been updated when super.integrateTransforms() returns. Regards Raj Vaidya =========================================================================== 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".