#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&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 vars; //change to midimappedkeyvars //has its own own camera ofCamera camera; ofNode target; }; #endif // VIEWPORT_H