public class TuioCursorHandler extends MapEventBroadcaster implements TUIO.TuioListener
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log |
protected TUIO.TuioClient |
tuioClient |
eventDispatcher, maps| Constructor and Description |
|---|
TuioCursorHandler(processing.core.PApplet p,
boolean listenToTuio,
java.util.List<UnfoldingMap> maps) |
TuioCursorHandler(processing.core.PApplet p,
boolean listenToTuio,
UnfoldingMap... maps) |
TuioCursorHandler(processing.core.PApplet p,
java.util.List<UnfoldingMap> maps) |
TuioCursorHandler(processing.core.PApplet p,
UnfoldingMap... maps) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTuioCursor(TUIO.TuioCursor tuioCursor) |
void |
addTuioObject(TUIO.TuioObject arg0) |
void |
dispose() |
void |
drawCursor(TUIO.TuioCursor tc)
Draws a TuioCursor as small circle with ID as label.
|
void |
drawCursors()
Draws all TuioCursors.
|
protected float |
getAngleBetween(float x1,
float y1,
float x2,
float y2) |
protected float |
getAngleBetween(TUIO.TuioCursor tuioCursor1,
TUIO.TuioCursor tuioCursor2) |
protected float |
getDistance(TUIO.TuioCursor tuioCursor1,
TUIO.TuioCursor tuioCursor2) |
TUIO.TuioClient |
getTuioClient() |
void |
refresh(TUIO.TuioTime arg0) |
void |
removeTuioCursor(TUIO.TuioCursor tuioCursor) |
void |
removeTuioObject(TUIO.TuioObject arg0) |
void |
updateTuioCursor(TUIO.TuioCursor tcur) |
void |
updateTuioObject(TUIO.TuioObject arg0) |
setEventDispatcherpublic static org.apache.log4j.Logger log
protected TUIO.TuioClient tuioClient
public TuioCursorHandler(processing.core.PApplet p,
UnfoldingMap... maps)
public TuioCursorHandler(processing.core.PApplet p,
boolean listenToTuio,
UnfoldingMap... maps)
public TuioCursorHandler(processing.core.PApplet p,
boolean listenToTuio,
java.util.List<UnfoldingMap> maps)
public TuioCursorHandler(processing.core.PApplet p,
java.util.List<UnfoldingMap> maps)
public void dispose()
public TUIO.TuioClient getTuioClient()
public void updateTuioCursor(TUIO.TuioCursor tcur)
updateTuioCursor in interface TUIO.TuioListenerpublic void addTuioCursor(TUIO.TuioCursor tuioCursor)
addTuioCursor in interface TUIO.TuioListenerpublic void removeTuioCursor(TUIO.TuioCursor tuioCursor)
removeTuioCursor in interface TUIO.TuioListenerprotected float getDistance(TUIO.TuioCursor tuioCursor1,
TUIO.TuioCursor tuioCursor2)
protected float getAngleBetween(TUIO.TuioCursor tuioCursor1,
TUIO.TuioCursor tuioCursor2)
protected float getAngleBetween(float x1,
float y1,
float x2,
float y2)
public void addTuioObject(TUIO.TuioObject arg0)
addTuioObject in interface TUIO.TuioListenerpublic void removeTuioObject(TUIO.TuioObject arg0)
removeTuioObject in interface TUIO.TuioListenerpublic void updateTuioObject(TUIO.TuioObject arg0)
updateTuioObject in interface TUIO.TuioListenerpublic void refresh(TUIO.TuioTime arg0)
refresh in interface TUIO.TuioListenerpublic void drawCursors()
public void drawCursor(TUIO.TuioCursor tc)
tc - The cursor to draw.