org.vigia.test
Class MovementPrinter

java.lang.Object
  extended by org.vigia.test.MovementPrinter
All Implemented Interfaces:
IRListener

public class MovementPrinter
extends java.lang.Object
implements IRListener

Printer of the remote camera's calculated movement.

Author:
Ada

Field Summary
protected  MovementProcessor mp
          The movement processor.
 
Constructor Summary
MovementPrinter()
          The constructor.
 
Method Summary
 void onIREvent(Coordinates c, int xVRes, int yVRes)
          Actions to do when the Wiimote detects a change in the position of the infrared leds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mp

protected MovementProcessor mp
The movement processor.

Constructor Detail

MovementPrinter

public MovementPrinter()
The constructor.

Method Detail

onIREvent

public void onIREvent(Coordinates c,
                      int xVRes,
                      int yVRes)
               throws VigiaClientException,
                      java.io.IOException
Description copied from interface: IRListener
Actions to do when the Wiimote detects a change in the position of the infrared leds.

Specified by:
onIREvent in interface IRListener
Parameters:
c - the new coordinates of the Wiimote.
xVRes - IR virtual screen x resolution.
yVRes - IR virtual screen y resolution.
Throws:
VigiaClientException - error from the listener.
java.io.IOException - error with the communications.
See Also:
IRListener.onIREvent(org.vigia.client.driver.Coordinates, int, int)