#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 Member Functions |
| XN_DECLARE_EVENT_3ARG (XnVGestureRecognizeSpecificEvent, XnVGestureRecognizeEvent, const XnChar *, strGesture, const XnPoint3D &, ptIDPos, const XnPoint3D &, ptEndPos) |
| XN_DECLARE_EVENT_3ARG (XnVGestureStartRecognizeSpecificEvent, XnVGestureStartRecognizeEvent, const XnChar *, strGesture, const XnPoint3D &, ptPos, XnFloat, fProgress) |
Private Attributes |
XnVGestureStartRecognizeSpecificEvent | m_StartRecognizeCBs |
XnVGestureRecognizeSpecificEvent | m_RecognizeCBs |
Detailed Description
A XnVGesture is a Context Control, which identifies gestures.
Definition at line 18 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 27 of file XnVGesture.h.
Type for callbacks that a gesture started to be recognized.
Definition at line 31 of file XnVGesture.h.
Constructor & Destructor Documentation
XnVGesture::XnVGesture |
( |
const XnChar * |
strName = "XnVGesture" |
) |
|
Constructor. Create a new Gesture
- Parameters:
-
[in] | strName | Name of the control, for log purposes. |
virtual XnVGesture::~XnVGesture |
( |
|
) |
[virtual] |
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.
virtual void XnVGesture::StartGesture |
( |
XnBoundingBox3D * |
pbbArea = NULL |
) |
[inline, virtual] |
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 46 of file XnVGesture.h.
void XnVGesture::StartRecognized |
( |
const XnChar * |
strGesture, |
|
|
const XnPoint3D & |
ptPosition, |
|
|
XnFloat |
fProgress | |
|
) |
| | |
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 |
virtual void XnVGesture::StopGesture |
( |
|
) |
[inline, virtual] |
Stop looking for the gesture
Definition at line 50 of file XnVGesture.h.
void XnVGesture::UnregisterRecognize |
( |
XnCallbackHandle |
hCB |
) |
|
Unregister a callback from the 'Gesture Recognized' event
- Parameters:
-
[in] | hCB | The handle received when registering the callback. |
void XnVGesture::UnregisterStartRecognize |
( |
XnCallbackHandle |
hCB |
) |
|
Unregister a callback from the 'Gesture Started' event
- Parameters:
-
[in] | hCB | The handle received when registering the callback. |
XnVGesture::XN_DECLARE_EVENT_3ARG |
( |
XnVGestureStartRecognizeSpecificEvent |
, |
|
|
XnVGestureStartRecognizeEvent |
, |
|
|
const XnChar * |
, |
|
|
strGesture |
, |
|
|
const XnPoint3D & |
, |
|
|
ptPos |
, |
|
|
XnFloat |
, |
|
|
fProgress |
| |
|
) |
| | [private] |
XnVGesture::XN_DECLARE_EVENT_3ARG |
( |
XnVGestureRecognizeSpecificEvent |
, |
|
|
XnVGestureRecognizeEvent |
, |
|
|
const XnChar * |
, |
|
|
strGesture |
, |
|
|
const XnPoint3D & |
, |
|
|
ptIDPos |
, |
|
|
const XnPoint3D & |
, |
|
|
ptEndPos |
| |
|
) |
| | [private] |
Member Data Documentation
The documentation for this class was generated from the following file: