summaryrefslogtreecommitdiff
path: root/05_pointcloud/src/testApp.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-06-17 15:32:14 +0100
committerTim Redfern <tim@eclectronics.org>2013-06-17 15:32:14 +0100
commit2395f29308fb424eaf9b9ebb08022568a117b0f0 (patch)
treeca81402f792a1118b027ae0ad415e73659ff998b /05_pointcloud/src/testApp.h
parent51df1cfbacd02cd362c82141a161f2fe859b8431 (diff)
back to user pointclouds
Diffstat (limited to '05_pointcloud/src/testApp.h')
-rw-r--r--05_pointcloud/src/testApp.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/05_pointcloud/src/testApp.h b/05_pointcloud/src/testApp.h
new file mode 100644
index 0000000..67cd4dc
--- /dev/null
+++ b/05_pointcloud/src/testApp.h
@@ -0,0 +1,56 @@
+#ifndef _TEST_APP
+#define _TEST_APP
+
+#include "ofxOpenNI.h"
+#include "ofMain.h"
+#include "ofxXmlSettings.h"
+#include "ofxMayaCam.h"
+
+#define MAX_DEVICES 2
+
+struct record{
+ vector<string> data;
+ string audio;
+};
+
+class testApp : public ofBaseApp{
+
+public:
+ void setup();
+ void update();
+ void draw();
+ void exit();
+
+ void keyPressed (int key);
+ void keyReleased(int key);
+ void mouseMoved(int x, int y );
+ void mouseDragged(int x, int y, int button);
+ void mousePressed(int x, int y, int button);
+ void mouseReleased(int x, int y, int button);
+ void windowResized(int w, int h);
+
+ void startPlayers();
+
+ int numDevices;
+ ofxOpenNI openNIPlayers[MAX_DEVICES];
+
+ int playing;
+
+ ofTrueTypeFont verdana;
+
+ ofxXmlSettings XML;
+
+ vector<record> recs;
+
+ ofSoundPlayer soundplayer;
+
+ float offset;
+
+ ofxMayaCam cam;
+
+ bool drawmovies,drawcloud;
+ int frame;
+
+};
+
+#endif