OpenNI 1.3.2
|
#include <XnCppWrapper.h>
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 |
xn::UserGenerator::UserGenerator | ( | const NodeWrapper & | other | ) | [inline] |
XnStatus xn::UserGenerator::Create | ( | Context & | context, |
Query * | pQuery = NULL , |
||
EnumerationErrors * | pErrors = NULL |
||
) | [inline] |
Creates a user generator.
For full details and usage, see xnCreateUserGeneratorXnStatus xn::UserGenerator::GetCoM | ( | XnUserID | user, |
XnPoint3D & | com | ||
) | const [inline] |
Get the center of mass of a user.
For full details and usage, see xnGetUserCoMXnUInt16 xn::UserGenerator::GetNumberOfUsers | ( | ) | const [inline] |
Get current number of users.
For full details and usage, see xnGetNumberOfUsersconst 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().
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 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().
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().
XnStatus xn::UserGenerator::GetUserPixels | ( | XnUserID | user, |
SceneMetaData & | smd | ||
) | const [inline] |
Get the pixels that belong to a user.
For full details and usage, see xnGetUserPixelsXnStatus xn::UserGenerator::GetUsers | ( | XnUserID | aUsers[], |
XnUInt16 & | nUsers | ||
) | const [inline] |
Get the current users.
For full details and usage, see xnGetUsersXnStatus xn::UserGenerator::RegisterToUserExit | ( | UserHandler | handler, |
void * | pCookie, | ||
XnCallbackHandle & | hCallback | ||
) | [inline] |
Register to when the user exits the scene (but not lost yet)
For full details and usage, see xnRegisterToUserExitXnStatus xn::UserGenerator::RegisterToUserReEnter | ( | UserHandler | handler, |
void * | pCookie, | ||
XnCallbackHandle & | hCallback | ||
) | [inline] |
Register to when a user re-enters the scene after exiting.
For full details and usage, see xnRegisterToUserReEnterXnStatus xn::UserGenerator::RegisterUserCallbacks | ( | UserHandler | NewUserCB, |
UserHandler | LostUserCB, | ||
void * | pCookie, | ||
XnCallbackHandle & | hCallback | ||
) | [inline] |
Register to user callbacks.
For full details and usage, see xnRegisterUserCallbacksvoid xn::UserGenerator::UnregisterFromUserExit | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from when a user exits the scene.
For full details and usage, see xnUnregisterFromUserExitvoid xn::UserGenerator::UnregisterFromUserReEnter | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from when a user re-enters the scene.
For full details and usage, see xnUnregisterFromUserReEntervoid xn::UserGenerator::UnregisterUserCallbacks | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from user callbacks.
For full details and usage, see xnUnregisterUserCallbacks