diff options
Diffstat (limited to 'src/viewport.h')
| -rwxr-xr-x | src/viewport.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/viewport.h b/src/viewport.h new file mode 100755 index 0000000..1ffda0a --- /dev/null +++ b/src/viewport.h @@ -0,0 +1,50 @@ +#ifndef VIEWPORT_H
+#define VIEWPORT_H
+
+
+#include "ofxKinect.h"
+#include "ofMain.h"
+#include "keyVar.h"
+
+
+class viewport
+{
+ public:
+ viewport();
+ viewport(int _w,int _h,int _x,int _y,float _r,int _ox,int _oy);
+ void setup(int _w,int _h,int _x,int _y,float _r,int _ox,int _oy);
+ virtual ~viewport();
+ void setKinect(ofxKinect *k);
+ void setFade(int f);
+
+ void setcam(map<string,float>&settings);
+ double getSetting(const string& setting);
+
+ void mousePressedEvent(int xs,int ys,float sc,float fs);
+
+ void draw(int fade,int decimate);
+ void drawgui();
+ ofFbo rb1,rb2; //can do 2d buffer effects with feedback, can pass out rb2 for preview
+
+ void keyPressed(int key);
+ void keyReleased(int key);
+
+ protected:
+ int x, y,w,h,ox,oy,r;
+ int xshift, yshift;
+ float scale,fscale;
+
+ ofxKinect *kinect; //passes in kinect data
+ //passes in a playing move that can be used to generate 3D points in teh same way
+ private:
+ map<string,keyVar> vars; //change to midimappedkeyvars
+
+ //has its own own camera
+ ofCamera camera;
+ ofNode target;
+
+
+};
+
+
+#endif // VIEWPORT_H
|
