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

#include <XnCppWrapper.h>

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

List of all members.

Classes

struct  HandCookie

Public Types

typedef void(XN_CALLBACK_TYPEHandCreate )(HandsGenerator &generator, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, void *pCookie)
typedef void(XN_CALLBACK_TYPEHandDestroy )(HandsGenerator &generator, XnUserID user, XnFloat fTime, void *pCookie)
typedef void(XN_CALLBACK_TYPEHandUpdate )(HandsGenerator &generator, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, void *pCookie)

Public Member Functions

 HandsGenerator (XnNodeHandle hNode=NULL)
XnStatus RegisterHandCallbacks (HandCreate CreateCB, HandUpdate UpdateCB, HandDestroy DestroyCB, void *pCookie, XnCallbackHandle &hCallback)
XnStatus SetSmoothing (XnFloat fSmoothingFactor)
XnStatus StartTracking (const XnPoint3D &ptPosition)
XnStatus StopTracking (XnUserID user)
XnStatus StopTrackingAll ()
void UnregisterHandCallbacks (XnCallbackHandle hCallback)
XnStatus Create (Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)

Private Types

typedef struct
xn::HandsGenerator::HandCookie 
HandCookie

Static Private Member Functions

static void XN_CALLBACK_TYPE HandCreateCB (XnNodeHandle hNode, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, void *pCookie)
static void XN_CALLBACK_TYPE HandDestroyCB (XnNodeHandle hNode, XnUserID user, XnFloat fTime, void *pCookie)
static void XN_CALLBACK_TYPE HandUpdateCB (XnNodeHandle hNode, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, void *pCookie)

Detailed Description

Represents a Hands Generator node

Definition at line 3034 of file XnCppWrapper.h.


Member Typedef Documentation

Callback for the creation of a new hand.

Parameters:
generator[in] the generator that raised this event.
user[in] The id of the new hand.
pPosition[in] The position in which the hand was created.
fTime[in] Timestamp, in seconds.
pCookie[in] A user-provided cookie that was given when registering to this event.

Definition at line 3058 of file XnCppWrapper.h.

Callback for the disappearance of a hand.

Parameters:
generator[in] the generator that raised this event.
user[in] The id of the hand that disappeared.
fTime[in] Timestamp, in seconds.
pCookie[in] A user-provided cookie that was given when registering to this event.

Definition at line 3077 of file XnCppWrapper.h.

Callback for a new position of an already-existing hand.

Parameters:
generator[in] the generator that raised this event.
user[in] The id of the hand that moved.
pPosition[in] The new position of the relevant hand.
fTime[in] Timestamp, in seconds.
pCookie[in] A user-provided cookie that was given when registering to this event.

Definition at line 3068 of file XnCppWrapper.h.


Constructor & Destructor Documentation

Ctor

Parameters:
hNode[in] Node handle

Definition at line 3042 of file XnCppWrapper.h.


Member Function Documentation

XnStatus xn::HandsGenerator::Create ( Context context,
Query pQuery = NULL,
EnumerationErrors pErrors = NULL 
) [inline]

Creates an hands generator.

For full details and usage, see xnCreateHandsGenerator

Definition at line 4624 of file XnCppWrapper.h.

static void XN_CALLBACK_TYPE xn::HandsGenerator::HandCreateCB ( XnNodeHandle  hNode,
XnUserID  user,
const XnPoint3D pPosition,
XnFloat  fTime,
void pCookie 
) [inline, static, private]

Definition at line 3157 of file XnCppWrapper.h.

static void XN_CALLBACK_TYPE xn::HandsGenerator::HandDestroyCB ( XnNodeHandle  hNode,
XnUserID  user,
XnFloat  fTime,
void pCookie 
) [inline, static, private]

Definition at line 3169 of file XnCppWrapper.h.

static void XN_CALLBACK_TYPE xn::HandsGenerator::HandUpdateCB ( XnNodeHandle  hNode,
XnUserID  user,
const XnPoint3D pPosition,
XnFloat  fTime,
void pCookie 
) [inline, static, private]

Definition at line 3163 of file XnCppWrapper.h.

XnStatus xn::HandsGenerator::RegisterHandCallbacks ( HandCreate  CreateCB,
HandUpdate  UpdateCB,
HandDestroy  DestroyCB,
void pCookie,
XnCallbackHandle hCallback 
) [inline]

Register to hands callbacks.

For full details and usage, see xnRegisterHandCallbacks

Definition at line 3082 of file XnCppWrapper.h.

XnStatus xn::HandsGenerator::SetSmoothing ( XnFloat  fSmoothingFactor) [inline]

Change smoothing factor.

For full details and usage, see xnSetTrackingSmoothing

Definition at line 3142 of file XnCppWrapper.h.

XnStatus xn::HandsGenerator::StartTracking ( const XnPoint3D ptPosition) [inline]

Start tracking at a specific position.

For full details and usage, see xnStartTracking

Definition at line 3134 of file XnCppWrapper.h.

Stop tracking a specific hand.

For full details and usage, see xnStopTracking

Definition at line 3118 of file XnCppWrapper.h.

Stop tracking all hands.

For full details and usage, see xnStopTrackingAll

Definition at line 3126 of file XnCppWrapper.h.

Unregister from hands callbacks.

For full details and usage, see xnUnregisterHandCallbacks

Definition at line 3108 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