#ifndef VIEWPORT_H #define VIEWPORT_H #include "ofxKinect.h" #include "ofMain.h" #include "keyVar.h" #define POINTS 1 #define LINES 2 #define POLYS 3 #include "ofxMayaCam.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 mode,int fade,float decimate, float feat, float xr, float yr, float zr, int range, bool add, bool dologo, bool col); 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); ofxMayaCam camera; float xrot,yrot,zrot; int xshift, yshift; float scale,fscale; protected: int x, y,w,h,ox,oy,r; ofImage logo; 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 }; #endif // VIEWPORT_H