Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: Newbie questions: selecting objects, changing viewpoints, and

On Thu, 5 Feb 2004, Harry Hochheiser wrote:

> One more quick question - what do I do with the MouseHelper and/or
> MouseBehavior? where do they get plugged in?

To constrain rotation around one axis will require that you
write an extension class of MouseBehaviorJ3D. You then pass
the class of your extension to the DisplayRendererJ3D
constructor that takes the 'Class mbj3dClass' argument,
and pass the constructed DisplayRendererJ3D to your
DisplayImplJ3D constructor. If you extend the MouseHelper
class, the constructor of your DisplayRendererJ3D
extension passes the class of your MouseHelper extension
to the super(DisplayRendererJ3D r, Class mhClass)
constructor for DisplayRendererJ3D. Admittedly a round-
about way to allow applications to extend the MouseHelper
and MouseBehaviorJ3D classes.

Good luck,
Bill


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690