From 29a366df4f1492a5974db87a215f1a310fc853a2 Mon Sep 17 00:00:00 2001 From: Comment Date: Sun, 28 Apr 2013 00:49:39 +0100 Subject: initial --- TRRSS_01_rec/src/testApp.h | 75 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100755 TRRSS_01_rec/src/testApp.h (limited to 'TRRSS_01_rec/src/testApp.h') diff --git a/TRRSS_01_rec/src/testApp.h b/TRRSS_01_rec/src/testApp.h new file mode 100755 index 0000000..1da9c6e --- /dev/null +++ b/TRRSS_01_rec/src/testApp.h @@ -0,0 +1,75 @@ +#pragma once + +//for tomorrow: drawing interface & screengrab + +//thursday: +//2 camera calibration +//recording - whats the best format - in memeory + save at end? +//movie + pixels? + +#include "ofMain.h" +#include "ofxOpenNI.h" + +#include "ofxFensterManager.h" +#include "ofxGui.h" + +#include "ofxMayaCam.h" + +class guiWindow; + +class testApp : public ofxFensterListener{ + + public: + void setup(); + void update(); + void draw(); + + 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 dragEvent(ofDragInfo dragInfo); + void gotMessage(ofMessage msg); + + ofxOpenNIContext recordContext; + ofxDepthGenerator recordDepth; + ofxImageGenerator recordImage; + ofxUserGenerator recordUser; + + guiWindow *guiWin; + + ofxMayaCam cam; + +}; + +class guiWindow: public ofxFensterListener{ + public: + ofxPanel gui; + ofxFloatSlider dMin; + ofxParameter distMin; + ofxFloatSlider dMax; + ofxParameter distMax; + ofxToggle dPoints; + ofxParameter drawPoints; + ofxFloatSlider pSize; + ofxParameter pointSize; + + + void setup(){ + gui.setup("","panel.xml",0,0); + distMin=400; + gui.add(dMin.setup("min distance",distMin,0,5000,255)); + distMax=2000; + gui.add(dMax.setup("max distance",distMax,0,5000,255)); + drawPoints=false; + gui.add(dPoints.setup("draw points",drawPoints)); + pointSize=2.0; + gui.add(pSize.setup("point size",pointSize,1.0,20.0,255)); + } + void draw() { gui.draw(); } + + +}; -- cgit v1.2.3