|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsimbad.sim.MouseOrbiter
Manages changes of the view point view under the control of mouse movement. The mouse enables to modify lattitude and longitude of the viewpoint. This class is largely inspired from Sun's OrbitBehavior. It is intented to be used only with the main Canvas3d object (see World class).
| Constructor Summary | |
MouseOrbiter(javax.media.j3d.Canvas3D c,
javax.media.j3d.TransformGroup targetTransformGroup)
Creates a new OrbitBehavior |
|
| Method Summary | |
void |
mouseClicked(java.awt.event.MouseEvent arg0)
|
void |
mouseDragged(java.awt.event.MouseEvent event)
|
void |
mouseEntered(java.awt.event.MouseEvent arg0)
|
void |
mouseExited(java.awt.event.MouseEvent arg0)
|
void |
mouseMoved(java.awt.event.MouseEvent event)
|
void |
mousePressed(java.awt.event.MouseEvent event)
|
void |
mouseReleased(java.awt.event.MouseEvent event)
|
void |
resetView()
Reset the orientation and distance of this behavior to the current values in target Transform Group |
void |
setRotationCenter(javax.vecmath.Point3d center)
Sets the center around which the View rotates. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MouseOrbiter(javax.media.j3d.Canvas3D c,
javax.media.j3d.TransformGroup targetTransformGroup)
c - The Canvas3D to add the behavior totargetTransformGroup - The transformgroup affected by mouse movement| Method Detail |
public void resetView()
public void setRotationCenter(javax.vecmath.Point3d center)
center - The Point3d to set the center of rotation topublic void mouseClicked(java.awt.event.MouseEvent arg0)
mouseClicked in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent event)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent arg0)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent arg0)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved in interface java.awt.event.MouseMotionListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||