TUIO C++ Developer API
TUIO::TuioDispatcher Class Reference

#include <TuioDispatcher.h>

Inheritance diagram for TUIO::TuioDispatcher:
TUIO::TuioClient TUIO::TuioManager TUIO::TuioServer

Public Member Functions

 TuioDispatcher ()
 
 ~TuioDispatcher ()
 
void addTuioListener (TuioListener *listener)
 
void removeTuioListener (TuioListener *listener)
 
void removeAllTuioListeners ()
 
std::list< TuioObject * > getTuioObjects ()
 
std::list< TuioObjectcopyTuioObjects ()
 
std::list< TuioCursor * > getTuioCursors ()
 
std::list< TuioCursorcopyTuioCursors ()
 
std::list< TuioBlob * > getTuioBlobs ()
 
std::list< TuioBlobcopyTuioBlobs ()
 
TuioObjectgetTuioObject (long s_id)
 
TuioCursorgetTuioCursor (long s_id)
 
TuioBlobgetTuioBlob (long s_id)
 
void lockObjectList ()
 
void unlockObjectList ()
 
void lockCursorList ()
 
void unlockCursorList ()
 
void lockBlobList ()
 
void unlockBlobList ()
 

Protected Attributes

std::list< TuioListener * > listenerList
 
std::list< TuioObject * > objectList
 
std::list< TuioCursor * > cursorList
 
std::list< TuioBlob * > blobList
 
pthread_mutex_t objectMutex
 
pthread_mutex_t cursorMutex
 
pthread_mutex_t blobMutex
 

Detailed Description

The TuioDispatcher generates TUIO events which are broadcasted to all registered classes that implement the TuioListener interface.

Author
Martin Kaltenbrunner
Version
1.1.6

Constructor & Destructor Documentation

◆ TuioDispatcher()

TuioDispatcher::TuioDispatcher ( )

This constructor creates a TuioDispatcher

◆ ~TuioDispatcher()

TuioDispatcher::~TuioDispatcher ( )

The destructor is doing nothing in particular.

Member Function Documentation

◆ addTuioListener()

void TuioDispatcher::addTuioListener ( TuioListener listener)

Adds the provided TuioListener to the list of registered TUIO event listeners

Parameters
listenerthe TuioListener to add

◆ copyTuioBlobs()

std::list< TuioBlob > TuioDispatcher::copyTuioBlobs ( )

Returns a List with a copy of currently active TuioBlobs

Returns
a List with a copy of all currently active TuioBlobs

◆ copyTuioCursors()

std::list< TuioCursor > TuioDispatcher::copyTuioCursors ( )

Returns a List with a copy of currently active TuioCursors

Returns
a List with a copy of all currently active TuioCursors

◆ copyTuioObjects()

std::list< TuioObject > TuioDispatcher::copyTuioObjects ( )

Returns a List with a copy of currently active TuioObjects

Returns
a List with a copy of all currently active TuioObjects

◆ getTuioBlob()

TuioBlob * TuioDispatcher::getTuioBlob ( long  s_id)

Returns the TuioBlob corresponding to the provided Session ID or NULL if the Session ID does not refer to an active TuioBlob

Returns
an active TuioBlob corresponding to the provided Session ID or NULL

◆ getTuioBlobs()

std::list< TuioBlob * > TuioDispatcher::getTuioBlobs ( )

Returns a List of all currently active TuioBlobs

Returns
a List of all currently active TuioBlobs

◆ getTuioCursor()

TuioCursor * TuioDispatcher::getTuioCursor ( long  s_id)

Returns the TuioCursor corresponding to the provided Session ID or NULL if the Session ID does not refer to an active TuioCursor

Returns
an active TuioCursor corresponding to the provided Session ID or NULL

◆ getTuioCursors()

std::list< TuioCursor * > TuioDispatcher::getTuioCursors ( )

Returns a List of all currently active TuioCursors

Returns
a List of all currently active TuioCursors

◆ getTuioObject()

TuioObject * TuioDispatcher::getTuioObject ( long  s_id)

Returns the TuioObject corresponding to the provided Session ID or NULL if the Session ID does not refer to an active TuioObject

Returns
an active TuioObject corresponding to the provided Session ID or NULL

◆ getTuioObjects()

std::list< TuioObject * > TuioDispatcher::getTuioObjects ( )

Returns a List of all currently active TuioObjects

Returns
a List of all currently active TuioObjects

◆ lockBlobList()

void TuioDispatcher::lockBlobList ( )

Locks the TuioBlob list in order to avoid updates during access

◆ lockCursorList()

void TuioDispatcher::lockCursorList ( )

Locks the TuioCursor list in order to avoid updates during access

◆ lockObjectList()

void TuioDispatcher::lockObjectList ( )

Locks the TuioObject list in order to avoid updates during access

◆ removeAllTuioListeners()

void TuioDispatcher::removeAllTuioListeners ( )

Removes all TuioListener from the list of registered TUIO event listeners

◆ removeTuioListener()

void TuioDispatcher::removeTuioListener ( TuioListener listener)

Removes the provided TuioListener from the list of registered TUIO event listeners

Parameters
listenerthe TuioListener to remove

◆ unlockBlobList()

void TuioDispatcher::unlockBlobList ( )

Releases the lock of the TuioBlob list

◆ unlockCursorList()

void TuioDispatcher::unlockCursorList ( )

Releases the lock of the TuioCursor list

◆ unlockObjectList()

void TuioDispatcher::unlockObjectList ( )

Releases the lock of the TuioObject list


The documentation for this class was generated from the following files: