19 #ifndef INCLUDED_TUIOMANAGER_H 20 #define INCLUDED_TUIOMANAGER_H 22 #include "TuioDispatcher.h" 28 #define OBJ_MESSAGE_SIZE 108 // setMessage + fseqMessage size 29 #define CUR_MESSAGE_SIZE 88 30 #define BLB_MESSAGE_SIZE 116 87 TuioObject* addTuioObject(
int sym,
float xp,
float yp,
float a);
97 void updateTuioObject(
TuioObject *tobj,
float xp,
float yp,
float a);
119 void updateExternalTuioObject(
TuioObject *tobj);
127 void removeExternalTuioObject(
TuioObject *tobj);
138 TuioCursor* addTuioCursor(
float xp,
float yp);
147 void updateTuioCursor(
TuioCursor *tcur,
float xp,
float yp);
169 void updateExternalTuioCursor(
TuioCursor *tcur);
177 void removeExternalTuioCursor(
TuioCursor *tcur);
192 TuioBlob* addTuioBlob(
float xp,
float yp,
float angle,
float width,
float height,
float area);
205 void updateTuioBlob(
TuioBlob *tblb,
float xp,
float yp,
float angle,
float width,
float height,
float area);
213 void removeTuioBlob(
TuioBlob *tblb);
220 void addExternalTuioBlob(
TuioBlob *tblb);
227 void updateExternalTuioBlob(
TuioBlob *tblb);
235 void removeExternalTuioBlob(
TuioBlob *tblb);
273 std::list<TuioObject*> getUntouchedObjects();
280 std::list<TuioCursor*> getUntouchedCursors();
287 std::list<TuioBlob*> getUntouchedBlobs();
292 void stopUntouchedMovingObjects();
297 void stopUntouchedMovingCursors();
302 void stopUntouchedMovingBlobs();
307 void removeUntouchedStoppedObjects();
312 void removeUntouchedStoppedCursors();
317 void removeUntouchedStoppedBlobs();
325 TuioObject* getClosestTuioObject(
float xp,
float yp);
333 TuioCursor* getClosestTuioCursor(
float xp,
float yp);
341 TuioBlob* getClosestTuioBlob(
float xp,
float yp);
348 bool isVerbose() {
return verbose; }
350 void setInversion(
bool ix,
bool iy,
bool ia) {
356 void setInvertXpos(
bool ix) { invert_x = ix; };
357 void setInvertYpos(
bool iy) { invert_y = iy; };
358 void setInvertAngle(
bool ia) { invert_a = ia; };
359 bool getInvertXpos() {
return invert_x; };
360 bool getInvertYpos() {
return invert_y; };
361 bool getInvertAngle() {
return invert_a; };
362 void resetTuioObjects();
363 void resetTuioCursors();
364 void resetTuioBlobs();
367 std::list<TuioCursor*> freeCursorList;
368 std::list<TuioCursor*> freeCursorBuffer;
370 std::list<TuioBlob*> freeBlobList;
371 std::list<TuioBlob*> freeBlobBuffer;
Definition: TuioTime.h:48
Definition: FlashSender.h:166
Definition: TuioManager.h:62
Definition: TuioObject.h:32
void setVerbose(bool verbose)
Definition: TuioManager.h:347
Definition: TuioDispatcher.h:39
Definition: TuioBlob.h:32
Definition: TuioCursor.h:32