Classes | Public Types | Public Member Functions | Private Types | Static Private Member Functions
xn::GestureGenerator Class Reference

#include <XnCppWrapper.h>

Inheritance diagram for xn::GestureGenerator:
Inheritance graph
[legend]

List of all members.

Classes

struct  GestureCookie

Public Types

typedef void(XN_CALLBACK_TYPEGestureProgress )(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pPosition, XnFloat fProgress, void *pCookie)
typedef void(XN_CALLBACK_TYPEGestureRecognized )(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pIDPosition, const XnPoint3D *pEndPosition, void *pCookie)

Public Member Functions

XnStatus AddGesture (const XnChar *strGesture, XnBoundingBox3D *pArea)
XnStatus EnumerateGestures (XnChar *&astrGestures, XnUInt16 &nGestures)
 GestureGenerator (XnNodeHandle hNode=NULL)
XnStatus GetActiveGestures (XnChar *&astrGestures, XnUInt16 &nGestures) const
XnBool IsGestureAvailable (const XnChar *strGesture)
XnBool IsGestureProgressSupported (const XnChar *strGesture)
XnStatus RegisterGestureCallbacks (GestureRecognized RecognizedCB, GestureProgress ProgressCB, void *pCookie, XnCallbackHandle &hCallback)
XnStatus RegisterToGestureChange (StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
XnStatus RemoveGesture (const XnChar *strGesture)
void UnregisterFromGestureChange (XnCallbackHandle hCallback)
void UnregisterGestureCallbacks (XnCallbackHandle hCallback)
XnStatus Create (Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)

Private Types

typedef struct
xn::GestureGenerator::GestureCookie 
GestureCookie

Static Private Member Functions

static void XN_CALLBACK_TYPE GestureProgressCallback (XnNodeHandle hNode, const XnChar *strGesture, const XnPoint3D *pPosition, XnFloat fProgress, void *pCookie)
static void XN_CALLBACK_TYPE GestureRecognizedCallback (XnNodeHandle hNode, const XnChar *strGesture, const XnPoint3D *pIDPosition, const XnPoint3D *pEndPosition, void *pCookie)

Detailed Description

Represents a Gestures Generator

Definition at line 2827 of file XnCppWrapper.h.


Member Typedef Documentation

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

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.

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

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.

Definition at line 2899 of file XnCppWrapper.h.


Constructor & Destructor Documentation

Ctor

Parameters:
hNode[in] Node handle

Definition at line 2835 of file XnCppWrapper.h.


Member Function Documentation

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 xnAddGesture

Definition 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 xnCreateGestureGenerator

Definition 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 xnEnumerateGestures

Definition 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 xnGetActiveGestures

Definition 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 xnIsGestureAvailable

Definition at line 2877 of file XnCppWrapper.h.

Check if the specific gesture supports 'in progress' callbacks.

For full details and usage, see xnIsGestureProgressSupported

Definition at line 2885 of file XnCppWrapper.h.

XnStatus xn::GestureGenerator::RegisterGestureCallbacks ( GestureRecognized  RecognizedCB,
GestureProgress  ProgressCB,
void pCookie,
XnCallbackHandle hCallback 
) [inline]
For full details and usage, see RegisterGestureCallbacks

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 xnRegisterToPixelFormatChange

Definition 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 xnRemoveGesture

Definition at line 2853 of file XnCppWrapper.h.

Unregister from when gestures are added or removed.

For full details and usage, see xnUnregisterFromGestureChange

Definition at line 2957 of file XnCppWrapper.h.

Unregister from gesture callbacks.

For full details and usage, see xnUnregisterGestureCallbacks

Definition at line 2939 of file XnCppWrapper.h.


The documentation for this class was generated from the following file:


nao_openni
Author(s): Bener SUAY
autogenerated on Mon Jan 6 2014 11:27:52