Mercurial > hg > Game > Kinect
diff 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 |
line wrap: on
line diff
--- a/KinectTrack.h Tue Feb 01 03:01:22 2011 +0900 +++ b/KinectTrack.h Tue Feb 01 06:37:06 2011 +0900 @@ -24,13 +24,14 @@ public: XnVPointDrawer(XnUInt32 nHistorySize, xn::DepthGenerator depthGenerator); virtual ~XnVPointDrawer(); - void update(XnVMessage *pMessage); - void onPointCreate(const XnVHandPointContext *cxt); - void onPointUpdate(const XnVHandPointContext *cxt); - void onPointDestroy(XnUInt32 nID); - void draw() const; + void Update(XnVMessage *pMessage); + void OnPointCreate(const XnVHandPointContext *cxt); + void OnPointUpdate(const XnVHandPointContext *cxt); + void OnPointDestroy(XnUInt32 nID); + void Draw() const; void setDepthMap(XnBool bDrawDM); void setFrameID(XnBool bFrameID); + int getPosition(float &x, float &y, float &z) const; protected: XnUInt32 mNHistorySize; std::map<XnUInt32, std::list<XnPoint3D> > mHistory;