interactors.constraints
Class OrientationInteractor

java.lang.Object
  extended by interactors.Interactor
      extended by interactors.constraints.OrientationInteractor

public class OrientationInteractor
extends Interactor

Class for displaying orientation constraints.


Field Summary
(package private)  java.util.ArrayList<Constraint> constraints
          the orientation constraints
 
Fields inherited from class interactors.Interactor
handler
 
Constructor Summary
OrientationInteractor(InteractionHandler handler)
          Constructs the orientation interactor.
 
Method Summary
 void draw(GL gl, GLU glu, GLUT glut)
          Draws the orientation constraints.
 java.awt.Cursor getCursor()
          Gets the crosshair cursor.
 void keyPressed(java.awt.event.KeyEvent arg0)
          Not implemented.
 void keyReleased(java.awt.event.KeyEvent arg0)
          Not implemented.
 void mouseDragged(java.awt.event.MouseEvent arg0)
          Not implemented.
 void mouseMoved(java.awt.event.MouseEvent arg0)
          Not implemented.
 void mousePressed(java.awt.event.MouseEvent arg0)
          Double right-click ends the interaction.
 void mouseReleased(java.awt.event.MouseEvent arg0)
          Not implemented.
 void startInteraction()
          Verifies that the orientation constraints are satisfied.
 
Methods inherited from class interactors.Interactor
endInteraction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constraints

java.util.ArrayList<Constraint> constraints
the orientation constraints

Constructor Detail

OrientationInteractor

public OrientationInteractor(InteractionHandler handler)
Constructs the orientation interactor.

Parameters:
handler - - the interaction handler
Method Detail

getCursor

public java.awt.Cursor getCursor()
Gets the crosshair cursor.

Overrides:
getCursor in class Interactor

startInteraction

public void startInteraction()
Verifies that the orientation constraints are satisfied.

Overrides:
startInteraction in class Interactor

draw

public void draw(GL gl,
                 GLU glu,
                 GLUT glut)
Draws the orientation constraints.

Overrides:
draw in class Interactor

mousePressed

public void mousePressed(java.awt.event.MouseEvent arg0)
Double right-click ends the interaction.

Overrides:
mousePressed in class Interactor

keyPressed

public void keyPressed(java.awt.event.KeyEvent arg0)
Not implemented.

Overrides:
keyPressed in class Interactor

keyReleased

public void keyReleased(java.awt.event.KeyEvent arg0)
Not implemented.

Overrides:
keyReleased in class Interactor

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent arg0)
Not implemented.

Overrides:
mouseReleased in class Interactor

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent arg0)
Not implemented.

Overrides:
mouseDragged in class Interactor

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent arg0)
Not implemented.

Overrides:
mouseMoved in class Interactor