|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkaterlib.Kater
public class Kater
Constructor Summary | |
---|---|
Kater(processing.core.PApplet p,
TuioProcessing tuio,
int theID)
The single Kater object has to be created with a reference to the PApplet, the Tuio and the referencing tuioID |
Method Summary | |
---|---|
void |
addActionListener(IKaterEventListener listener)
add an event Listener |
void |
dispatchFinish()
dispatch the finish event |
float |
getAngle()
|
float |
getCenterX()
|
float |
getCenterY()
|
java.lang.Boolean |
getDebug()
|
int |
getID()
|
float |
getX()
|
float |
getY()
|
void |
lightsOff()
turn the lights on the Kater off |
void |
lightsOn()
turn the lights on the Kater on |
void |
removeActionListener(IKaterEventListener listener)
remove an event Listener |
void |
setDebug(java.lang.Boolean debug)
sets the debug State |
void |
startrun()
set the running state to true |
void |
toggleDebug()
Toggles the Debug State |
void |
update(float theX,
float theY,
float theAngle)
Update the Kater each frame with his Coordiantes and Angle from TUIO |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Kater(processing.core.PApplet p, TuioProcessing tuio, int theID)
p
- The processing PApplettuio
- The TUIO Processing ClienttheID
- The TUIO ID of the KaterMethod Detail |
---|
public void update(float theX, float theY, float theAngle)
theX
- theY
- theAngle
- public float getX()
public float getY()
public float getCenterX()
public float getCenterY()
public int getID()
public void startrun()
public float getAngle()
public void dispatchFinish()
dispatchFinish
in interface IKaterEventDispatcher
public void lightsOn()
public void lightsOff()
public void addActionListener(IKaterEventListener listener)
addActionListener
in interface IKaterEventDispatcher
listener
- a Listener for Kater Eventdispatchpublic void removeActionListener(IKaterEventListener listener)
listener
- a Listener for Kater Eventdispatchpublic java.lang.Boolean getDebug()
public void setDebug(java.lang.Boolean debug)
debug
- Boolean if debug should be drawn or notpublic void toggleDebug()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |