annotate of/testApp.h @ 32:f7caff1c2fa6
i hope to have done osc - by hg -resolve --all and then coming back here to do commit
author |
Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
date |
Fri, 25 Feb 2011 13:48:11 +0000 |
parents |
e71aad40a068 7b6dfc67d51e |
children |
718f93c14ba9 |
rev |
line source |
rebecca@13
|
1 #ifndef _TEST_APP
|
rebecca@13
|
2 #define _TEST_APP
|
rebecca@13
|
3
|
rebecca@13
|
4 // uncomment this for OF 007 compatibility
|
rebecca@13
|
5 //#define OFX_OPENNI_BETA
|
rebecca@13
|
6
|
rebecca@13
|
7 #include "ofMain.h"
|
rebecca@13
|
8 #include "ofxOpenNI.h"
|
andrew@31
|
9 #include "ofxOsc.h"
|
andrew@31
|
10
|
andrew@31
|
11 #define HOST "localhost"
|
andrew@31
|
12 #define PORT 12346
|
rebecca@13
|
13
|
rebecca@13
|
14 class testApp : public ofBaseApp{
|
rebecca@13
|
15
|
rebecca@13
|
16 public:
|
rebecca@13
|
17 void setup();
|
rebecca@13
|
18 void update();
|
rebecca@13
|
19 void draw();
|
rebecca@13
|
20
|
andrew@31
|
21 void getCoordinates(int userID);
|
andrew@31
|
22 void sendDataViaOSC(int userID);
|
andrew@32
|
23
|
rebecca@13
|
24 void keyPressed (int key);
|
rebecca@13
|
25 void keyReleased(int key);
|
rebecca@13
|
26 void mouseMoved(int x, int y );
|
rebecca@13
|
27 void mouseDragged(int x, int y, int button);
|
rebecca@13
|
28 void mousePressed(int x, int y, int button);
|
rebecca@13
|
29 void mouseReleased(int x, int y, int button);
|
rebecca@13
|
30 void windowResized(int w, int h);
|
rebecca@13
|
31 ofxOpenNIContext context;
|
rebecca@13
|
32 ofxDepthGenerator depth;
|
rebecca@13
|
33 ofxUserGenerator user;
|
rebecca@13
|
34 ofxImageGenerator image;
|
rebecca@13
|
35 //ofImage Davy;
|
andrew@31
|
36
|
andrew@31
|
37 ofImage anubis;
|
rebecca@13
|
38 bool drawIt;
|
andrew@17
|
39
|
andrew@32
|
40
|
andrew@32
|
41 float torso[6][3];//x,y,and z of the head
|
andrew@31
|
42 bool userPresent[6];
|
andrew@31
|
43
|
andrew@17
|
44 ofTrueTypeFont franklinBook;
|
andrew@17
|
45 string outputString;
|
andrew@31
|
46 ofxOscSender sender;
|
andrew@31
|
47
|
rebecca@13
|
48 };
|
rebecca@13
|
49 #endif
|