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

RE: center of rotation for three-d views?

Hi Mike,

> This center of rotation issue is one of interest to me.  I think
> navigation within 3D space using standard computer interfaces is a
> problem that may be helped by the ability to dynamically change
> the center of rotation.  Is this possible in VisAD?

Yes, you can do anything you want with the getMatrix()
and setMatrix) methods of ProjectionControl. For a
DisplayImplJ3D, this is just the standard Java3D 4x4
matrix. You can create an extension of the MouseBehaviorJ3D
class to interpret mouse events in new ways. Your extension
must have the constructor signatures that takes a
DisplayRendererJ3D argument, then you pass the class of
your extension to DisplayRendererJ3D constructor that
takes the 'Class mbj3dClass' argument.

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