RE: center of rotation for three-d views?

  • To: "McCann, Mike" <mccann@xxxxxxxxx>
  • Subject: RE: center of rotation for three-d views?
  • From: Bill Hibbard <billh@xxxxxxxxxxxxx>
  • Date: Tue, 16 Dec 2003 16:37:03 -0600 (CST)
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