Mercurial > hg > mtri-kinectui
comparison src/testApp.h @ 4:c843a959013f tip
Now using OSC bundles;
some reorganisation and const-ification of code.
author | samer |
---|---|
date | Tue, 28 Feb 2012 11:36:30 +0000 |
parents | b5281b3d55ce |
children |
comparison
equal
deleted
inserted
replaced
3:f3a1dc7d3596 | 4:c843a959013f |
---|---|
20 DepthGenerator depthGenerator; | 20 DepthGenerator depthGenerator; |
21 UserGenerator userGenerator; | 21 UserGenerator userGenerator; |
22 SceneAnalyzer sceneAnalyzer; | 22 SceneAnalyzer sceneAnalyzer; |
23 SceneMetaData sceneMetaData; | 23 SceneMetaData sceneMetaData; |
24 XnDepthPixel max_depth; | 24 XnDepthPixel max_depth; |
25 XnUInt64 timestamp; | 25 XnUInt64 timestamp; |
26 XnPlane3D floor_pie; | 26 XnPlane3D floor_pie; |
27 ofImage userImage; | 27 ofImage userImage; |
28 ofTrueTypeFont font; | 28 ofTrueTypeFont font; |
29 unsigned char *imagePixels; | 29 unsigned char *imagePixels; |
30 | 30 |
39 int plot_coors[7]; | 39 int plot_coors[7]; |
40 }; | 40 }; |
41 | 41 |
42 UserData users[MAX_USERS]; | 42 UserData users[MAX_USERS]; |
43 | 43 |
44 void update_user(int id, UserStats& stats, UserData *user); | 44 static void update_user(const UserStats& stats, UserData *user, XnVector3D *proj); |
45 ofxOscMessage track(int id, const UserData &user, const XnVector3D &proj, int area) const; | |
45 | 46 |
46 public: | 47 public: |
47 testApp(const char *host, int port, int fps); | 48 testApp(const char *host, int port, int fps); |
48 ~testApp() { context.Shutdown(); }; | 49 ~testApp() { context.Shutdown(); }; |
49 | 50 |