![]() |
OpenNI 1.5.2
|
#include <XnCppWrapper.h>

Classes | |
| struct | GestureCookie |
| struct | GestureIntermediateStageCompletedCookie |
| struct | GestureReadyForNextIntermediateStageCookie |
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) |
| typedef void(* | GestureIntermediateStageCompleted )(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pPosition, void *pCookie) |
| typedef void(* | GestureReadyForNextIntermediateStage )(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pPosition, void *pCookie) |
Public Member Functions | |
| GestureGenerator (XnNodeHandle hNode=NULL) | |
| GestureGenerator (const NodeWrapper &other) | |
| 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) const |
| XnUInt16 | GetNumberOfAvailableGestures () const |
| XnStatus | EnumerateAllGestures (XnChar **astrGestures, XnUInt32 nNameLength, XnUInt16 &nGestures) const |
| XnBool | IsGestureAvailable (const XnChar *strGesture) const |
| XnBool | IsGestureProgressSupported (const XnChar *strGesture) const |
| 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 | RegisterToGestureIntermediateStageCompleted (GestureIntermediateStageCompleted handler, void *pCookie, XnCallbackHandle &hCallback) |
| void | UnregisterFromGestureIntermediateStageCompleted (XnCallbackHandle hCallback) |
| XnStatus | RegisterToGestureReadyForNextIntermediateStage (GestureReadyForNextIntermediateStage handler, void *pCookie, XnCallbackHandle &hCallback) |
| void | UnregisterFromGestureReadyForNextIntermediateStageCallbacks (XnCallbackHandle hCallback) |
| XnStatus | Create (Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL) |
Represents a Gestures Generator
| typedef void(* xn::GestureGenerator::GestureIntermediateStageCompleted)(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pPosition, void *pCookie) |
Callback for indication that a certain gesture is in progress
| 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. |
| pCookie | [in] A user-provided cookie that was given when registering to this event. |
| typedef void(* 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
| 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. |
| typedef void(* xn::GestureGenerator::GestureReadyForNextIntermediateStage)(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pPosition, void *pCookie) |
Callback for indication that a certain gesture is ready for its next stage (whatever that is)
| 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. |
| pCookie | [in] A user-provided cookie that was given when registering to this event. |
| typedef void(* xn::GestureGenerator::GestureRecognized)(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pIDPosition, const XnPoint3D *pEndPosition, void *pCookie) |
Callback for the recognition of a gesture
| 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. |
| xn::GestureGenerator::GestureGenerator | ( | XnNodeHandle | hNode = NULL | ) | [inline] |
Ctor
| hNode | [in] Node handle |
| xn::GestureGenerator::GestureGenerator | ( | const NodeWrapper & | other | ) | [inline] |
| 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| XnStatus xn::GestureGenerator::Create | ( | Context & | context, |
| Query * | pQuery = NULL, |
||
| EnumerationErrors * | pErrors = NULL |
||
| ) | [inline] |
Creates a Gesture Generator.
For full details and usage, see xnCreateGestureGenerator| XnStatus xn::GestureGenerator::EnumerateAllGestures | ( | XnChar ** | astrGestures, |
| XnUInt32 | nNameLength, | ||
| XnUInt16 & | nGestures | ||
| ) | const [inline] |
Get the names of all gestures available.
For full details and usage, see xnEnumerateAllGestures| XnStatus xn::GestureGenerator::EnumerateGestures | ( | XnChar *& | astrGestures, |
| XnUInt16 & | nGestures | ||
| ) | const [inline] |
Get the names of all gestures available.
For full details and usage, see xnEnumerateGestures| 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| XnUInt16 xn::GestureGenerator::GetNumberOfAvailableGestures | ( | ) | const [inline] |
Get the number of all gestures available.
For full details and usage, see xnGetNumberOfAvailableGestures| XnBool xn::GestureGenerator::IsGestureAvailable | ( | const XnChar * | strGesture | ) | const [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 | ) | const [inline] |
Check if the specific gesture supports 'in progress' callbacks.
For full details and usage, see xnIsGestureProgressSupported| XnStatus xn::GestureGenerator::RegisterGestureCallbacks | ( | GestureRecognized | RecognizedCB, |
| GestureProgress | ProgressCB, | ||
| void * | pCookie, | ||
| XnCallbackHandle & | hCallback | ||
| ) | [inline] |
| XnStatus xn::GestureGenerator::RegisterToGestureChange | ( | StateChangedHandler | handler, |
| void * | pCookie, | ||
| XnCallbackHandle & | hCallback | ||
| ) | [inline] |
Register to when gestures are added or removed.
For full details and usage, see xnRegisterToGestureChange| XnStatus xn::GestureGenerator::RegisterToGestureIntermediateStageCompleted | ( | GestureIntermediateStageCompleted | handler, |
| void * | pCookie, | ||
| XnCallbackHandle & | hCallback | ||
| ) | [inline] |
Register to when a gesture is in progress.
For full details and usage, see xnRegisterToGestureIntermediateStageCompleted| XnStatus xn::GestureGenerator::RegisterToGestureReadyForNextIntermediateStage | ( | GestureReadyForNextIntermediateStage | handler, |
| void * | pCookie, | ||
| XnCallbackHandle & | hCallback | ||
| ) | [inline] |
Register to when a gesture is ready for its next stage (specific to the gesture)
For full details and usage, see xnRegisterToGestureReadyForNextIntermediateStage| 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] |
Unregister from when gestures are added or removed.
For full details and usage, see xnUnregisterFromGestureChange| void xn::GestureGenerator::UnregisterFromGestureIntermediateStageCompleted | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from when a gesture is in progress.
For full details and usage, see xnUnregisterFromGestureIntermediateStageCompleted| void xn::GestureGenerator::UnregisterFromGestureReadyForNextIntermediateStageCallbacks | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from when a gesture is ready for its next stage.
For full details and usage, see xnUnregisterFromGestureReadyForNextIntermediateStage| void xn::GestureGenerator::UnregisterGestureCallbacks | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from gesture callbacks.
For full details and usage, see xnUnregisterGestureCallbacks
1.7.6.1