#include <XnCppWrapper.h>

Classes | |
| struct | UserCookie |
Public Types | |
| typedef void(* | UserHandler )(UserGenerator &generator, XnUserID user, void *pCookie) |
Public Member Functions | |
| UserGenerator (XnNodeHandle hNode=NULL) | |
| XnUInt16 | GetNumberOfUsers () const |
| XnStatus | GetUsers (XnUserID aUsers[], XnUInt16 &nUsers) const |
| XnStatus | GetCoM (XnUserID user, XnPoint3D &com) const |
| XnStatus | GetUserPixels (XnUserID user, SceneMetaData &smd) const |
| XnStatus | RegisterUserCallbacks (UserHandler NewUserCB, UserHandler LostUserCB, void *pCookie, XnCallbackHandle &hCallback) |
| void | UnregisterUserCallbacks (XnCallbackHandle hCallback) |
| const SkeletonCapability | GetSkeletonCap () const |
| SkeletonCapability | GetSkeletonCap () |
| const PoseDetectionCapability | GetPoseDetectionCap () const |
| PoseDetectionCapability | GetPoseDetectionCap () |
| XnStatus | Create (Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL) |
Represents a User Generator node
| typedef void( * xn::UserGenerator::UserHandler)(UserGenerator &generator, XnUserID user, void *pCookie) |
| xn::UserGenerator::UserGenerator | ( | XnNodeHandle | hNode = NULL |
) | [inline] |
Ctor
| hNode | [in] Node handle |
| XnStatus xn::UserGenerator::Create | ( | Context & | context, | |
| Query * | pQuery = NULL, |
|||
| EnumerationErrors * | pErrors = NULL | |||
| ) | [inline] |
Creates a user generator. For full details and usage, see xnCreateUserGenerator
Get the center of mass of a user. For full details and usage, see xnGetUserCoM
| XnUInt16 xn::UserGenerator::GetNumberOfUsers | ( | ) | const [inline] |
Get current number of users. For full details and usage, see xnGetNumberOfUsers
| PoseDetectionCapability xn::UserGenerator::GetPoseDetectionCap | ( | ) | [inline] |
Gets an PoseDetectionCapability object for accessing Pose-Detection functionality. It is the application responsibility to check first if XN_CAPABILITY_POSE_DETECTION is supported by calling IsCapabilitySupported().
| const PoseDetectionCapability xn::UserGenerator::GetPoseDetectionCap | ( | ) | const [inline] |
Gets an PoseDetectionCapability object for accessing Pose-Detection functionality. It is the application responsibility to check first if XN_CAPABILITY_POSE_DETECTION is supported by calling IsCapabilitySupported().
| SkeletonCapability xn::UserGenerator::GetSkeletonCap | ( | ) | [inline] |
Gets an SkeletonCapability object for accessing Skeleton functionality. It is the application responsibility to check first if XN_CAPABILITY_SKELETON is supported by calling IsCapabilitySupported().
| const SkeletonCapability xn::UserGenerator::GetSkeletonCap | ( | ) | const [inline] |
Gets an SkeletonCapability object for accessing Skeleton functionality. It is the application responsibility to check first if XN_CAPABILITY_SKELETON is supported by calling IsCapabilitySupported().
| XnStatus xn::UserGenerator::GetUserPixels | ( | XnUserID | user, | |
| SceneMetaData & | smd | |||
| ) | const [inline] |
Get the pixels that belong to a user. For full details and usage, see xnGetUserPixels
Get the current users. For full details and usage, see xnGetUsers
| XnStatus xn::UserGenerator::RegisterUserCallbacks | ( | UserHandler | NewUserCB, | |
| UserHandler | LostUserCB, | |||
| void * | pCookie, | |||
| XnCallbackHandle & | hCallback | |||
| ) | [inline] |
Register to user callbacks. For full details and usage, see xnRegisterUserCallbacks
| void xn::UserGenerator::UnregisterUserCallbacks | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from user callbacks. For full details and usage, see xnUnregisterUserCallbacks
1.6.3