xn::HandsGenerator Class Reference
[C++ Reference]
#include <XnCppWrapper.h>
List of all members.
Classes |
struct | HandCookie |
Public Types |
typedef void(* | HandCreate )(HandsGenerator &generator, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, void *pCookie) |
typedef void(* | HandUpdate )(HandsGenerator &generator, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, void *pCookie) |
typedef void(* | HandDestroy )(HandsGenerator &generator, XnUserID user, XnFloat fTime, void *pCookie) |
Public Member Functions |
| HandsGenerator (XnNodeHandle hNode=NULL) |
XnStatus | RegisterHandCallbacks (HandCreate CreateCB, HandUpdate UpdateCB, HandDestroy DestroyCB, void *pCookie, XnCallbackHandle &hCallback) |
void | UnregisterHandCallbacks (XnCallbackHandle hCallback) |
XnStatus | StopTracking (XnUserID user) |
XnStatus | StopTrackingAll () |
XnStatus | StartTracking (const XnPoint3D &ptPosition) |
XnStatus | SetSmoothing (XnFloat fSmoothingFactor) |
|
|
XnStatus | Create (Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL) |
Detailed Description
Represents a Hands Generator node
Member Typedef Documentation
Callback for the creation of a new hand.
- Parameters:
-
| generator | [in] the generator that raised this event. |
| user | [in] The id of the new hand. |
| pPosition | [in] The position in which the hand was created. |
| fTime | [in] Timestamp, in seconds. |
| pCookie | [in] A user-provided cookie that was given when registering to this event. |
Callback for the disappearance of a hand.
- Parameters:
-
| generator | [in] the generator that raised this event. |
| user | [in] The id of the hand that disappeared. |
| fTime | [in] Timestamp, in seconds. |
| pCookie | [in] A user-provided cookie that was given when registering to this event. |
Callback for a new position of an already-existing hand.
- Parameters:
-
| generator | [in] the generator that raised this event. |
| user | [in] The id of the hand that moved. |
| pPosition | [in] The new position of the relevant hand. |
| fTime | [in] Timestamp, in seconds. |
| pCookie | [in] A user-provided cookie that was given when registering to this event. |
Constructor & Destructor Documentation
xn::HandsGenerator::HandsGenerator |
( |
XnNodeHandle |
hNode = NULL |
) |
[inline] |
Member Function Documentation
XnStatus xn::HandsGenerator::SetSmoothing |
( |
XnFloat |
fSmoothingFactor |
) |
[inline] |
Start tracking at a specific position. For full details and usage, see xnStartTracking
Stop tracking a specific hand. For full details and usage, see xnStopTracking
XnStatus xn::HandsGenerator::StopTrackingAll |
( |
|
) |
[inline] |
void xn::HandsGenerator::UnregisterHandCallbacks |
( |
XnCallbackHandle |
hCallback |
) |
[inline] |
The documentation for this class was generated from the following file: