#include <XnVGesture.h>
List of all members.
Public Types |
typedef void(XN_CALLBACK_TYPE * | GestureRecognizedCB )(const XnChar *strGesture, const XnPoint3D &ptIDPosition, const XnPoint3D &ptEndPosition, void *cxt) |
typedef void(XN_CALLBACK_TYPE * | GestureStartRecognizedCB )(const XnChar *strGesture, const XnPoint3D &ptPosition, XnFloat fProgress, void *cxt) |
Public Member Functions |
| XnVGesture (const XnChar *strName="XnVGesture") |
virtual | ~XnVGesture () |
virtual void | StartGesture (XnBoundingBox3D *pbbArea=NULL) |
virtual void | StopGesture () |
void | Recognized (const XnChar *strGesture, const XnPoint3D &ptIDPosition, const XnPoint3D &ptEndPosition) |
void | StartRecognized (const XnChar *strGesture, const XnPoint3D &ptPosition, XnFloat fProgress) |
XnCallbackHandle | RegisterRecognize (void *cxt, GestureRecognizedCB CB) |
XnCallbackHandle | RegisterStartRecognize (void *cxt, GestureStartRecognizedCB CB) |
void | UnregisterRecognize (XnCallbackHandle hCB) |
void | UnregisterStartRecognize (XnCallbackHandle hCB) |
Private Attributes |
XnVGestureStartRecognizeSpecificEvent * | m_pStartRecognizeCBs |
XnVGestureRecognizeSpecificEvent * | m_pRecognizeCBs |
Detailed Description
A XnVGesture is a Context Control, which identifies gestures.
Definition at line 20 of file XnVGesture.h.
Member Typedef Documentation
typedef void(XN_CALLBACK_TYPE* XnVGesture::GestureRecognizedCB)(const XnChar *strGesture, const XnPoint3D &ptIDPosition, const XnPoint3D &ptEndPosition, void *cxt) |
Type for a recognized Gesture. It includes the ID of the recognized gesture, the position in which it was identified and the position in which it ended.
Definition at line 29 of file XnVGesture.h.
Type for callbacks that a gesture started to be recognized.
Definition at line 33 of file XnVGesture.h.
Constructor & Destructor Documentation
Constructor. Create a new Gesture
- Parameters:
-
[in] | strName | Name of the control, for log purposes. |
Member Function Documentation
void XnVGesture::Recognized |
( |
const XnChar * |
strGesture, |
|
|
const XnPoint3D & |
ptIDPosition, |
|
|
const XnPoint3D & |
ptEndPosition |
|
) |
| |
Call all callbacks registered to the 'Gesture Recognized' event
- Parameters:
-
[in] | strGesture | The name of the recognized gesture |
[in] | ptIDPosition | The position in which the gesture was recognized |
[in] | ptEndPosition | The position in which the gesture has ended |
Register a callback to the 'Gesture Recognized' event
- Parameters:
-
[in] | cxt | User's context. The callback will be called with that context. |
[in] | CB | The Callback |
- Returns:
- A handle to the callback, to allow unregistering.
Register a callback to the 'Gesture Started' event
- Parameters:
-
[in] | cxt | User's context. The callback will be called with that context. |
[in] | CB | The Callback |
- Returns:
- A handle to the callback, to allow unregistering.
Start looking for a gesture, in a specific area (in Real-World coordinates)
- Parameters:
-
[in] | pbbArea | The area in which to look for the gesture. NULL means all over |
Definition at line 48 of file XnVGesture.h.
Call all callbacks registered to the 'Gesture Started' event
- Parameters:
-
[in] | strGesture | The name of the started gesture |
[in] | ptPosition | The position in which the gesture started |
[in] | fProgress | How much of the gesture was already completed |
Stop looking for the gesture
Definition at line 52 of file XnVGesture.h.
Unregister a callback from the 'Gesture Recognized' event
- Parameters:
-
[in] | hCB | The handle received when registering the callback. |
Unregister a callback from the 'Gesture Started' event
- Parameters:
-
[in] | hCB | The handle received when registering the callback. |
Member Data Documentation
The documentation for this class was generated from the following file: