![]() |
OpenNI 1.5.2
|
#include <XnCppWrapper.h>
Allows access to Skeleton capability functions. see Skeleton Capability for additional details.
typedef void(* xn::SkeletonCapability::CalibrationComplete)(SkeletonCapability &skeleton, XnUserID user, XnCalibrationStatus calibrationError, void *pCookie) |
Callback for indication that a specific user's skeleton has now completed the calibration process, with a status
hNode | [in] The node that raised the event. |
user | [in] The id of the user for which calibration was attempted. |
calibrationError | [in] The status in which the calibration has ended. |
pCookie | [in] A user-provided cookie that was given when registering to this event. |
typedef void(* xn::SkeletonCapability::CalibrationEnd)(SkeletonCapability &skeleton, XnUserID user, XnBool bSuccess, void *pCookie) |
Callback for indication that a specific user's skeleton has now completed the calibration process
hNode | [in] The node that raised the event. |
user | [in] The id of the user for which calibration was attempted. |
bSuccess | [in] An indication of whether or not the calibration attempt succeeded. |
pCookie | [in] A user-provided cookie that was given when registering to this event. |
typedef void(* xn::SkeletonCapability::CalibrationInProgress)(SkeletonCapability &skeleton, XnUserID user, XnCalibrationStatus calibrationError, void *pCookie) |
Callback for indication that a specific user's skeleton is calibrating, and its current status
hNode | [in] The node that raised the event. |
user | [in] The id of the user for which calibration was attempted. |
calibrationError | [in] the current status of the calibration |
pCookie | [in] A user-provided cookie that was given when registering to this event. |
typedef void(* xn::SkeletonCapability::CalibrationStart)(SkeletonCapability &skeleton, XnUserID user, void *pCookie) |
Callback for indication that a specific user's skeleton is now starting the calibration process
skeleton | [in] The node that raised the event. |
user | [in] The id of the user that's being calibrated. |
pCookie | [in] A user-provided cookie that was given when registering to this event. |
xn::SkeletonCapability::SkeletonCapability | ( | XnNodeHandle | hNode | ) | [inline] |
Ctor
hNode | [in] Node handle |
xn::SkeletonCapability::SkeletonCapability | ( | const NodeWrapper & | node | ) | [inline] |
XnStatus xn::SkeletonCapability::AbortCalibration | ( | XnUserID | user | ) | [inline] |
stop calibration
For full details and usage, see xnAbortSkeletonCalibrationXnStatus xn::SkeletonCapability::ClearCalibrationData | ( | XnUInt32 | nSlot | ) | [inline] |
Clear the requested slot from any saved calibration data.
For full details and usage, see xnClearSkeletonCalibrationDataXnStatus xn::SkeletonCapability::EnumerateActiveJoints | ( | XnSkeletonJoint * | pJoints, |
XnUInt16 & | nJoints | ||
) | const [inline] |
Get all active joints.
For full details and usage, see xnEnumerateActiveJointsXnStatus xn::SkeletonCapability::GetCalibrationPose | ( | XnChar * | strPose | ) | const [inline] |
Get the pose that is required for calibration.
For full details and usage, see xnGetSkeletonCalibrationPoseXnStatus xn::SkeletonCapability::GetSkeletonJoint | ( | XnUserID | user, |
XnSkeletonJoint | eJoint, | ||
XnSkeletonJointTransformation & | Joint | ||
) | const [inline] |
Get a specific joint's full information.
For full details and usage, see xnGetSkeletonJointXnStatus xn::SkeletonCapability::GetSkeletonJointOrientation | ( | XnUserID | user, |
XnSkeletonJoint | eJoint, | ||
XnSkeletonJointOrientation & | Joint | ||
) | const [inline] |
Get a specific joint's orientation.
For full details and usage, see xnGetSkeletonJointOrientationXnStatus xn::SkeletonCapability::GetSkeletonJointPosition | ( | XnUserID | user, |
XnSkeletonJoint | eJoint, | ||
XnSkeletonJointPosition & | Joint | ||
) | const [inline] |
Get a specific joint's position.
For full details and usage, see xnGetSkeletonJointPositionXnBool xn::SkeletonCapability::IsCalibrated | ( | XnUserID | user | ) | const [inline] |
Check if skeleton is being calibrated.
For full details and usage, see xnIsSkeletonCalibratedXnBool xn::SkeletonCapability::IsCalibrating | ( | XnUserID | user | ) | const [inline] |
Check if skeleton is being calibrated.
For full details and usage, see xnIsSkeletonCalibratingXnBool xn::SkeletonCapability::IsCalibrationData | ( | XnUInt32 | nSlot | ) | const [inline] |
Check if a specific slot already holds calibration data.
For full details and usage, see xnIsSkeletonCalibrationDataXnBool xn::SkeletonCapability::IsJointActive | ( | XnSkeletonJoint | eJoint, |
XnBool | |||
) | const [inline] |
Check if joint is currently active.
For full details and usage, see xnIsJointActiveXnBool xn::SkeletonCapability::IsJointActive | ( | XnSkeletonJoint | eJoint | ) | const [inline] |
Check if joint is currently active.
For full details and usage, see xnIsJointActiveXnBool xn::SkeletonCapability::IsJointAvailable | ( | XnSkeletonJoint | eJoint | ) | const [inline] |
Check if generator supports a specific joint.
For full details and usage, see xnIsJointAvailableXnBool xn::SkeletonCapability::IsProfileAvailable | ( | XnSkeletonProfile | eProfile | ) | const [inline] |
Check if generator supports a specific profile.
For full details and usage, see xnIsProfileAvailableXnBool xn::SkeletonCapability::IsTracking | ( | XnUserID | user | ) | const [inline] |
Check if skeleton is being tracked.
For full details and usage, see xnIsSkeletonTrackingXnStatus xn::SkeletonCapability::LoadCalibrationData | ( | XnUserID | user, |
XnUInt32 | nSlot | ||
) | [inline] |
Load previously saved calibration data.
For full details and usage, see xnLoadSkeletonCalibrationDataXnStatus xn::SkeletonCapability::LoadCalibrationDataFromFile | ( | XnUserID | user, |
const XnChar * | strFileName | ||
) | [inline] |
Load previously saved calibration data from file.
For full details and usage, see xnLoadSkeletonCalibrationDataFromFileXnBool xn::SkeletonCapability::NeedPoseForCalibration | ( | ) | const [inline] |
Check if a specific pose is required for calibration.
For full details and usage, see xnNeedPoseForSkeletonCalibrationXnStatus xn::SkeletonCapability::RegisterCalibrationCallbacks | ( | CalibrationStart | CalibrationStartCB, |
CalibrationEnd | CalibrationEndCB, | ||
void * | pCookie, | ||
XnCallbackHandle & | hCallback | ||
) | [inline] |
Register to calibration callbacks.
For full details and usage, see xnRegisterCalibrationCallbacksXnStatus xn::SkeletonCapability::RegisterToCalibrationComplete | ( | CalibrationComplete | handler, |
void * | pCookie, | ||
XnCallbackHandle & | hCallback | ||
) | [inline] |
Register to when calibration is complete, with status.
For full details and usage, see xnRegisterToCalibrationCompleteXnStatus xn::SkeletonCapability::RegisterToCalibrationInProgress | ( | CalibrationInProgress | handler, |
void * | pCookie, | ||
XnCallbackHandle & | hCallback | ||
) | [inline] |
Register to calibration status while calibration is in progress.
For full details and usage, see xnRegisterToCalibrationInProgressXnStatus xn::SkeletonCapability::RegisterToCalibrationStart | ( | CalibrationStart | handler, |
void * | pCookie, | ||
XnCallbackHandle & | hCallback | ||
) | [inline] |
Register to calibration start callback.
For full details and usage, see xnRegisterToCalibrationStartXnStatus xn::SkeletonCapability::RegisterToJointConfigurationChange | ( | StateChangedHandler | handler, |
void * | pCookie, | ||
XnCallbackHandle & | hCallback | ||
) | [inline] |
Register to joint configuration changes - when joints are activated and deactivated.
For full details and usage, see xnRegisterToJointConfigurationChangeXnStatus xn::SkeletonCapability::RequestCalibration | ( | XnUserID | user, |
XnBool | bForce | ||
) | [inline] |
Request calibration when possible.
For full details and usage, see xnRequestSkeletonCalibrationXnStatus xn::SkeletonCapability::Reset | ( | XnUserID | user | ) | [inline] |
Reset the skeleton - discard calibration.
For full details and usage, see xnResetSkeletonXnStatus xn::SkeletonCapability::SaveCalibrationData | ( | XnUserID | user, |
XnUInt32 | nSlot | ||
) | [inline] |
Save the calibration data.
For full details and usage, see xnSaveSkeletonCalibrationDataXnStatus xn::SkeletonCapability::SaveCalibrationDataToFile | ( | XnUserID | user, |
const XnChar * | strFileName | ||
) | [inline] |
Save the calibration data to file.
For full details and usage, see xnSaveSkeletonCalibrationDataToFileXnStatus xn::SkeletonCapability::SetJointActive | ( | XnSkeletonJoint | eJoint, |
XnBool | bState | ||
) | [inline] |
Change the state of a specific joint, to be active or inactive.
For full details and usage, see xnSetJointActiveXnStatus xn::SkeletonCapability::SetSkeletonProfile | ( | XnSkeletonProfile | eProfile | ) | [inline] |
Set the profile. this will set some joints to be active, and others to be inactive.
For full details and usage, see xnSetSkeletonProfileXnStatus xn::SkeletonCapability::SetSmoothing | ( | XnFloat | fSmoothingFactor | ) | [inline] |
Set the skeleton's smoothing factor.
For full details and usage, see xnSetSkeletonSmoothingXnStatus xn::SkeletonCapability::StartTracking | ( | XnUserID | user | ) | [inline] |
Start tracking a skeleton.
For full details and usage, see xnStartSkeletonTrackingXnStatus xn::SkeletonCapability::StopTracking | ( | XnUserID | user | ) | [inline] |
Stop tracking a skeleton.
For full details and usage, see xnStopSkeletonTrackingvoid xn::SkeletonCapability::UnregisterCalibrationCallbacks | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from calibration callbacks.
For full details and usage, see xnUnregisterCalibrationCallbacksvoid xn::SkeletonCapability::UnregisterFromCalibrationComplete | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from calibration complete with status.
For full details and usage, see xnUnregisterFromCalibrationCompletevoid xn::SkeletonCapability::UnregisterFromCalibrationInProgress | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from calibration status while in progress.
For full details and usage, see xnUnregisterFromCalibrationInProgressXnStatus xn::SkeletonCapability::UnregisterFromCalibrationStart | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from calibration start callback.
For full details and usage, see xnUnregisterFromCalibrationStart.Note: due to history constraints, this function has an XnStatus return value. In practice, it will always succeed. The user can safely ignore the return value.
void xn::SkeletonCapability::UnregisterFromJointConfigurationChange | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregister from joint configuration changes.
For full details and usage, see xnUnregisterFromJointConfigurationChange