#include <XnCppWrapper.h>
Represents a Hands Generator node
Definition at line 3034 of file XnCppWrapper.h.
typedef struct xn::HandsGenerator::HandCookie xn::HandsGenerator::HandCookie [private] |
typedef void(XN_CALLBACK_TYPE* xn::HandsGenerator::HandCreate)(HandsGenerator &generator, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, void *pCookie) |
Callback for the creation of a new hand.
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. |
Definition at line 3058 of file XnCppWrapper.h.
typedef void(XN_CALLBACK_TYPE* xn::HandsGenerator::HandDestroy)(HandsGenerator &generator, XnUserID user, XnFloat fTime, void *pCookie) |
Callback for the disappearance of a hand.
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. |
Definition at line 3077 of file XnCppWrapper.h.
typedef void(XN_CALLBACK_TYPE* xn::HandsGenerator::HandUpdate)(HandsGenerator &generator, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, void *pCookie) |
Callback for a new position of an already-existing hand.
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. |
Definition at line 3068 of file XnCppWrapper.h.
xn::HandsGenerator::HandsGenerator | ( | XnNodeHandle | hNode = NULL | ) | [inline] |
XnStatus xn::HandsGenerator::Create | ( | Context & | context, |
Query * | pQuery = NULL , |
||
EnumerationErrors * | pErrors = NULL |
||
) | [inline] |
Creates an hands generator.
For full details and usage, see xnCreateHandsGeneratorDefinition at line 4624 of file XnCppWrapper.h.
static void XN_CALLBACK_TYPE xn::HandsGenerator::HandCreateCB | ( | XnNodeHandle | hNode, |
XnUserID | user, | ||
const XnPoint3D * | pPosition, | ||
XnFloat | fTime, | ||
void * | pCookie | ||
) | [inline, static, private] |
Definition at line 3157 of file XnCppWrapper.h.
static void XN_CALLBACK_TYPE xn::HandsGenerator::HandDestroyCB | ( | XnNodeHandle | hNode, |
XnUserID | user, | ||
XnFloat | fTime, | ||
void * | pCookie | ||
) | [inline, static, private] |
Definition at line 3169 of file XnCppWrapper.h.
static void XN_CALLBACK_TYPE xn::HandsGenerator::HandUpdateCB | ( | XnNodeHandle | hNode, |
XnUserID | user, | ||
const XnPoint3D * | pPosition, | ||
XnFloat | fTime, | ||
void * | pCookie | ||
) | [inline, static, private] |
Definition at line 3163 of file XnCppWrapper.h.
XnStatus xn::HandsGenerator::RegisterHandCallbacks | ( | HandCreate | CreateCB, |
HandUpdate | UpdateCB, | ||
HandDestroy | DestroyCB, | ||
void * | pCookie, | ||
XnCallbackHandle & | hCallback | ||
) | [inline] |
Register to hands callbacks.
For full details and usage, see xnRegisterHandCallbacksDefinition at line 3082 of file XnCppWrapper.h.
XnStatus xn::HandsGenerator::SetSmoothing | ( | XnFloat | fSmoothingFactor | ) | [inline] |
Change smoothing factor.
For full details and usage, see xnSetTrackingSmoothingDefinition at line 3142 of file XnCppWrapper.h.
XnStatus xn::HandsGenerator::StartTracking | ( | const XnPoint3D & | ptPosition | ) | [inline] |
Start tracking at a specific position.
For full details and usage, see xnStartTrackingDefinition at line 3134 of file XnCppWrapper.h.
XnStatus xn::HandsGenerator::StopTracking | ( | XnUserID | user | ) | [inline] |
Stop tracking a specific hand.
For full details and usage, see xnStopTrackingDefinition at line 3118 of file XnCppWrapper.h.
XnStatus xn::HandsGenerator::StopTrackingAll | ( | ) | [inline] |
Stop tracking all hands.
For full details and usage, see xnStopTrackingAllDefinition at line 3126 of file XnCppWrapper.h.
void xn::HandsGenerator::UnregisterHandCallbacks | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from hands callbacks.
For full details and usage, see xnUnregisterHandCallbacksDefinition at line 3108 of file XnCppWrapper.h.