#include <XnCppWrapper.h>
Represents a Gestures Generator
Definition at line 2827 of file XnCppWrapper.h.
typedef struct xn::GestureGenerator::GestureCookie xn::GestureGenerator::GestureCookie [private] |
typedef void(XN_CALLBACK_TYPE* xn::GestureGenerator::GestureProgress)(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pPosition, XnFloat fProgress, void *pCookie) |
Callback for indication that a certain gesture is in progress
generator | [in] The node that raised the event. |
strGesture | [in] The gesture that is on its way to being recognized. |
pPosition | [in] The current position of the hand that is performing the gesture. |
fProgress | [in] The percentage of the gesture that was already performed. |
pCookie | [in] A user-provided cookie that was given when registering to this event. |
Definition at line 2909 of file XnCppWrapper.h.
typedef void(XN_CALLBACK_TYPE* xn::GestureGenerator::GestureRecognized)(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pIDPosition, const XnPoint3D *pEndPosition, void *pCookie) |
Callback for the recognition of a gesture
generator | [in] The node that raised the event. |
strGesture | [in] The gesture that was recognized. |
pIDPosition | [in] The position in which the gesture was identified. |
pEndPosition | [in] The position of the hand that performed the gesture at the end of the gesture. |
pCookie | [in] A user-provided cookie that was given when registering to this event. |
Definition at line 2899 of file XnCppWrapper.h.
xn::GestureGenerator::GestureGenerator | ( | XnNodeHandle | hNode = NULL | ) | [inline] |
XnStatus xn::GestureGenerator::AddGesture | ( | const XnChar * | strGesture, |
XnBoundingBox3D * | pArea | ||
) | [inline] |
Turn on gesture. The generator will now look for this gesture.
For full details and usage, see xnAddGestureDefinition at line 2845 of file XnCppWrapper.h.
XnStatus xn::GestureGenerator::Create | ( | Context & | context, |
Query * | pQuery = NULL , |
||
EnumerationErrors * | pErrors = NULL |
||
) | [inline] |
Creates a Gesture Generator.
For full details and usage, see xnCreateGestureGeneratorDefinition at line 4613 of file XnCppWrapper.h.
XnStatus xn::GestureGenerator::EnumerateGestures | ( | XnChar *& | astrGestures, |
XnUInt16 & | nGestures | ||
) | [inline] |
Get the names of all gestures available.
For full details and usage, see xnEnumerateGesturesDefinition at line 2869 of file XnCppWrapper.h.
static void XN_CALLBACK_TYPE xn::GestureGenerator::GestureProgressCallback | ( | XnNodeHandle | hNode, |
const XnChar * | strGesture, | ||
const XnPoint3D * | pPosition, | ||
XnFloat | fProgress, | ||
void * | pCookie | ||
) | [inline, static, private] |
Definition at line 2978 of file XnCppWrapper.h.
static void XN_CALLBACK_TYPE xn::GestureGenerator::GestureRecognizedCallback | ( | XnNodeHandle | hNode, |
const XnChar * | strGesture, | ||
const XnPoint3D * | pIDPosition, | ||
const XnPoint3D * | pEndPosition, | ||
void * | pCookie | ||
) | [inline, static, private] |
Definition at line 2971 of file XnCppWrapper.h.
XnStatus xn::GestureGenerator::GetActiveGestures | ( | XnChar *& | astrGestures, |
XnUInt16 & | nGestures | ||
) | const [inline] |
Get the names of the gestures that are currently active.
For full details and usage, see xnGetActiveGesturesDefinition at line 2861 of file XnCppWrapper.h.
XnBool xn::GestureGenerator::IsGestureAvailable | ( | const XnChar * | strGesture | ) | [inline] |
Check if a specific gesture is available in this generator.
For full details and usage, see xnIsGestureAvailableDefinition at line 2877 of file XnCppWrapper.h.
XnBool xn::GestureGenerator::IsGestureProgressSupported | ( | const XnChar * | strGesture | ) | [inline] |
Check if the specific gesture supports 'in progress' callbacks.
For full details and usage, see xnIsGestureProgressSupportedDefinition at line 2885 of file XnCppWrapper.h.
XnStatus xn::GestureGenerator::RegisterGestureCallbacks | ( | GestureRecognized | RecognizedCB, |
GestureProgress | ProgressCB, | ||
void * | pCookie, | ||
XnCallbackHandle & | hCallback | ||
) | [inline] |
Definition at line 2914 of file XnCppWrapper.h.
XnStatus xn::GestureGenerator::RegisterToGestureChange | ( | StateChangedHandler | handler, |
void * | pCookie, | ||
XnCallbackHandle & | hCallback | ||
) | [inline] |
Registers a callback function to pixel format changes.
For full details and usage, see xnRegisterToPixelFormatChangeDefinition at line 2949 of file XnCppWrapper.h.
XnStatus xn::GestureGenerator::RemoveGesture | ( | const XnChar * | strGesture | ) | [inline] |
Turn off gesture. The generator will no longer look for this gesture.
For full details and usage, see xnRemoveGestureDefinition at line 2853 of file XnCppWrapper.h.
void xn::GestureGenerator::UnregisterFromGestureChange | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from when gestures are added or removed.
For full details and usage, see xnUnregisterFromGestureChangeDefinition at line 2957 of file XnCppWrapper.h.
void xn::GestureGenerator::UnregisterGestureCallbacks | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from gesture callbacks.
For full details and usage, see xnUnregisterGestureCallbacksDefinition at line 2939 of file XnCppWrapper.h.