|
| TuioServer () |
|
| TuioServer (const char *host, int port) |
|
| TuioServer (OscSender *sender) |
|
| ~TuioServer () |
|
void | sendFullMessages () |
|
void | enableFullUpdate () |
|
void | disableFullUpdate () |
|
bool | fullUpdateEnabled () |
|
void | enablePeriodicMessages (int interval=1) |
|
void | disablePeriodicMessages () |
|
bool | periodicMessagesEnabled () |
|
int | getUpdateInterval () |
|
void | commitFrame () |
|
void | setSourceName (const char *name) |
|
void | setSourceName (const char *name, const char *ip) |
|
void | addOscSender (OscSender *sender) |
|
void | enableObjectProfile (bool flag) |
|
void | enableCursorProfile (bool flag) |
|
void | enableBlobProfile (bool flag) |
|
| TuioManager () |
|
| ~TuioManager () |
|
TuioObject * | addTuioObject (int sym, float xp, float yp, float a) |
|
void | updateTuioObject (TuioObject *tobj, float xp, float yp, float a) |
|
void | removeTuioObject (TuioObject *tobj) |
|
void | addExternalTuioObject (TuioObject *tobj) |
|
void | updateExternalTuioObject (TuioObject *tobj) |
|
void | removeExternalTuioObject (TuioObject *tobj) |
|
TuioCursor * | addTuioCursor (float xp, float yp) |
|
void | updateTuioCursor (TuioCursor *tcur, float xp, float yp) |
|
void | removeTuioCursor (TuioCursor *tcur) |
|
void | addExternalTuioCursor (TuioCursor *tcur) |
|
void | updateExternalTuioCursor (TuioCursor *tcur) |
|
void | removeExternalTuioCursor (TuioCursor *tcur) |
|
TuioBlob * | addTuioBlob (float xp, float yp, float angle, float width, float height, float area) |
|
void | updateTuioBlob (TuioBlob *tblb, float xp, float yp, float angle, float width, float height, float area) |
|
void | removeTuioBlob (TuioBlob *tblb) |
|
void | addExternalTuioBlob (TuioBlob *tblb) |
|
void | updateExternalTuioBlob (TuioBlob *tblb) |
|
void | removeExternalTuioBlob (TuioBlob *tblb) |
|
void | initFrame (TuioTime ttime) |
|
void | commitFrame () |
|
long | getSessionID () |
|
long | getFrameID () |
|
TuioTime | getFrameTime () |
|
std::list< TuioObject * > | getUntouchedObjects () |
|
std::list< TuioCursor * > | getUntouchedCursors () |
|
std::list< TuioBlob * > | getUntouchedBlobs () |
|
void | stopUntouchedMovingObjects () |
|
void | stopUntouchedMovingCursors () |
|
void | stopUntouchedMovingBlobs () |
|
void | removeUntouchedStoppedObjects () |
|
void | removeUntouchedStoppedCursors () |
|
void | removeUntouchedStoppedBlobs () |
|
TuioObject * | getClosestTuioObject (float xp, float yp) |
|
TuioCursor * | getClosestTuioCursor (float xp, float yp) |
|
TuioBlob * | getClosestTuioBlob (float xp, float yp) |
|
void | setVerbose (bool verbose) |
|
bool | isVerbose () |
|
void | setInversion (bool ix, bool iy, bool ia) |
|
void | setInvertXpos (bool ix) |
|
void | setInvertYpos (bool iy) |
|
void | setInvertAngle (bool ia) |
|
bool | getInvertXpos () |
|
bool | getInvertYpos () |
|
bool | getInvertAngle () |
|
void | resetTuioObjects () |
|
void | resetTuioCursors () |
|
void | resetTuioBlobs () |
|
| TuioDispatcher () |
|
| ~TuioDispatcher () |
|
void | addTuioListener (TuioListener *listener) |
|
void | removeTuioListener (TuioListener *listener) |
|
void | removeAllTuioListeners () |
|
std::list< TuioObject * > | getTuioObjects () |
|
std::list< TuioObject > | copyTuioObjects () |
|
std::list< TuioCursor * > | getTuioCursors () |
|
std::list< TuioCursor > | copyTuioCursors () |
|
std::list< TuioBlob * > | getTuioBlobs () |
|
std::list< TuioBlob > | copyTuioBlobs () |
|
TuioObject * | getTuioObject (long s_id) |
|
TuioCursor * | getTuioCursor (long s_id) |
|
TuioBlob * | getTuioBlob (long s_id) |
|
void | lockObjectList () |
|
void | unlockObjectList () |
|
void | lockCursorList () |
|
void | unlockCursorList () |
|
void | lockBlobList () |
|
void | unlockBlobList () |
|
The TuioServer class is the central TUIO protocol encoder component. In order to encode and send TUIO messages an instance of TuioServer needs to be created. The TuioServer instance then generates TUIO messages which are deliverered by the provided OSCSender. The shown UDPSender send OSC to UDP port 3333 on localhost or to the configured host and port.
During runtime the each frame is marked with the initFrame and commitFrame methods, while the currently present TuioObjects are managed by the server with ADD, UPDATE and REMOVE methods in analogy to the TuioClient's TuioListener interface.
See the SimpleSimulator example project for further hints on how to use the TuioServer class and its various methods.
OscSender *sender = new UDPSender(); TuioServer *server = new TuioServer(sender);
server->setSourceName("MyTuioSource"); // optional for TUIO 1.1
...
server->initFrame(TuioTime::getSessionTime());
TuioObject *tobj = server->addTuioObject(xpos,ypos,angle);
TuioCursor *tcur = server->addTuiCursor(xpos,ypos);
TuioBlob *tblb = server->addTuioBlob(xpos,ypos,angle,width,height, area);
server->commitFrame();
...
server->initFrame(TuioTime::getSessionTime());
server->updateTuioObject(tobj,xpos,ypos,angle);
server->updateTuioCursor(tcur,xpos,ypos);
server->updateTuioBlob(tblb,xpos,ypos,angle,width,height,area);
server->commitFrame();
...
server->initFrame(TuioTime::getSessionTime());
server->removeTuioObject(tobj);
server->removeTuioCursor(tcur);
server->removeTuioBlob(tblb);
server->commitFrame();
- Author
- Martin Kaltenbrunner
- Version
- 1.1.6