Mercurial > hg > movesynth
view of/testApp.h @ 41:5b6f63b6f76d
Updated grid_mapper and specification
author | Tim MB <tim.murraybrowne@eecs.qmul.ac.uk> |
---|---|
date | Tue, 01 Mar 2011 14:09:59 +0000 |
parents | 718f93c14ba9 |
children | b1c6e3d3a18b |
line wrap: on
line source
#ifndef _TEST_APP #define _TEST_APP // uncomment this for OF 007 compatibility //#define OFX_OPENNI_BETA #include "ofMain.h" #include "ofxOpenNI.h" #include "ofxOsc.h" #define NUMBER_OF_USERS 6 #define HOST "localhost" #define PORT 12344 #define STOPPORT 12343 class testApp : public ofBaseApp{ public: void setup(); void update(); void draw(); void getCoordinates(int userID); void sendDataViaOSC(int userID); 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); ofxOpenNIContext context; ofxDepthGenerator depth; ofxUserGenerator user; ofxImageGenerator image; //ofImage Davy; void sendStopMessageForUser(int userID); ofImage anubis; bool drawIt; float maxTorsoValues[3]; void checkTorsoMaxima(int id); double lastRecordedTime[6];//x,y,and z of the head float torso[6][3];//x,y,and z of the head bool userPresent[6]; ofTrueTypeFont franklinBook; string outputString; ofxOscSender sender, stopSender; }; #endif