|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uka.algo.algovis3d.Controller
public class Controller
This class provides a controller for camera steering in a Java3D universe. To use it, simply create an Controller instance and add it to the corresponding Canvas3D as a key listener. Ideas/Todos: - new public method (i.e. getControlDescription) to show a description of the key configuration (auto-generated from the constants for the key controlled events below at best)
Constructor Summary | |
---|---|
Controller(com.sun.j3d.utils.universe.SimpleUniverse universe)
Constructor |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Event handler for ActionEvent events. |
void |
keyPressed(java.awt.event.KeyEvent e)
Event handler for KeyPressed events. |
void |
keyReleased(java.awt.event.KeyEvent e)
Event handler for KeyReleased events. |
void |
keyTyped(java.awt.event.KeyEvent e)
Event handler for KeyTyped events. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Event handler for MouseClicked events. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Event handler for MouseDragged events. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Event handler for MouseEntered events. |
void |
mouseExited(java.awt.event.MouseEvent e)
Event handler for MouseExited events. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Event handler for MouseMoved events. |
void |
mousePressed(java.awt.event.MouseEvent e)
Event handler for MousePressed events. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Event handler for MouseReleased events. |
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Event handler for MouseWheelMoved events. |
void |
resetCameraHeading()
Resets the cameras heading and updates the camera transform group. |
void |
resetCameraPosition()
Resets the cameras position and updates the camera transform group. |
void |
resetCameraRotation()
Resets the camera rotation. |
void |
setInitialHeadingRotationX(double angle)
Sets the initial heading x-rotation |
void |
setInitialHeadingRotationY(double angle)
Sets the initial heading y-rotation |
void |
setInitialPosition(javax.vecmath.Vector3d position)
Sets the initial position. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Controller(com.sun.j3d.utils.universe.SimpleUniverse universe)
universe
- The target of this controller - a Java3D universe.Method Detail |
---|
public void resetCameraRotation()
public void resetCameraHeading()
public void resetCameraPosition()
public void setInitialPosition(javax.vecmath.Vector3d position)
position
- The new initial position.public void setInitialHeadingRotationX(double angle)
angle
- The angle for the new initial x-rotation.public void setInitialHeadingRotationY(double angle)
angle
- The angle for the new initial y-rotation.public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |