Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tuio_cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pirvi-public
tuio_cpp
Commits
439535d4
Commit
439535d4
authored
8 years ago
by
Martin Kaltenbrunner
Browse files
Options
Downloads
Patches
Plain Diff
add object count methods
parent
910aa3da
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
TUIO/OneEuroFilter.h
+1
-0
1 addition, 0 deletions
TUIO/OneEuroFilter.h
TUIO/TuioDispatcher.cpp
+12
-0
12 additions, 0 deletions
TUIO/TuioDispatcher.cpp
TUIO/TuioDispatcher.h
+22
-1
22 additions, 1 deletion
TUIO/TuioDispatcher.h
with
35 additions
and
1 deletion
TUIO/OneEuroFilter.h
+
1
−
0
View file @
439535d4
...
...
@@ -20,6 +20,7 @@
#ifndef ONEEUROFILTER
#define ONEEUROFILTER
#define _USE_MATH_DEFINES
#include
<stdexcept>
#include
<cmath>
...
...
This diff is collapsed.
Click to expand it.
TUIO/TuioDispatcher.cpp
+
12
−
0
View file @
439535d4
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
TUIO/TuioDispatcher.h
+
22
−
1
View file @
439535d4
...
...
@@ -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
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment