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

add object count methods

parent 910aa3da
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
#ifndef ONEEUROFILTER
#define ONEEUROFILTER
#define _USE_MATH_DEFINES
#include <stdexcept>
#include <cmath>
......
......@@ -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,13 @@ namespace TUIO {
*/
std::list<TuioObject*> getTuioObjects();
/**
* Returns the number of all currently active TuioObjects
*
* @return the of all currently active TuioObjects
*/
int getTuioObjectCount();
/**
* Returns a List with a copy of currently active TuioObjects
*
......@@ -90,6 +97,13 @@ namespace TUIO {
*/
std::list<TuioCursor*> getTuioCursors();
/**
* Returns the number of all currently active TuioCursors
*
* @return the of all currently active TuioCursors
*/
int getTuioCursorCount();
/**
* Returns a List with a copy of currently active TuioCursors
*
......@@ -104,6 +118,13 @@ namespace TUIO {
*/
std::list<TuioBlob*> getTuioBlobs();
/**
* Returns the number of all currently active TuioBlobs
*
* @return the of all currently active TuioBlobs
*/
int getTuioBlobCount();
/**
* Returns a List with a copy of currently active TuioBlobs
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment