From 2395f29308fb424eaf9b9ebb08022568a117b0f0 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 17 Jun 2013 15:32:14 +0100 Subject: back to user pointclouds --- 05_pointcloud/src/testApp.h | 56 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 05_pointcloud/src/testApp.h (limited to '05_pointcloud/src/testApp.h') 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 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 recs; + + ofSoundPlayer soundplayer; + + float offset; + + ofxMayaCam cam; + + bool drawmovies,drawcloud; + int frame; + +}; + +#endif -- cgit v1.2.3