comparison KinectTrack.h @ 3:7e112b536f0a

track moving of a hand
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Tue, 01 Feb 2011 06:37:06 +0900
parents 3b5465899da9
children
comparison
equal deleted inserted replaced
2:3b5465899da9 3:7e112b536f0a
22 22
23 class XnVPointDrawer : public XnVPointControl { 23 class XnVPointDrawer : public XnVPointControl {
24 public: 24 public:
25 XnVPointDrawer(XnUInt32 nHistorySize, xn::DepthGenerator depthGenerator); 25 XnVPointDrawer(XnUInt32 nHistorySize, xn::DepthGenerator depthGenerator);
26 virtual ~XnVPointDrawer(); 26 virtual ~XnVPointDrawer();
27 void update(XnVMessage *pMessage); 27 void Update(XnVMessage *pMessage);
28 void onPointCreate(const XnVHandPointContext *cxt); 28 void OnPointCreate(const XnVHandPointContext *cxt);
29 void onPointUpdate(const XnVHandPointContext *cxt); 29 void OnPointUpdate(const XnVHandPointContext *cxt);
30 void onPointDestroy(XnUInt32 nID); 30 void OnPointDestroy(XnUInt32 nID);
31 void draw() const; 31 void Draw() const;
32 void setDepthMap(XnBool bDrawDM); 32 void setDepthMap(XnBool bDrawDM);
33 void setFrameID(XnBool bFrameID); 33 void setFrameID(XnBool bFrameID);
34 int getPosition(float &x, float &y, float &z) const;
34 protected: 35 protected:
35 XnUInt32 mNHistorySize; 36 XnUInt32 mNHistorySize;
36 std::map<XnUInt32, std::list<XnPoint3D> > mHistory; 37 std::map<XnUInt32, std::list<XnPoint3D> > mHistory;
37 xn::DepthGenerator mDepthGenerator; 38 xn::DepthGenerator mDepthGenerator;
38 XnFloat *mPFPositionBuffer; 39 XnFloat *mPFPositionBuffer;