OpenNI 1.0.0
Classes | Public Types | Public Member Functions
xn::PoseDetectionCapability Class Reference

#include <XnCppWrapper.h>

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

List of all members.

Classes

struct  PoseCookie

Public Types

typedef void(* PoseDetection )(PoseDetectionCapability &pose, const XnChar *strPose, XnUserID user, void *pCookie)

Public Member Functions

 PoseDetectionCapability (XnNodeHandle hNode)
XnUInt32 GetNumberOfPoses ()
XnStatus GetAvailablePoses (XnChar **pstrPoses, XnUInt32 &nPoses)
XnStatus GetAllAvailablePoses (XnChar **pstrPoses, XnUInt32 nNameLength, XnUInt32 &nPoses)
XnStatus StartPoseDetection (const XnChar *strPose, XnUserID user)
XnStatus StopPoseDetection (XnUserID user)
XnStatus RegisterToPoseCallbacks (PoseDetection PoseStartCB, PoseDetection PoseEndCB, void *pCookie, XnCallbackHandle &hCallback)
void UnregisterFromPoseCallbacks (XnCallbackHandle hCallback)

Detailed Description

Allows access to Pose Detection capability functions. see Pose Detection Capability for additional details.


Member Typedef Documentation

typedef void(* xn::PoseDetectionCapability::PoseDetection)(PoseDetectionCapability &pose, const XnChar *strPose, XnUserID user, void *pCookie)

Callback for indication that a specific user has entered a pose, or left it.

Parameters:
pose[in] The node that raised the event.
strPose[in] The pose that is relevant to the callback.
user[in] The id of the user that entered the pose or left it.
pCookie[in] A user-provided cookie that was given when registering to this event.

Constructor & Destructor Documentation

Ctor

Parameters:
hNode[in] Node handle

Member Function Documentation

XnStatus xn::PoseDetectionCapability::GetAllAvailablePoses ( XnChar **  pstrPoses,
XnUInt32  nNameLength,
XnUInt32 &  nPoses 
) [inline]

Get the names of the supported poses.

For full details and usage, see xnGetAvailablePoses

XnStatus xn::PoseDetectionCapability::GetAvailablePoses ( XnChar **  pstrPoses,
XnUInt32 &  nPoses 
) [inline]

Get the names of the supported poses.

For full details and usage, see xnGetAvailablePoses

Get the number of the supported poses.

For full details and usage, see xnGetNumberOfPoses

XnStatus xn::PoseDetectionCapability::RegisterToPoseCallbacks ( PoseDetection  PoseStartCB,
PoseDetection  PoseEndCB,
void *  pCookie,
XnCallbackHandle hCallback 
) [inline]

Register to callbacks for pose events.

For full details and usage, see xnRegisterToPoseCallbacks

XnStatus xn::PoseDetectionCapability::StartPoseDetection ( const XnChar *  strPose,
XnUserID  user 
) [inline]

Start detection of a specific pose for a specific user.

For full details and usage, see xnStartPoseDetection

Stop detection of poses for a specific user.

For full details and usage, see xnStopPoseDetection

Unregister from calibration callbacks.

For full details and usage, see xnUnregisterCalibrationCallbacks


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