xn::GestureGenerator Class Reference
[C++ Reference]
#include <XnCppWrapper.h>
List of all members.
Classes |
struct | GestureCookie |
Public Types |
typedef void(* | GestureRecognized )(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pIDPosition, const XnPoint3D *pEndPosition, void *pCookie) |
typedef void(* | GestureProgress )(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pPosition, XnFloat fProgress, void *pCookie) |
Public Member Functions |
| GestureGenerator (XnNodeHandle hNode=NULL) |
XnStatus | AddGesture (const XnChar *strGesture, XnBoundingBox3D *pArea) |
XnStatus | RemoveGesture (const XnChar *strGesture) |
XnStatus | GetActiveGestures (XnChar *&astrGestures, XnUInt16 &nGestures) const |
XnStatus | GetAllActiveGestures (XnChar **astrGestures, XnUInt32 nNameLength, XnUInt16 &nGestures) const |
XnStatus | EnumerateGestures (XnChar *&astrGestures, XnUInt16 &nGestures) |
XnStatus | EnumerateAllGestures (XnChar **astrGestures, XnUInt32 nNameLength, XnUInt16 &nGestures) |
XnBool | IsGestureAvailable (const XnChar *strGesture) |
XnBool | IsGestureProgressSupported (const XnChar *strGesture) |
XnStatus | RegisterGestureCallbacks (GestureRecognized RecognizedCB, GestureProgress ProgressCB, void *pCookie, XnCallbackHandle &hCallback) |
void | UnregisterGestureCallbacks (XnCallbackHandle hCallback) |
XnStatus | RegisterToGestureChange (StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback) |
void | UnregisterFromGestureChange (XnCallbackHandle hCallback) |
|
|
XnStatus | Create (Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL) |
Detailed Description
Represents a Gestures Generator
Member Typedef Documentation
Callback for indication that a certain gesture is in progress
- Parameters:
-
| 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. |
Callback for the recognition of a gesture
- Parameters:
-
| 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. |
Constructor & Destructor Documentation
xn::GestureGenerator::GestureGenerator |
( |
XnNodeHandle |
hNode = NULL |
) |
[inline] |
Member Function Documentation
Turn on gesture. The generator will now look for this gesture. For full details and usage, see xnAddGesture
XnStatus xn::GestureGenerator::EnumerateAllGestures |
( |
XnChar ** |
astrGestures, |
|
|
XnUInt32 |
nNameLength, |
|
|
XnUInt16 & |
nGestures | |
|
) |
| | [inline] |
XnStatus xn::GestureGenerator::EnumerateGestures |
( |
XnChar *& |
astrGestures, |
|
|
XnUInt16 & |
nGestures | |
|
) |
| | [inline] |
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 xnGetActiveGestures
XnStatus xn::GestureGenerator::GetAllActiveGestures |
( |
XnChar ** |
astrGestures, |
|
|
XnUInt32 |
nNameLength, |
|
|
XnUInt16 & |
nGestures | |
|
) |
| | const [inline] |
Get the names of the gestures that are currently active. For full details and usage, see xnGetActiveGestures
XnBool xn::GestureGenerator::IsGestureAvailable |
( |
const XnChar * |
strGesture |
) |
[inline] |
Check if a specific gesture is available in this generator. For full details and usage, see xnIsGestureAvailable
XnBool xn::GestureGenerator::IsGestureProgressSupported |
( |
const XnChar * |
strGesture |
) |
[inline] |
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 xnRemoveGesture
void xn::GestureGenerator::UnregisterFromGestureChange |
( |
XnCallbackHandle |
hCallback |
) |
[inline] |
void xn::GestureGenerator::UnregisterGestureCallbacks |
( |
XnCallbackHandle |
hCallback |
) |
[inline] |
The documentation for this class was generated from the following file: