Skip to content
Snippets Groups Projects
Commit 2e0d6767 authored by Martin Kaltenbrunner's avatar Martin Kaltenbrunner
Browse files

add object count to dispatcher api

parent 7620104b
No related branches found
No related tags found
No related merge requests found
......@@ -174,6 +174,18 @@ std::list<TuioBlob*> TuioDispatcher::getTuioBlobs() {
return listBuffer;
}
int TuioDispatcher::getTuioObjectCount() {
return objectList.size();
}
int TuioDispatcher::getTuioCursorCount() {
return cursorList.size();
}
int TuioDispatcher::getTuioBlobCount() {
return blobList.size();
}
std::list<TuioObject> TuioDispatcher::copyTuioObjects() {
lockObjectList();
std::list<TuioObject> listBuffer;
......
......@@ -76,6 +76,8 @@ namespace TUIO {
*/
std::list<TuioObject*> getTuioObjects();
int getTuioObjectCount();
/**
* Returns a List with a copy of currently active TuioObjects
*
......@@ -97,6 +99,8 @@ namespace TUIO {
*/
std::list<TuioCursor> copyTuioCursors();
int getTuioCursorCount();
/**
* Returns a List of all currently active TuioBlobs
*
......@@ -111,6 +115,8 @@ namespace TUIO {
*/
std::list<TuioBlob> copyTuioBlobs();
int getTuioBlobCount();
/**
* Returns the TuioObject corresponding to the provided Session ID
* or NULL if the Session ID does not refer to an active TuioObject
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment