22 #ifndef __XN_CPP_WRAPPER_H__
23 #define __XN_CPP_WRAPPER_H__
80 Version(XnUInt8 nMajor, XnUInt8 nMinor, XnUInt16 nMaintenance, XnUInt32 nBuild)
168 inline const XnUInt8*
Data()
const {
return *m_ppData; }
170 inline const XnUInt8*&
Data() {
return *m_ppData; }
186 if (nBytes > m_nAllocatedSize)
195 m_nAllocatedSize = nBytes;
209 if (m_nAllocatedSize != 0)
213 m_nAllocatedSize = 0;
228 const XnUInt8* pOrigData = *m_ppData;
233 if (pOrigData != NULL)
252 const XnUInt8** m_ppData;
253 XnUInt32 m_nAllocatedSize;
277 inline XnUInt32
XRes()
const {
return m_map.
Res.
X; }
282 inline XnUInt32
YRes()
const {
return m_map.
Res.
Y; }
307 inline XnUInt32
FPS()
const {
return m_map.
nFPS; }
373 if (pExternalBuffer == NULL)
383 Data() = pExternalBuffer;
403 #define _XN_DECLARE_MAP_DATA_CLASS(_name, _pixelType) \
407 inline _name(_pixelType*& pData, XnUInt32& nXRes, XnUInt32 &nYRes) : \
408 m_pData(pData), m_nXRes(nXRes), m_nYRes(nYRes) {} \
410 inline XnUInt32 XRes() const { return m_nXRes; } \
411 inline XnUInt32 YRes() const { return m_nYRes; } \
413 inline const _pixelType& operator[](XnUInt32 nIndex) const \
415 XN_ASSERT(nIndex < (m_nXRes * m_nYRes)); \
416 return m_pData[nIndex]; \
418 inline _pixelType& operator[](XnUInt32 nIndex) \
420 XN_ASSERT(nIndex < (m_nXRes *m_nYRes)); \
421 return m_pData[nIndex]; \
424 inline const _pixelType& operator()(XnUInt32 x, XnUInt32 y) const \
426 XN_ASSERT(x < m_nXRes && y < m_nYRes); \
427 return m_pData[y*m_nXRes + x]; \
429 inline _pixelType& operator()(XnUInt32 x, XnUInt32 y) \
431 XN_ASSERT(x < m_nXRes && y < m_nYRes); \
432 return m_pData[y*m_nXRes + x]; \
437 _name(const _name& other); \
438 _name& operator=(const _name&); \
440 _pixelType*& m_pData; \
446 _XN_DECLARE_MAP_DATA_CLASS(ImageMap, XnUInt8);
450 _XN_DECLARE_MAP_DATA_CLASS(IRMap,
XnIRPixel);
451 _XN_DECLARE_MAP_DATA_CLASS(LabelMap,
XnLabel);
494 return ReAdjust(nXRes, nYRes, pExternalBuffer);
529 inline const xn::DepthMap&
DepthMap()
const {
return m_depthMap; }
534 return m_writableDepthMap;
544 XN_ASSERT(nIndex < (
XRes()*
YRes()));
545 return Data()[nIndex];
556 XN_ASSERT(x <
XRes() && y <
YRes());
571 const xn::DepthMap m_depthMap;
572 xn::DepthMap m_writableDepthMap;
717 inline const xn::ImageMap&
ImageMap()
const {
return m_imageMap; }
722 inline const xn::RGB24Map&
RGB24Map()
const {
return m_rgb24Map; }
727 inline const xn::Grayscale8Map&
Grayscale8Map()
const {
return m_gray8Map; }
747 const xn::ImageMap m_imageMap;
748 xn::ImageMap m_writableImageMap;
749 const xn::RGB24Map m_rgb24Map;
750 xn::RGB24Map m_writableRgb24Map;
751 const xn::Grayscale16Map m_gray16Map;
752 xn::Grayscale16Map m_writableGray16Map;
753 const xn::Grayscale8Map m_gray8Map;
754 xn::Grayscale8Map m_writableGray8Map;
788 return ReAdjust(nXRes, nYRes, pExternalBuffer);
814 inline const xn::IRMap&
IRMap()
const {
return m_irMap; }
829 const xn::IRMap m_irMap;
830 xn::IRMap m_writableIRMap;
917 return ReAdjust(nXRes, nYRes, pExternalBuffer);
943 inline const xn::LabelMap&
LabelMap()
const {
return m_labelMap; }
954 XN_ASSERT(nIndex < (
XRes()*
YRes()));
955 return Data()[nIndex];
966 XN_ASSERT(x <
XRes() && y <
YRes());
967 return (*
this)[y*
XRes() + x];
981 const xn::LabelMap m_labelMap;
982 xn::LabelMap m_writableLabelMap;
1071 inline void XN_API_DEPRECATED(
"Please use Release() instead.")
Unref() {
Release(); }
1076 if (m_hNode == hNode)
1083 if (m_hNode != NULL)
1122 static void XN_CALLBACK_TYPE ContextShuttingDownCallback(
XnContext* ,
void* pCookie)
1125 pThis->m_hNode = NULL;
1147 SetUnderlyingObject(pInfo);
1158 SetUnderlyingObject(other.m_pInfo);
1164 SetUnderlyingObject(NULL);
1174 SetUnderlyingObject(other.m_pInfo);
1238 inline void SetUnderlyingObject(
XnNodeInfo* pInfo);
1242 XnBool m_bOwnerOfNode;
1363 XnBool m_bAllocated;
1452 UpdateInternalObject(it);
1465 m_Info = NodeInfo(NULL);
1479 m_bAllocated =
TRUE;
1509 m_bAllocated =
TRUE;
1527 return xnNodeInfoListAddEx(m_pList, &description, strCreationInfo, pList, pAdditionalData, pFreeHandler);
1610 inline void FreeImpl()
1615 m_bAllocated =
FALSE;
1621 XnBool m_bAllocated;
1703 inline void GetRange(XnInt32& nMin, XnInt32& nMax, XnInt32& nStep, XnInt32& nDefault, XnBool& bIsAutoSupported)
const
1737 const XnChar* m_strCap;
3288 inline XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize,
const XnUInt8* pImageMap)
3525 GestureCookie* pGestureCookie;
3527 pGestureCookie->recognizedHandler = RecognizedCB;
3528 pGestureCookie->progressHandler = ProgressCB;
3529 pGestureCookie->pUserCookie = pCookie;
3538 hCallback = pGestureCookie;
3548 GestureCookie* pGestureCookie = (GestureCookie*)hCallback;
3585 GestureIntermediateStageCompletedCookie* pGestureCookie;
3587 pGestureCookie->handler = handler;
3588 pGestureCookie->pUserCookie = pCookie;
3597 hCallback = pGestureCookie;
3606 GestureIntermediateStageCompletedCookie* pGestureCookie = (GestureIntermediateStageCompletedCookie*)hCallback;
3627 GestureReadyForNextIntermediateStageCookie* pGestureCookie;
3629 pGestureCookie->handler = handler;
3630 pGestureCookie->pUserCookie = pCookie;
3639 hCallback = pGestureCookie;
3649 GestureReadyForNextIntermediateStageCookie* pGestureCookie = (GestureReadyForNextIntermediateStageCookie*)hCallback;
3655 typedef struct GestureCookie
3663 static void XN_CALLBACK_TYPE GestureRecognizedCallback(
XnNodeHandle hNode,
const XnChar* strGesture,
const XnPoint3D* pIDPosition,
const XnPoint3D* pEndPosition,
void* pCookie)
3665 GestureCookie* pGestureCookie = (GestureCookie*)pCookie;
3667 if (pGestureCookie->recognizedHandler != NULL)
3669 pGestureCookie->recognizedHandler(gen, strGesture, pIDPosition, pEndPosition, pGestureCookie->pUserCookie);
3673 static void XN_CALLBACK_TYPE GestureProgressCallback(
XnNodeHandle hNode,
const XnChar* strGesture,
const XnPoint3D* pPosition, XnFloat fProgress,
void* pCookie)
3675 GestureCookie* pGestureCookie = (GestureCookie*)pCookie;
3677 if (pGestureCookie->progressHandler != NULL)
3679 pGestureCookie->progressHandler(gen, strGesture, pPosition, fProgress, pGestureCookie->pUserCookie);
3683 typedef struct GestureIntermediateStageCompletedCookie
3688 } GestureIntermediateStageCompletedCookie;
3690 static void XN_CALLBACK_TYPE GestureIntermediateStageCompletedCallback(
XnNodeHandle hNode,
const XnChar* strGesture,
const XnPoint3D* pPosition,
void* pCookie)
3692 GestureIntermediateStageCompletedCookie* pGestureCookie = (GestureIntermediateStageCompletedCookie*)pCookie;
3694 if (pGestureCookie->handler != NULL)
3696 pGestureCookie->handler(gen, strGesture, pPosition, pGestureCookie->pUserCookie);
3700 typedef struct GestureReadyForNextIntermediateStageCookie
3705 } GestureReadyForNextIntermediateStageCookie;
3707 static void XN_CALLBACK_TYPE GestureReadyForNextIntermediateStageCallback(
XnNodeHandle hNode,
const XnChar* strGesture,
const XnPoint3D* pPosition,
void* pCookie)
3709 GestureReadyForNextIntermediateStageCookie* pGestureCookie = (GestureReadyForNextIntermediateStageCookie*)pCookie;
3711 if (pGestureCookie->handler != NULL)
3713 pGestureCookie->handler(gen, strGesture, pPosition, pGestureCookie->pUserCookie);
3796 HandTouchingFOVEdgeCookie* pHandCookie;
3798 pHandCookie->handler = handler;
3799 pHandCookie->pUserCookie = pCookie;
3808 hCallback = pHandCookie;
3818 HandTouchingFOVEdgeCookie* pHandCookie = (HandTouchingFOVEdgeCookie*)hCallback;
3823 typedef struct HandTouchingFOVEdgeCookie
3828 } HandTouchingFOVEdgeCookie;
3832 HandTouchingFOVEdgeCookie* pHandCookie = (HandTouchingFOVEdgeCookie*)pCookie;
3834 if (pHandCookie->handler != NULL)
3836 pHandCookie->handler(cap, user, pPosition, fTime, eDir, pHandCookie->pUserCookie);
3898 HandCookie* pHandCookie;
3900 pHandCookie->createHandler = CreateCB;
3901 pHandCookie->updateHandler = UpdateCB;
3902 pHandCookie->destroyHandler = DestroyCB;
3903 pHandCookie->pUserCookie = pCookie;
3912 hCallback = pHandCookie;
3922 HandCookie* pHandCookie = (HandCookie*)hCallback;
3980 typedef struct HandCookie
3991 HandCookie* pHandCookie = (HandCookie*)pCookie;
3993 if (pHandCookie->createHandler != NULL)
3995 pHandCookie->createHandler(gen, user, pPosition, fTime, pHandCookie->pUserCookie);
4000 HandCookie* pHandCookie = (HandCookie*)pCookie;
4002 if (pHandCookie->updateHandler != NULL)
4004 pHandCookie->updateHandler(gen, user, pPosition, fTime, pHandCookie->pUserCookie);
4007 static void XN_CALLBACK_TYPE HandDestroyCB(
XnNodeHandle hNode,
XnUserID user, XnFloat fTime,
void* pCookie)
4009 HandCookie* pHandCookie = (HandCookie*)pCookie;
4011 if (pHandCookie->destroyHandler != NULL)
4013 pHandCookie->destroyHandler(gen, user, fTime, pHandCookie->pUserCookie);
4068 XN_API_DEPRECATED(
"Use the version with one argument")
4292 SkeletonCookie* pSkeletonCookie;
4294 pSkeletonCookie->startHandler = CalibrationStartCB;
4295 pSkeletonCookie->endHandler = CalibrationEndCB;
4296 pSkeletonCookie->pUserCookie = pCookie;
4298 #pragma warning (push)
4299 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
4301 #pragma warning (pop)
4308 hCallback = pSkeletonCookie;
4318 SkeletonCookie* pSkeletonCookie = (SkeletonCookie*)hCallback;
4319 #pragma warning (push)
4320 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
4322 #pragma warning (pop)
4332 CalibrationStartCookie* pCalibrationCookie;
4334 pCalibrationCookie->handler = handler;
4335 pCalibrationCookie->pUserCookie = pCookie;
4342 hCallback = pCalibrationCookie;
4350 CalibrationStartCookie* pCalibrationCookie = (CalibrationStartCookie*)hCallback;
4373 CalibrationInProgressCookie* pSkeletonCookie;
4375 pSkeletonCookie->handler = handler;
4376 pSkeletonCookie->pUserCookie = pCookie;
4385 hCallback = pSkeletonCookie;
4395 CalibrationInProgressCookie* pSkeletonCookie = (CalibrationInProgressCookie*)hCallback;
4416 CalibrationCompleteCookie* pSkeletonCookie;
4418 pSkeletonCookie->handler = handler;
4419 pSkeletonCookie->pUserCookie = pCookie;
4428 hCallback = pSkeletonCookie;
4438 CalibrationCompleteCookie* pSkeletonCookie = (CalibrationCompleteCookie*)hCallback;
4443 typedef struct SkeletonCookie
4451 static void XN_CALLBACK_TYPE CalibrationStartBundleCallback(
XnNodeHandle hNode,
XnUserID user,
void* pCookie)
4453 SkeletonCookie* pSkeletonCookie = (SkeletonCookie*)pCookie;
4455 if (pSkeletonCookie->startHandler != NULL)
4457 pSkeletonCookie->startHandler(cap, user, pSkeletonCookie->pUserCookie);
4461 static void XN_CALLBACK_TYPE CalibrationEndBundleCallback(
XnNodeHandle hNode,
XnUserID user, XnBool bSuccess,
void* pCookie)
4463 SkeletonCookie* pSkeletonCookie = (SkeletonCookie*)pCookie;
4465 if (pSkeletonCookie->endHandler != NULL)
4467 pSkeletonCookie->endHandler(cap, user, bSuccess, pSkeletonCookie->pUserCookie);
4470 typedef struct CalibrationStartCookie
4475 } CalibrationStartCookie;
4477 static void XN_CALLBACK_TYPE CalibrationStartCallback(
XnNodeHandle hNode,
XnUserID user,
void* pCookie)
4479 CalibrationStartCookie* pCalibrationCookie = (CalibrationStartCookie*)pCookie;
4481 if (pCalibrationCookie->handler != NULL)
4483 pCalibrationCookie->handler(cap, user, pCalibrationCookie->pUserCookie);
4486 typedef struct CalibrationInProgressCookie
4491 } CalibrationInProgressCookie;
4495 CalibrationInProgressCookie* pSkeletonCookie = (CalibrationInProgressCookie*)pCookie;
4497 if (pSkeletonCookie->handler != NULL)
4499 pSkeletonCookie->handler(cap, user, calibrationError, pSkeletonCookie->pUserCookie);
4503 typedef struct CalibrationCompleteCookie
4508 } CalibrationCompleteCookie;
4512 CalibrationCompleteCookie* pSkeletonCookie = (CalibrationCompleteCookie*)pCookie;
4514 if (pSkeletonCookie->handler != NULL)
4516 pSkeletonCookie->handler(cap, user, calibrationError, pSkeletonCookie->pUserCookie);
4592 PoseCookie* pPoseCookie;
4594 pPoseCookie->startHandler = PoseStartCB;
4595 pPoseCookie->endHandler = PoseEndCB;
4596 pPoseCookie->pPoseCookie = pCookie;
4598 #pragma warning (push)
4599 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
4601 #pragma warning (pop)
4608 hCallback = pPoseCookie;
4618 PoseCookie* pPoseCookie = (PoseCookie*)hCallback;
4619 #pragma warning (push)
4620 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
4622 #pragma warning (pop)
4632 PoseDetectionCookie* pPoseCookie;
4634 pPoseCookie->handler = handler;
4635 pPoseCookie->pPoseCookie = pCookie;
4643 hCallback = pPoseCookie;
4652 PoseDetectionCookie* pPoseCookie;
4654 pPoseCookie->handler = handler;
4655 pPoseCookie->pPoseCookie = pCookie;
4663 hCallback = pPoseCookie;
4671 PoseDetectionCookie* pPoseCookie = (PoseDetectionCookie*)hCallback;
4680 PoseDetectionCookie* pPoseCookie = (PoseDetectionCookie*)hCallback;
4702 PoseInProgressCookie* pPoseCookie;
4704 pPoseCookie->handler = handler;
4705 pPoseCookie->pPoseCookie = pCookie;
4714 hCallback = pPoseCookie;
4724 PoseInProgressCookie* pPoseCookie = (PoseInProgressCookie*)hCallback;
4730 typedef struct PoseCookie
4738 static void XN_CALLBACK_TYPE PoseDetectionStartBundleCallback(
XnNodeHandle hNode,
const XnChar* strPose,
XnUserID user,
void* pCookie)
4740 PoseCookie* pPoseCookie = (PoseCookie*)pCookie;
4742 if (pPoseCookie->startHandler != NULL)
4744 pPoseCookie->startHandler(cap, strPose, user, pPoseCookie->pPoseCookie);
4748 static void XN_CALLBACK_TYPE PoseDetectionStartEndBundleCallback(
XnNodeHandle hNode,
const XnChar* strPose,
XnUserID user,
void* pCookie)
4750 PoseCookie* pPoseCookie = (PoseCookie*)pCookie;
4752 if (pPoseCookie->endHandler != NULL)
4754 pPoseCookie->endHandler(cap, strPose, user, pPoseCookie->pPoseCookie);
4757 typedef struct PoseDetectionCookie
4762 } PoseDetectionCookie;
4763 static void XN_CALLBACK_TYPE PoseDetectionCallback(
XnNodeHandle hNode,
const XnChar* strPose,
XnUserID user,
void* pCookie)
4765 PoseDetectionCookie* pPoseDetectionCookie = (PoseDetectionCookie*)pCookie;
4767 if (pPoseDetectionCookie->handler != NULL)
4769 pPoseDetectionCookie->handler(cap, strPose, user, pPoseDetectionCookie->pPoseCookie);
4773 typedef struct PoseInProgressCookie
4778 } PoseInProgressCookie;
4782 PoseInProgressCookie* pPoseCookie = (PoseInProgressCookie*)pCookie;
4784 if (pPoseCookie->handler != NULL)
4786 pPoseCookie->handler(cap, strPose, user, poseErrors, pPoseCookie->pPoseCookie);
4852 UserCookie* pUserCookie;
4854 pUserCookie->newHandler = NewUserCB;
4855 pUserCookie->lostHandler = LostUserCB;
4856 pUserCookie->pUserCookie = pCookie;
4865 hCallback = pUserCookie;
4875 UserCookie* pUserCookie = (UserCookie*)hCallback;
4927 UserSingleCookie* pUserCookie;
4929 pUserCookie->handler = handler;
4930 pUserCookie->pUserCookie = pCookie;
4939 hCallback = pUserCookie;
4949 UserSingleCookie* pUserCookie = (UserSingleCookie*)hCallback;
4961 UserSingleCookie* pUserCookie;
4963 pUserCookie->handler = handler;
4964 pUserCookie->pUserCookie = pCookie;
4973 hCallback = pUserCookie;
4983 UserSingleCookie* pUserCookie = (UserSingleCookie*)hCallback;
4989 typedef struct UserCookie
4999 UserCookie* pUserCookie = (UserCookie*)pCookie;
5001 if (pUserCookie->newHandler != NULL)
5003 pUserCookie->newHandler(gen, user, pUserCookie->pUserCookie);
5007 static void XN_CALLBACK_TYPE LostUserCallback(
XnNodeHandle hNode,
XnUserID user,
void* pCookie)
5009 UserCookie* pUserCookie = (UserCookie*)pCookie;
5011 if (pUserCookie->lostHandler != NULL)
5013 pUserCookie->lostHandler(gen, user, pUserCookie->pUserCookie);
5017 typedef struct UserSingleCookie
5024 static void XN_CALLBACK_TYPE UserSingleCallback(
XnNodeHandle hNode,
XnUserID user,
void* pCookie)
5026 UserSingleCookie* pUserCookie = (UserSingleCookie*)pCookie;
5028 if (pUserCookie->handler != NULL)
5030 pUserCookie->handler(gen, user, pUserCookie->pUserCookie);
5154 inline XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize,
const XnUInt8* pAudioBuffer)
5190 inline XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize,
const void* pData)
5228 inline XnStatus EncodeData(
const void* pSrc, XnUInt32 nSrcSize,
void* pDst, XnUInt32 nDstSize, XnUInt* pnBytesWritten)
const
5236 inline XnStatus DecodeData(
const void* pSrc, XnUInt32 nSrcSize,
void* pDst, XnUInt32 nDstSize, XnUInt* pnBytesWritten)
const
5312 return m_it == other.m_it;
5322 return m_it != other.m_it;
5377 m_bAllocated =
FALSE;
5386 XnBool m_bAllocated;
5401 inline Context() : m_pContext(NULL), m_bUsingDeprecatedAPI(
FALSE), m_bAllocated(
FALSE), m_hShuttingDownCallback(NULL) {}
5419 inline Context(
const Context& other) : m_pContext(NULL), m_bUsingDeprecatedAPI(
FALSE), m_bAllocated(
FALSE), m_hShuttingDownCallback(NULL)
5449 m_bAllocated =
TRUE;
5459 m_bUsingDeprecatedAPI =
TRUE;
5460 #pragma warning (push)
5461 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
5462 return xnContextRunXmlScript(m_pContext, strScript, pErrors == NULL ? NULL : pErrors->GetUnderlying());
5463 #pragma warning (pop)
5474 nRetVal =
xnContextRunXmlScriptEx(m_pContext, strScript, pErrors == NULL ? NULL : pErrors->GetUnderlying(), &hScriptNode);
5487 m_bUsingDeprecatedAPI =
TRUE;
5488 #pragma warning (push)
5489 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
5491 #pragma warning (pop)
5516 m_bUsingDeprecatedAPI =
TRUE;
5518 #pragma warning (push)
5519 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
5521 #pragma warning (pop)
5525 m_bAllocated =
TRUE;
5543 m_bAllocated =
TRUE;
5553 m_bUsingDeprecatedAPI =
TRUE;
5554 #pragma warning (push)
5555 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
5557 #pragma warning (pop)
5643 inline void XN_API_DEPRECATED(
"You may use Release() instead, or count on dtor")
Shutdown()
5645 if (m_pContext != NULL)
5647 #pragma warning (push)
5648 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
5650 #pragma warning (pop)
5689 nRetVal =
xnEnumerateProductionTrees(m_pContext, Type, pInternalQuery, &pList, pErrors == NULL ? NULL : pErrors->GetUnderlying());
5707 nRetVal =
xnCreateAnyProductionTree(m_pContext, type, pInternalQuery, &hNode, pErrors == NULL ? NULL : pErrors->GetUnderlying());
5726 Tree.m_bOwnerOfNode =
TRUE;
5925 if (m_pContext == pContext)
5930 if (m_pContext != NULL)
5932 if (m_bUsingDeprecatedAPI && m_bAllocated)
5945 if (pContext != NULL)
5954 m_pContext = pContext;
5961 if (pContext != NULL)
5968 static void XN_CALLBACK_TYPE ContextShuttingDownCallback(
XnContext* ,
void* pCookie)
5971 pThis->m_pContext = NULL;
5975 XnBool m_bUsingDeprecatedAPI;
5976 XnBool m_bAllocated;
6005 inline Resolution(XnUInt32 xRes, XnUInt32 yRes) : m_nXRes(xRes), m_nYRes(yRes)
6031 inline const XnChar*
GetName()
const {
return m_strName; }
6037 const XnChar* m_strName;
6055 if (m_pNeededNodes == NULL)
6061 return *m_pNeededNodes;
6064 inline void NodeInfo::SetUnderlyingObject(
XnNodeInfo* pInfo)
6066 if (m_pNeededNodes != NULL)
6071 m_bOwnerOfNode =
FALSE;
6073 m_pNeededNodes = NULL;
6098 if (m_pInfo == NULL)
6100 return XN_STATUS_INVALID_OPERATION;
6344 return xnFunc(hNode, StateChangedCallback,
this, &m_hCallback);
6349 xnFunc(hNode, m_hCallback);
6359 nRetVal = pTrans->
Register(xnFunc, hNode);
6382 typedef struct StateChangeCookie
6387 } StateChangeCookie;
6389 static void XN_CALLBACK_TYPE StateChangedCallback(
XnNodeHandle hNode,
void* pCookie)
6393 pTrans->m_UserHandler(node, pTrans->m_pUserCookie);
6397 void* m_pUserCookie;
6440 #endif // __XN_CPP_WRAPPER_H__
Definition: XnTypes.h:482
const PoseDetectionCapability GetPoseDetectionCap() const
Definition: XnCppWrapper.h:4905
XN_C_API XnNodeHandle XN_C_DECL xnNodeInfoGetRefHandle(XnNodeInfo *pNodeInfo)
XN_C_API XnStatus XN_C_DECL xnContextRunXmlScriptEx(XnContext *pContext, const XnChar *xmlScript, XnEnumerationErrors *pErrors, XnNodeHandle *phScriptNode)
Runs an XML script in the given context.
XN_C_API void XN_C_DECL xnNodeInfoListFree(XnNodeInfoList *pList)
Represents an iterator over a NodeInfoList list.
Definition: XnCppWrapper.h:1378
XN_C_API XnStatus XN_C_DECL xnRegisterCalibrationCallbacks(XnNodeHandle hInstance, XnCalibrationStart CalibrationStartCB, XnCalibrationEnd CalibrationEndCB, void *pCookie, XnCallbackHandle *phCallback)
Register to calibration callbacks.
XN_C_API XnStatus XN_C_DECL xnGetVersion(XnVersion *pVersion)
XN_C_API XnStatus XN_C_DECL xnSetGeneralIntValue(XnNodeHandle hNode, const XnChar *strCap, XnInt32 nValue)
Sets the current value of this capability.
XnStatus ConvertProjectiveToRealWorld(XnUInt32 nCount, const XnPoint3D aProjective[], XnPoint3D aRealWorld[]) const
Converts a list of points from projective coordinates to real world coordinates. For full details and...
Definition: XnCppWrapper.h:3049
SkeletonCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:4031
XN_C_API const void *XN_C_DECL xnNodeInfoGetAdditionalData(XnNodeInfo *pNodeInfo)
XnStatus SetData(const IRMetaData &irMD)
Definition: XnCppWrapper.h:3408
Definition: XnCppWrapper.h:2606
XnUInt32 GetSupportedWaveOutputModesCount() const
For full details and usage, see xnGetSupportedWaveOutputModesCount
Definition: XnCppWrapper.h:5074
XnNodeHandle GetHandle() const
Gets the underlying C handle.
Definition: XnCppWrapper.h:1027
XN_C_API XnUInt32 XN_C_DECL xnGetNumberOfPoses(XnNodeHandle hInstance)
Get the number of the supported poses.
AlternativeViewPointCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:2049
XN_C_API XnUInt32 XN_C_DECL xnGetFrameID(XnNodeHandle hInstance)
Gets the frame ID of current data.
XnBool IsValid() const
TRUE if the object points to an actual node, FALSE otherwise.
Definition: XnCppWrapper.h:1050
XnStatus SetData(const ImageMetaData &imageMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
Definition: XnCppWrapper.h:3300
XnStatus RegisterToFrameSyncChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to view point changes. For full details and usage, see xnRegisterToFram...
Definition: XnCppWrapper.h:2139
void Unregister(_XnUnregisterStateChangeFuncPtr xnFunc, XnNodeHandle hNode)
Definition: XnCppWrapper.h:6347
XN_C_API void XN_C_DECL xnUnregisterFromCalibrationStart(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from calibration start callback.
XN_C_API XnBool XN_C_DECL xnCanFrameSyncWith(XnNodeHandle hInstance, XnNodeHandle hOther)
Checks if this generator can frame sync to another node.
XnStatus SetWaveOutputMode(const XnWaveOutputMode &OutputMode)
For full details and usage, see xnSetWaveOutputMode
Definition: XnCppWrapper.h:5090
XN_C_API XnStatus XN_C_DECL xnGetAllActiveGestures(XnNodeHandle hInstance, XnChar **pstrGestures, XnUInt32 nNameLength, XnUInt16 *nGestures)
Get the names of the gestures that are currently active.
XN_C_API XnStatus XN_C_DECL xnRegisterToUserReEnter(XnNodeHandle hInstance, XnUserHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when a user re-enters the scene after exiting.
XN_C_API XnStatus XN_C_DECL xnLoadScriptFromFile(XnNodeHandle hScript, const XnChar *strFileName)
XnBool NeedPoseForCalibration() const
Check if a specific pose is required for calibration. For full details and usage, see xnNeedPoseForSk...
Definition: XnCppWrapper.h:4246
#define XN_CAPABILITY_BACKLIGHT_COMPENSATION
Definition: XnTypes.h:310
XnStatus RequestCalibration(XnUserID user, XnBool bForce)
Request calibration when possible. For full details and usage, see xnRequestSkeletonCalibration ...
Definition: XnCppWrapper.h:4158
Query()
Ctor.
Definition: XnCppWrapper.h:1259
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetCreationInfo(XnNodeQuery *pQuery, const XnChar *strCreationInfo)
void GetVersion(XnVersion &Version)
For full details and usage, see xnGetVersion
Definition: XnCppWrapper.h:6328
XN_C_API XnStatus XN_C_DECL xnLockedNodeStartChanges(XnNodeHandle hInstance, XnLockHandle hLock)
Start changes request on a locked node, without releasing that lock.
SceneAnalyzer(const NodeWrapper &other)
Definition: XnCppWrapper.h:3731
XN_C_API XnBool XN_C_DECL xnIsJointAvailable(XnNodeHandle hInstance, XnSkeletonJoint eJoint)
Check if generator supports a specific joint.
XN_C_API XnStatus XN_C_DECL xnRecord(XnNodeHandle hRecorder)
Records one frame of data from each node that was added to the recorder with xnAddNodeToRecording.
XnUInt32 XnUserID
Definition: XnTypes.h:525
MockRawGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5185
XN_C_API XnStatus XN_C_DECL xnWaitAnyUpdateAll(XnContext *pContext)
Updates all generators nodes in the context, once any of them have new data.
Definition: XnTypes.h:112
XnStatus GetGlobalErrorState()
Gets the global error state of the context. If one of the nodes in the context is in error state...
Definition: XnCppWrapper.h:5860
XnStatus SetSource(XnRecordMedium sourceType, const XnChar *strSource)
Sets the source for the player, i.e. where the played events will come from. For full details and usa...
Definition: XnCppWrapper.h:2430
XN_C_API XnStatus XN_C_DECL xnCreateMockNode(XnContext *pContext, XnProductionNodeType type, const XnChar *strName, XnNodeHandle *phNode)
Creates a production node which is only a mock. This node does not represent an actual node...
SceneAnalyzer(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3730
XnStatus ClearCalibrationData(XnUInt32 nSlot)
Clear the requested slot from any saved calibration data. For full details and usage, see xnClearSkeletonCalibrationData
Definition: XnCppWrapper.h:4206
GeneralIntCapability GetHueCap()
Definition: XnCppWrapper.h:2766
XnStatus SetSmoothing(XnFloat fSmoothingFactor)
Change smoothing factor. For full details and usage, see xnSetTrackingSmoothing
Definition: XnCppWrapper.h:3954
XN_C_API XnInt32 XN_C_DECL xnVersionCompare(const XnVersion *pVersion1, const XnVersion *pVersion2)
XnStatus RunXmlScriptFromFile(const XnChar *strFileName, EnumerationErrors *pErrors=NULL)
Runs an XML script in the given context. NOTE: when using this function, the context will be the owne...
Definition: XnCppWrapper.h:5485
void UnregisterHandCallbacks(XnCallbackHandle hCallback)
Unregister from hands callbacks. For full details and usage, see xnUnregisterHandCallbacks ...
Definition: XnCppWrapper.h:3920
XN_C_API XnUInt32 XN_C_DECL xnGetSupportedMapOutputModesCount(XnNodeHandle hInstance)
Gets the number of supported modes. This is useful for allocating an array that will be passed to xnG...
XN_C_API XnNodeInfoListIterator XN_C_DECL xnNodeInfoListGetPrevious(XnNodeInfoListIterator it)
Definition: XnCppWrapper.h:5282
XnStatus SetData(const ImageMetaData &imageMD)
Definition: XnCppWrapper.h:3310
CroppingCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2567
XnStatus SetData(const AudioMetaData &audioMD)
Definition: XnCppWrapper.h:5176
Definition: XnCppWrapper.h:2654
void(* HandDestroy)(HandsGenerator &generator, XnUserID user, XnFloat fTime, void *pCookie)
Definition: XnCppWrapper.h:3889
XN_C_API XnStatus XN_C_DECL xnGetSkeletonJoint(XnNodeHandle hInstance, XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointTransformation *pJoint)
Get a specific joint's full information.
XnStatus SetMaxVersion(const XnVersion &maxVersion)
For full details and usage, see xnNodeQuerySetMaxVersion
Definition: XnCppWrapper.h:1308
XnStatus GetCropping(XnCropping &Cropping) const
Gets current cropping configuration. For full details and usage, see xnGetCropping ...
Definition: XnCppWrapper.h:2580
XnStatus CreateMockNode(XnProductionNodeType type, const XnChar *strName, ProductionNode &mockNode)
Creates a production node which is only a mock. This node does not represent an actual node...
Definition: XnCppWrapper.h:5579
#define XN_IS_STATUS_OK(x)
Definition: XnMacros.h:60
XnStatus AddGesture(const XnChar *strGesture, XnBoundingBox3D *pArea)
Turn on gesture. The generator will now look for this gesture. For full details and usage...
Definition: XnCppWrapper.h:3437
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a user generator. For full details and usage, see xnCreateUserGenerator
Definition: XnCppWrapper.h:6260
NodeWrapper(XnNodeHandle hNode)
Definition: XnCppWrapper.h:1003
XN_C_API XnStatus XN_C_DECL xnStopPoseDetection(XnNodeHandle hInstance, XnUserID user)
Stop detection of poses for a specific user.
XnStatus GetSkeletonJointOrientation(XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointOrientation &Joint) const
Get a specific joint's orientation. For full details and usage, see xnGetSkeletonJointOrientation ...
Definition: XnCppWrapper.h:4125
XnStatus LockForChanges(XnLockHandle *phLock)
Locks a node, not allowing any changes (any "set" function). For full details and usage...
Definition: XnCppWrapper.h:1856
XN_C_API XnStatus XN_C_DECL xnRegisterToMirrorChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to mirror changes.
XN_C_API XnStatus XN_C_DECL xnSetPowerLineFrequency(XnNodeHandle hGenerator, XnPowerLineFrequency nFrequency)
Sets the power line frequency: 50 Hz, 60 Hz, or 0 to turn off anti-flicker.
#define XN_CAPABILITY_GAMMA
Definition: XnTypes.h:308
GeneralIntCapability GetFocusCap()
Definition: XnCppWrapper.h:2896
XnStatus FrameSyncWith(Generator &other)
Activates frame sync with the other node. For full details and usage, see xnFrameSyncWith ...
Definition: XnCppWrapper.h:6081
XN_C_API XnBool XN_C_DECL xnIsGestureAvailable(XnNodeHandle hInstance, const XnChar *strGesture)
Check if a specific gesture is available in this generator.
XN_C_API XnStatus XN_C_DECL xnGetNodeErrorState(XnNodeHandle hInstance)
Gets current error state of this node.
XnStatus Error()
Gets the failure error code of the failing node this iterator points to.
Definition: XnCppWrapper.h:5347
XN_C_API XnStatus XN_C_DECL xnEnumerateProductionTrees(XnContext *pContext, XnProductionNodeType Type, const XnNodeQuery *pQuery, XnNodeInfoList **ppTreesList, XnEnumerationErrors *pErrors)
Enumerates all available production trees for a specific node type. The trees populated in the list s...
GeneralIntCapability GetSaturationCap()
Definition: XnCppWrapper.h:2776
XnBool IsDataNew() const
Checks whether current data is new. Meaning, did the data change on the last call to xnWaitAndUpdateA...
Definition: XnCppWrapper.h:2243
void UnregisterFromErrorStateChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToNodeErrorStateChange(). For full details and usage, see xnUnregisterFromNodeErrorStateChange
Definition: XnCppWrapper.h:1678
struct XnEnumerationErrors XnEnumerationErrors
Definition: XnTypes.h:214
#define XN_VALIDATE_ALLOC_PTR(x)
Definition: XnOS.h:132
XnStatus GetCalibrationPose(XnChar *strPose) const
Get the pose that is required for calibration. For full details and usage, see xnGetSkeletonCalibrati...
Definition: XnCppWrapper.h:4254
XN_C_API void XN_C_DECL xnUnregisterFromPoseCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from pose events.
XnStatus RegisterToOutOfPose(PoseDetection handler, void *pCookie, XnCallbackHandle &hCallback)
Register to callback when a use is no longer in pose. For full details and usage, see xnRegisterToOut...
Definition: XnCppWrapper.h:4649
XnStatus StopTracking(XnUserID user)
Stop tracking a skeleton. For full details and usage, see xnStopSkeletonTracking
Definition: XnCppWrapper.h:4230
const AlternativeViewPointCapability GetAlternativeViewPointCap() const
Definition: XnCppWrapper.h:2305
Resolution(XnResolution res)
Definition: XnCppWrapper.h:5992
XN_C_API XnStatus XN_C_DECL xnRegisterToCalibrationInProgress(XnNodeHandle hInstance, XnCalibrationInProgress handler, void *pCookie, XnCallbackHandle *phCallback)
Register to calibration status while calibration is in progress.
const XnGrayscale8Pixel * GetGrayscale8ImageMap() const
Gets the current Grayscale8 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in Grayscale8 pixel format. For full details and usage, see xnGetGrayscale8ImageMap
Definition: XnCppWrapper.h:3192
XN_C_API XnBool XN_C_DECL xnIsSkeletonCalibrating(XnNodeHandle hInstance, XnUserID user)
Check if skeleton is being calibrated.
XN_C_API XnNodeInfo *XN_C_DECL xnGetNodeInfo(XnNodeHandle hNode)
Gets information about a specific node, like its description, and dependent nodes.
Definition: XnTypes.h:261
XN_C_API XnStatus XN_C_DECL xnCopyImageMetaData(XnImageMetaData *pDestination, const XnImageMetaData *pSource)
Shallow-Copies an Image Meta Data object. Note that the data buffer is not copied, and that both object will point to the same buffer.
XN_C_API XnUInt64 XN_C_DECL xnGetTimestamp(XnNodeHandle hInstance)
Gets the timestamp of current data, in microseconds.
const XnChar * GetSupportedFormat()
Definition: XnCppWrapper.h:5257
GeneralIntCapability GetBrightnessCap()
Definition: XnCppWrapper.h:2746
#define XN_CAPABILITY_SHARPNESS
Definition: XnTypes.h:307
XnUInt32 GetYResolution() const
Gets the Y resolution.
Definition: XnCppWrapper.h:6029
XN_C_API XnStatus XN_C_DECL xnCreateDepthGenerator(XnContext *pContext, XnNodeHandle *phDepthGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates a depth generator.
XN_C_API XnStatus XN_C_DECL xnCopySceneMetaData(XnSceneMetaData *pDestination, const XnSceneMetaData *pSource)
Shallow-Copies a Scene Meta Data object. Note that the data buffer is not copied, and that both objec...
XN_C_API XnStatus XN_C_DECL xnRegisterGestureCallbacks(XnNodeHandle hInstance, XnGestureRecognized RecognizedCB, XnGestureProgress ProgressCB, void *pCookie, XnCallbackHandle *phCallback)
Register to all gesture callbacks.
Definition: XnCppWrapper.h:4525
XnBool GetGlobalMirror()
Gets the global mirror flag. For full details and usage, see xnGetGlobalMirror
Definition: XnCppWrapper.h:5852
const XnNodeQuery * GetUnderlyingObject() const
Gets the underlying C object.
Definition: XnCppWrapper.h:1278
void Release()
Releases a context object, decreasing its ref count by 1. If reference count has reached 0...
Definition: XnCppWrapper.h:5635
XN_C_API XnUInt32 XN_C_DECL xnGetSupportedWaveOutputModesCount(XnNodeHandle hInstance)
XnUInt32 XnLockHandle
Definition: XnTypes.h:87
XN_C_API const void *XN_C_DECL xnGetData(XnNodeHandle hInstance)
Gets the current data.
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6183
XnStatus AddSupportedMapOutputMode(const XnMapOutputMode &MapOutputMode)
For full details and usage, see xnNodeQueryAddSupportedMapOutputMode
Definition: XnCppWrapper.h:1324
XN_C_API void XN_C_DECL xnUnregisterFromNewDataAvailable(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToNewDataAvailable().
XnStatus EnumerateExistingNodes(NodeInfoList &list, XnProductionNodeType type) const
Gets a list of all existing node in the context. Each node that was returned increases its ref count...
Definition: XnCppWrapper.h:5764
XnStatus StopTrackingAll()
Stop tracking all hands. For full details and usage, see xnStopTrackingAll
Definition: XnCppWrapper.h:3938
void(* PoseInProgress)(PoseDetectionCapability &pose, const XnChar *strPose, XnUserID user, XnPoseDetectionStatus poseError, void *pCookie)
Definition: XnCppWrapper.h:4694
#define XN_CAPABILITY_SATURATION
Definition: XnTypes.h:306
XN_C_API XnStatus XN_C_DECL xnEnumerationErrorsToString(const XnEnumerationErrors *pErrors, XnChar *csBuffer, XnUInt32 nSize)
Definition: XnTypes.h:115
XN_C_API XnStatus XN_C_DECL xnGetAllAvailablePoses(XnNodeHandle hInstance, XnChar **pstrPoses, XnUInt32 nNameLength, XnUInt32 *pnPoses)
Get the names of the supported poses.
XnBool IsMirrored() const
Gets current mirroring configuration. For full details and usage, see xnIsMirrored ...
Definition: XnCppWrapper.h:2015
XN_C_API XnStatus XN_C_DECL xnRegisterToCroppingChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to cropping changes.
XnStatus EnumerateActiveJoints(XnSkeletonJoint *pJoints, XnUInt16 &nJoints) const
Get all active joints. For full details and usage, see xnEnumerateActiveJoints
Definition: XnCppWrapper.h:4101
Definition: XnTypes.h:492
XnStatus LoadScriptFromFile(const XnChar *strFileName)
Definition: XnCppWrapper.h:5262
bool operator==(const Version &other) const
Definition: XnCppWrapper.h:88
XN_C_API void XN_C_DECL xnUnregisterFromMapOutputModeChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToMapOutputModeChange.
XnBool operator!=(const Iterator &other) const
Definition: XnCppWrapper.h:1398
XN_C_API XnStatus XN_C_DECL xnMockIRSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnIRPixel *pData)
GeneralIntCapability GetGeneralIntCap(const XnChar *strCapability)
Definition: XnCppWrapper.h:1912
XnStatus SeekToFrame(const XnChar *strNodeName, XnInt32 nFrameOffset, XnPlayerSeekOrigin origin)
Seeks the player to a specific frame of a specific played node, so that playing will continue from th...
Definition: XnCppWrapper.h:2462
AntiFlickerCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2615
XnBool IsJointActive(XnSkeletonJoint eJoint, XnBool) const
Check if joint is currently active. For full details and usage, see xnIsJointActive ...
Definition: XnCppWrapper.h:4069
XN_C_API XnStatus XN_C_DECL xnSaveSkeletonCalibrationData(XnNodeHandle hInstance, XnUserID user, XnUInt32 nSlot)
Save the calibration data.
GeneralIntCapability GetTiltCap()
Definition: XnCppWrapper.h:2846
Definition: XnTypes.h:162
XnBool IsFrameSyncedWith(Generator &other) const
Checks if current view point is as if coming from the other node view point. For full details and usa...
Definition: XnCppWrapper.h:6091
void UnregisterFromOutOfPose(XnCallbackHandle hCallback)
Unregister from out of pose callback. For full details and usage, see xnUnregisterFromOutOfPose ...
Definition: XnCppWrapper.h:4678
XnStatus ReadNext()
Reads the next data element from the player. For full details and usage, see xnPlayerReadNext ...
Definition: XnCppWrapper.h:2446
MockImageGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3266
XnStatus ResetViewPoint()
Sets the view point of this generator to its normal one. For full details and usage, see xnResetViewPoint
Definition: XnCppWrapper.h:2071
void Shutdown()
Shuts down an OpenNI context, destroying all its nodes. Do not call any function of this context or a...
Definition: XnCppWrapper.h:5643
XnStatus EncodeData(const void *pSrc, XnUInt32 nSrcSize, void *pDst, XnUInt32 nDstSize, XnUInt *pnBytesWritten) const
For full details and usage, see xnEncodeData
Definition: XnCppWrapper.h:5228
XnBool IsViewPointSupported(ProductionNode &otherNode) const
Checks if this generator can change its output to look like it was taken from a different location...
Definition: XnCppWrapper.h:2055
ErrorStateCapability GetErrorStateCap()
Definition: XnCppWrapper.h:1900
XN_C_API void XN_C_DECL xnNodeQueryFree(XnNodeQuery *pQuery)
HandTouchingFOVEdgeCapability GetHandTouchingFOVEdgeCap()
Definition: XnCppWrapper.h:3974
XN_C_API XnStatus XN_C_DECL xnRegisterToMapOutputModeChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to mode changes.
const FrameSyncCapability GetFrameSyncCap() const
Definition: XnCppWrapper.h:2325
PoseDetectionCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:4534
Definition: XnCppWrapper.h:1993
XnStatus GetVendorSpecificData(XnChar *strBuffer, XnUInt32 nBufferSize)
For full details and usage, see xnGetVendorSpecificData
Definition: XnCppWrapper.h:1944
XN_C_API XnStatus XN_C_DECL xnRegisterToUserPositionChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to user position changes.
void Free()
For full details and usage, see xnEnumerationErrorsFree
Definition: XnCppWrapper.h:5371
Definition: XnCppWrapper.h:1648
XN_C_API XnStatus XN_C_DECL xnGetDepthFieldOfView(XnNodeHandle hInstance, XnFieldOfView *pFOV)
Gets the Field-Of-View of the depth generator, in radians.
void GetMetaData(SceneMetaData &metaData) const
Gets the current scene meta data. For full details and usage, see xnGetSceneMetaData ...
Definition: XnCppWrapper.h:3741
XnStatus RemoveGesture(const XnChar *strGesture)
Turn off gesture. The generator will no longer look for this gesture. For full details and usage...
Definition: XnCppWrapper.h:3445
XnStatus GetMapOutputMode(XnMapOutputMode &OutputMode) const
Gets the current output mode. For full details and usage, see xnGetMapOutputMode
Definition: XnCppWrapper.h:2692
XN_C_API XnStatus XN_C_DECL xnCreateSceneAnalyzer(XnContext *pContext, XnNodeHandle *phSceneAnalyzer, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an scene analyzer.
XnStatus StopTracking(XnUserID user)
Stop tracking a specific hand. For full details and usage, see xnStopTracking
Definition: XnCppWrapper.h:3930
Iterator & operator++()
Definition: XnCppWrapper.h:1407
ImageGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3158
XnPlayerSeekOrigin
Definition: XnTypes.h:510
XN_C_API XnStatus XN_C_DECL xnRegisterToNewDataAvailable(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to be called when new data is available.
void Unref()
Definition: XnCppWrapper.h:1071
XnStatus Append(NodeInfoList &other)
For full details and usage, see xnNodeInfoListAppend
Definition: XnCppWrapper.h:1591
XnStatus Record()
Records one frame of data from each node that was added to the recorder with xnAddNodeToRecording. For full details and usage, see xnRecord
Definition: XnCppWrapper.h:2393
XN_C_API void XN_C_DECL xnUnregisterFromWaveOutputModeChanges(XnNodeHandle hInstance, XnCallbackHandle hCallback)
XN_C_API XnStatus XN_C_DECL xnSetPlaybackSpeed(XnNodeHandle hInstance, XnDouble dSpeed)
Sets the playback speed, as a ratio of the time passed in the recording. A value of 1...
XN_C_API XnStatus XN_C_DECL xnCreateCodec(XnContext *pContext, XnCodecID codecID, XnNodeHandle hInitializerNode, XnNodeHandle *phCodec)
XN_C_API XnStatus XN_C_DECL xnGetPlayerNumFrames(XnNodeHandle hPlayer, const XnChar *strNodeName, XnUInt32 *pnFrames)
Retrieves the number of frames of a specific node played by a player.
#define XN_STATUS_OK
Definition: XnStatus.h:37
void UnregisterFromGestureChange(XnCallbackHandle hCallback)
Unregister from when gestures are added or removed. For full details and usage, see xnUnregisterFromG...
Definition: XnCppWrapper.h:3564
XN_C_API void XN_C_DECL xnUnregisterFromViewPointChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToViewPointChange().
CroppingCapability GetCroppingCap()
Definition: XnCppWrapper.h:2736
XN_C_API XnStatus XN_C_DECL xnRegisterToGestureReadyForNextIntermediateStage(XnNodeHandle hInstance, XnGestureReadyForNextIntermediateStage handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when a gesture is ready for its next stage (specific to the gesture)
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetExistingNodeOnly(XnNodeQuery *pQuery, XnBool bExistingNode)
XN_C_API XnStatus XN_C_DECL xnCreateProductionTree(XnContext *pContext, XnNodeInfo *pTree, XnNodeHandle *phNode)
Creates a production node. If the tree specifies additional needed nodes, and those nodes do not exis...
XnStatus AddSupportedCapability(const XnChar *strNeededCapability)
For full details and usage, see xnNodeQueryAddSupportedCapability
Definition: XnCppWrapper.h:1316
const XnUInt8 * GetImageMap() const
Gets the current image-map as a byte buffer. For full details, see xnGetImageMap().
Definition: XnCppWrapper.h:3208
XN_C_API XnStatus XN_C_DECL xnScriptNodeRun(XnNodeHandle hScript, XnEnumerationErrors *pErrors)
void(* HandUpdate)(HandsGenerator &generator, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, void *pCookie)
Definition: XnCppWrapper.h:3880
Device(const NodeWrapper &other)
Definition: XnCppWrapper.h:1971
Iterator RBegin() const
Gets an iterator to the last item in the list.
Definition: XnCppWrapper.h:1560
void UnregisterFromFieldOfViewChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToDepthFieldOfViewChange. For full details and usage, see xnUnregisterFromDepthFieldOfViewChange
Definition: XnCppWrapper.h:3041
XN_C_API void XN_C_DECL xnProductionNodeRelease(XnNodeHandle hNode)
Unreference a production node, decreasing its reference count by 1. If the reference count reaches ze...
void UnregisterUserCallbacks(XnCallbackHandle hCallback)
Unregister from user callbacks. For full details and usage, see xnUnregisterUserCallbacks ...
Definition: XnCppWrapper.h:4873
XN_C_API XnBool XN_C_DECL xnIsGenerating(XnNodeHandle hInstance)
Checks if this node is currently generating.
~EnumerationErrors()
Dtor.
Definition: XnCppWrapper.h:5297
Definition: XnTypes.h:151
XN_C_API XnStatus XN_C_DECL xnEnumerationErrorsAllocate(XnEnumerationErrors **ppErrors)
XN_C_API XnStatus XN_C_DECL xnGetMapOutputMode(XnNodeHandle hInstance, XnMapOutputMode *pOutputMode)
Gets the current output mode.
MockIRGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3365
XnStatus AutoEnumerateOverSingleInput(NodeInfoList &List, XnProductionNodeDescription &description, const XnChar *strCreationInfo, XnProductionNodeType InputType, EnumerationErrors *pErrors, Query *pQuery=NULL) const
For full details and usage, see xnAutoEnumerateOverSingleInput
Definition: XnCppWrapper.h:5917
void UnregisterFromJointConfigurationChange(XnCallbackHandle hCallback)
Unregister from joint configuration changes. For full details and usage, see xnUnregisterFromJointCon...
Definition: XnCppWrapper.h:4093
void(* StateChangedHandler)(ProductionNode &node, void *pCookie)
Definition: XnCppWrapper.h:62
XN_C_API XnStatus XN_C_DECL xnMockDepthSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnDepthPixel *pData)
XN_C_API void XN_C_DECL xnUnregisterFromUserReEnter(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from when a user re-enters the scene.
Definition: XnCppWrapper.h:6337
GeneralIntCapability GetExposureCap()
Definition: XnCppWrapper.h:2876
void SetHandle(XnNodeHandle hNode)
Replaces the object being pointed.
Definition: XnCppWrapper.h:1074
XnUInt8 XnGrayscale8Pixel
Definition: XnTypes.h:278
XnBool IsViewPointAs(ProductionNode &otherNode) const
Checks if current view point is as if coming from the other node view point. For full details and usa...
Definition: XnCppWrapper.h:2079
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6154
XnRecordMedium
Definition: XnTypes.h:799
XnStatus StopGeneratingAll()
Stop all generators from generating data. For full details and usage, see xnStopGeneratingAll ...
Definition: XnCppWrapper.h:5836
XnStatus RegisterToMirrorChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to mirror changes. For full details and usage, see xnRegisterToMirrorCh...
Definition: XnCppWrapper.h:2023
const CroppingCapability GetCroppingCap() const
Definition: XnCppWrapper.h:2726
Codec(const NodeWrapper &other)
Definition: XnCppWrapper.h:5210
XnStatus UnregisterFromCalibrationStart(XnCallbackHandle hCallback)
Unregister from calibration start callback. For full details and usage, see xnUnregisterFromCalibrati...
Definition: XnCppWrapper.h:4348
Definition: XnCppWrapper.h:5201
XN_C_API XnStatus XN_C_DECL xnEnumerationErrorsGetCurrentError(XnEnumerationErrorsIterator it)
XnStatus RegisterCalibrationCallbacks(CalibrationStart CalibrationStartCB, CalibrationEnd CalibrationEndCB, void *pCookie, XnCallbackHandle &hCallback)
Register to calibration callbacks. For full details and usage, see xnRegisterCalibrationCallbacks ...
Definition: XnCppWrapper.h:4288
GeneralIntCapability GetContrastCap()
Definition: XnCppWrapper.h:2756
XnStatus Reset(XnUserID user)
Reset the skeleton - discard calibration. For full details and usage, see xnResetSkeleton ...
Definition: XnCppWrapper.h:4238
XnEnumerationErrors * GetUnderlying()
Gets the underlying C object.
Definition: XnCppWrapper.h:5382
XN_C_API XnStatus XN_C_DECL xnStopTrackingAll(XnNodeHandle hInstance)
Stop tracking all hands.
#define XN_CAPABILITY_EXPOSURE
Definition: XnTypes.h:316
MirrorCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:2001
XnPoseDetectionStatus
Definition: XnTypes.h:642
XN_C_API XnStatus XN_C_DECL xnContextOpenFileRecording(XnContext *pContext, const XnChar *strFileName)
Opens a recording file, adding all nodes in it to the context. NOTE: when using this function...
XN_C_API XnStatus XN_C_DECL xnRegisterToPoseCallbacks(XnNodeHandle hInstance, XnPoseDetectionCallback PoseDetectionStartCB, XnPoseDetectionCallback PoseDetectionEndCB, void *pCookie, XnCallbackHandle *phCallback)
Register to callbacks for pose events.
XN_C_API XnPowerLineFrequency XN_C_DECL xnGetPowerLineFrequency(XnNodeHandle hGenerator)
Gets the power line frequency.
DeviceIdentificationCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:1931
XN_C_API XnUInt16 XN_C_DECL xnGetNumberOfUsers(XnNodeHandle hInstance)
Get current number of users.
#define XN_CAPABILITY_COLOR_TEMPERATURE
Definition: XnTypes.h:309
XnUInt16 GetNumberOfUsers() const
Get current number of users. For full details and usage, see xnGetNumberOfUsers
Definition: XnCppWrapper.h:4816
XN_C_API XnStatus XN_C_DECL xnInitFromXmlFileEx(const XnChar *strFileName, XnContext **ppContext, XnEnumerationErrors *pErrors, XnNodeHandle *phScriptNode)
Initializes OpenNI context, and then configures it using the given file.
XnUInt16 XnGrayscale16Pixel
Definition: XnTypes.h:281
XnUInt32 GetDataSize() const
Gets the size of current data, in bytes. For full details and usage, see xnGetDataSize ...
Definition: XnCppWrapper.h:2259
Iterator REnd() const
Gets an iterator marking the start of the list. This iterator does not point to a valid item...
Definition: XnCppWrapper.h:1566
Iterator Begin() const
Gets an iterator to the first item in the list.
Definition: XnCppWrapper.h:5356
Definition: XnTypes.h:192
XN_C_API void XN_C_DECL xnUnregisterFromGenerationRunningChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGenerationRunningChange().
XN_C_API XnStatus XN_C_DECL xnGetSkeletonCalibrationPose(XnNodeHandle hInstance, XnChar *strPose)
Get the pose that is required for calibration.
XN_C_API void XN_C_DECL xnGetDepthMetaData(XnNodeHandle hInstance, XnDepthMetaData *pMetaData)
Gets the current depth-map meta data.
XnUInt32 GetXResolution() const
Gets the X resolution.
Definition: XnCppWrapper.h:6027
XN_C_API void XN_C_DECL xnUnregisterFromCroppingChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToCroppingChange().
XN_C_API XnStatus XN_C_DECL xnStopSkeletonTracking(XnNodeHandle hInstance, XnUserID user)
Stop tracking a skeleton.
XnStatus EnumerateGestures(XnChar *&astrGestures, XnUInt16 &nGestures) const
Get the names of all gestures available. For full details and usage, see xnEnumerateGestures ...
Definition: XnCppWrapper.h:3469
XnStatus Ref()
Definition: XnCppWrapper.h:1070
XN_C_API XnDepthPixel *XN_C_DECL xnGetDepthMap(XnNodeHandle hInstance)
Gets the current depth-map. This map is updated after a call to xnWaitAndUpdateData().
XnUInt32 nSampleRate
Definition: XnTypes.h:436
XN_C_API XnStatus XN_C_DECL xnRegisterToCalibrationStart(XnNodeHandle hInstance, XnCalibrationStart handler, void *pCookie, XnCallbackHandle *phCallback)
Register to calibration start callback.
const XnChar * GetCreationInfo() const
For full details and usage, see xnNodeInfoGetCreationInfo
Definition: XnCppWrapper.h:1210
AntiFlickerCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:2614
XnStatus Set(XnInt32 nValue)
Sets the current value of this capability. For full details and usage, see xnSetGeneralIntValue ...
Definition: XnCppWrapper.h:1721
XnStatus RegisterToUserExit(UserHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when the user exits the scene (but not lost yet) For full details and usage...
Definition: XnCppWrapper.h:4923
~Context()
Dtor.
Definition: XnCppWrapper.h:5425
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnUInt8 *pImageMap)
For full details and usage, see xnMockImageSetData
Definition: XnCppWrapper.h:3288
XN_C_API XnStatus XN_C_DECL xnWaitOneUpdateAll(XnContext *pContext, XnNodeHandle hNode)
Updates all generators nodes in the context, waiting for a specific one to have new data...
XnStatus RegisterToHandTouchingFOVEdge(HandTouchingFOVEdge handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when a hand is approaching the edge of the FOV. For full details and usage, see xnRegisterToHandTouchingFOVEdge
Definition: XnCppWrapper.h:3792
XnStatus AbortCalibration(XnUserID user)
stop calibration For full details and usage, see xnAbortSkeletonCalibration
Definition: XnCppWrapper.h:4166
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const void *pData)
Definition: XnCppWrapper.h:5190
void GetContext(Context &context) const
For full details and usage, see xnGetContextFromNodeHandle
Definition: XnCppWrapper.h:6048
XnStatus GetInstance(ProductionNode &node) const
Definition: XnCppWrapper.h:6096
AlternativeViewPointCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2050
XnStatus SetData(const DepthMetaData &depthMD)
Definition: XnCppWrapper.h:3139
~NodeInfo()
Dtor.
Definition: XnCppWrapper.h:1162
XN_C_API XnStatus XN_C_DECL xnAddNeededNode(XnNodeHandle hInstance, XnNodeHandle hNeededNode)
Adds another node to the list of needed nodes for this node.
XN_C_API XnStatus XN_C_DECL xnSetGlobalMirror(XnContext *pContext, XnBool bMirror)
Sets the global mirror flag. This will set all current existing nodes' mirror state, and also affect future created nodes. The default mirror flag is FALSE.
XnStatus RegisterToWaveOutputModeChanges(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
For full details and usage, see xnRegisterToWaveOutputModeChanges
Definition: XnCppWrapper.h:5106
XN_C_API XnStatus XN_C_DECL xnFindExistingRefNodeByType(XnContext *pContext, XnProductionNodeType type, XnNodeHandle *phNode)
Returns the first found existing node of the specified type.
XN_C_API XnStatus XN_C_DECL xnLockedNodeEndChanges(XnNodeHandle hInstance, XnLockHandle hLock)
Ends changes request on a locked node.
XnStatus RemoveNodeFromRecording(ProductionNode &Node)
Removes node from recording and stop recording it. This function can be called on a node that was add...
Definition: XnCppWrapper.h:2385
const SkeletonCapability GetSkeletonCap() const
Definition: XnCppWrapper.h:4885
XN_C_API XnStatus XN_C_DECL xnTellPlayerFrame(XnNodeHandle hPlayer, const XnChar *strNodeName, XnUInt32 *pnFrame)
Reports the current frame number of a specific node played by a player.
XnUInt32 X
Definition: XnTypes.h:1014
XN_C_API XnStatus XN_C_DECL xnGetAvailablePoses(XnNodeHandle hInstance, XnChar **pstrPoses, XnUInt32 *pnPoses)
Get the names of the supported poses.
XN_C_API XnStatus XN_C_DECL xnAddGesture(XnNodeHandle hInstance, const XnChar *strGesture, XnBoundingBox3D *pArea)
Turn on gesture. The generator will now look for this gesture.
Definition: XnCppWrapper.h:3767
XnPowerLineFrequency
Definition: XnTypes.h:517
void(* XnStateChangedHandler)(XnNodeHandle hNode, void *pCookie)
Definition: XnTypes.h:227
XnStatus ToString(XnChar *csBuffer, XnUInt32 nSize)
For full details and usage, see xnEnumerationErrorsToString
Definition: XnCppWrapper.h:5363
XnStatus SetPowerLineFrequency(XnPowerLineFrequency nFrequency)
Sets the power line frequency: 50 Hz, 60 Hz, or 0 to turn off anti-flicker. For full details and usag...
Definition: XnCppWrapper.h:2620
GeneralIntCapability GetWhiteBalanceCap()
Definition: XnCppWrapper.h:2806
XN_C_API XnBool XN_C_DECL xnIsViewPointAs(XnNodeHandle hInstance, XnNodeHandle hOther)
Checks if current view point is as if coming from the other node view point.
XN_C_API XnYUV422DoublePixel *XN_C_DECL xnGetYUV422ImageMap(XnNodeHandle hInstance)
Gets the current YUV422 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in YUV422 pixel format.
SkeletonCapability GetSkeletonCap()
Definition: XnCppWrapper.h:4895
#define XN_CAPABILITY_FOCUS
Definition: XnTypes.h:318
XN_C_API XnStatus XN_C_DECL xnStopGeneratingAll(XnContext *pContext)
Stop all generators from generating data.
XN_C_API XnBool XN_C_DECL xnIsMirrored(XnNodeHandle hInstance)
Gets current mirroring configuration.
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates an hands generator. For full details and usage, see xnCreateHandsGenerator ...
Definition: XnCppWrapper.h:6251
XN_C_API XnStatus XN_C_DECL xnGetUserCoM(XnNodeHandle hInstance, XnUserID user, XnPoint3D *pCoM)
Get the center of mass of a user.
XN_C_API XnStatus XN_C_DECL xnAddLicense(XnContext *pContext, const XnLicense *pLicense)
XN_C_API XnUInt32 XN_C_DECL xnGetSupportedUserPositionsCount(XnNodeHandle hInstance)
Gets the number of user positions supported by this generator.
XnStatus StartPoseDetection(const XnChar *strPose, XnUserID user)
Start detection of a specific pose for a specific user. For full details and usage, see xnStartPoseDetection
Definition: XnCppWrapper.h:4572
XnStatus RegisterToCroppingChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to cropping changes. For full details and usage, see xnRegisterToCroppi...
Definition: XnCppWrapper.h:2588
const void * GetAdditionalData() const
For full details and usage, see xnNodeInfoGetAdditionalData
Definition: XnCppWrapper.h:1232
Definition: XnTypes.h:568
MockIRGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3366
XnBool operator==(const NodeWrapper &other)
Definition: XnCppWrapper.h:1034
XN_C_API XnStatus xnContextRunXmlScriptFromFile(XnContext *pContext, const XnChar *strFileName, XnEnumerationErrors *pErrors)
Runs an XML script in the given context. NOTE: when using this function, the context will be the owne...
XnStatus StartGeneratingAll()
Make sure all generators are generating data. For full details and usage, see xnStartGeneratingAll ...
Definition: XnCppWrapper.h:5828
HandsGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3853
AudioGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:5048
XnStatus SetMirror(XnBool bMirror)
Sets current mirror configuration. For full details and usage, see xnSetMirror
Definition: XnCppWrapper.h:2007
XN_C_API XnRGB24Pixel *XN_C_DECL xnGetRGB24ImageMap(XnNodeHandle hInstance)
Gets the current RGB24 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in RGB24 pixel format.
XN_C_API void XN_C_DECL xnUnregisterHandCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from hands callbacks.
XN_C_API XnStatus XN_C_DECL xnSetPlayerRepeat(XnNodeHandle hPlayer, XnBool bRepeat)
Determines whether the player will automatically rewind to the beginning of the recording when reachi...
void SetHandle(XnContext *pContext)
Replaces the underlying C object pointed to by this object.
Definition: XnCppWrapper.h:5923
Definition: XnTypes.h:465
XnStatus SetSupportedMinUserPositions(const XnUInt32 nCount)
For full details and usage, see xnNodeQuerySetSupportedMinUserPositions
Definition: XnCppWrapper.h:1332
MockAudioGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5132
void(* HandCreate)(HandsGenerator &generator, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, void *pCookie)
Definition: XnCppWrapper.h:3870
XnStatus Create(Context &context, XnCodecID codecID, ProductionNode &initializerNode)
For full details and usage, see xnCreateCodec
Definition: XnCppWrapper.h:6307
XN_C_API XnStatus XN_C_DECL xnConvertProjectiveToRealWorld(XnNodeHandle hInstance, XnUInt32 nCount, const XnPoint3D *aProjective, XnPoint3D *aRealWorld)
Converts a list of points from projective coordinates to real world coordinates.
const void * GetData()
Gets the current data. For full details and usage, see xnGetData
Definition: XnCppWrapper.h:2251
XN_C_API XnStatus XN_C_DECL xnRegisterToGlobalErrorStateChange(XnContext *pContext, XnErrorStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to global error state changes.
XnStatus GetNumFrames(const XnChar *strNodeName, XnUInt32 &nFrames) const
Retrieves the number of frames of a specific node played by a player. For full details and usage...
Definition: XnCppWrapper.h:2486
XN_C_API XnStatus XN_C_DECL xnSetCropping(XnNodeHandle hInstance, const XnCropping *pCropping)
Sets the cropping.
XN_C_API void XN_C_DECL xnContextUnregisterFromShutdown(XnContext *pContext, XnCallbackHandle hCallback)
Unregisters from context shutting down event. This function is used for backwards compatibility and s...
XN_C_API XnStatus XN_C_DECL xnRegisterToWaveOutputModeChanges(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
XN_C_API XnStatus XN_C_DECL xnRegisterToNodeErrorStateChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to error state changes.
XnStatus GetDeviceName(XnChar *strBuffer, XnUInt32 nBufferSize)
For full details and usage, see xnGetDeviceName
Definition: XnCppWrapper.h:1936
XN_C_API const XnProductionNodeDescription *XN_C_DECL xnEnumerationErrorsGetCurrentDescription(XnEnumerationErrorsIterator it)
XnBool IsCalibrated(XnUserID user) const
Check if skeleton is being calibrated. For full details and usage, see xnIsSkeletonCalibrated ...
Definition: XnCppWrapper.h:4141
XN_C_API const XnChar *XN_C_DECL xnGetPlayerSupportedFormat(XnNodeHandle hPlayer)
Gets the name of the format supported by a player.
XnNodeQuery * GetUnderlyingObject()
Definition: XnCppWrapper.h:1279
XN_C_API XnStatus XN_C_DECL xnSetUserPosition(XnNodeHandle hInstance, XnUInt32 nIndex, const XnBoundingBox3D *pPosition)
Sets the current user position.
XN_C_API void XN_C_DECL xnGetIRMetaData(XnNodeHandle hInstance, XnIRMetaData *pMetaData)
Gets the current IR-map meta data.
XnUInt32 XnStatus
Definition: XnStatus.h:34
XN_C_API XnBool XN_C_DECL xnIsNewDataAvailable(XnNodeHandle hInstance, XnUInt64 *pnTimestamp)
Checks whether this node has new data (and so a call to xnWaitAndUpdateData() will not block)...
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a depth generator. For full details and usage, see xnCreateDepthGenerator ...
Definition: XnCppWrapper.h:6145
XN_C_API XnStatus XN_C_DECL xnRegisterToJointConfigurationChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Register to joint configuration changes - when joints are activated and deactivated.
Definition: XnCppWrapper.h:4795
void UnregisterFromValueChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGeneralIntValueChange(). For full details and usage, see xnUnregisterFromGeneralIntValueChange
Definition: XnCppWrapper.h:6430
void UnregisterFromUserExit(XnCallbackHandle hCallback)
Unregister from when a user exits the scene. For full details and usage, see xnUnregisterFromUserExit...
Definition: XnCppWrapper.h:4947
XN_C_API XnBool XN_C_DECL xnNodeInfoListIsEmpty(XnNodeInfoList *pList)
XnStatus StartTracking(const XnPoint3D &ptPosition)
Start tracking at a specific position. For full details and usage, see xnStartTracking ...
Definition: XnCppWrapper.h:3946
XN_C_API XnStatus XN_C_DECL xnRemoveNodeFromRecording(XnNodeHandle hRecorder, XnNodeHandle hNode)
Removes node from recording and stop recording it. This function can be called on a node that was add...
XN_C_API XnBool XN_C_DECL xnNodeInfoListIteratorIsValid(XnNodeInfoListIterator it)
void(* GestureIntermediateStageCompleted)(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pPosition, void *pCookie)
Definition: XnCppWrapper.h:3577
XN_C_API XnStatus XN_C_DECL xnAbortSkeletonCalibration(XnNodeHandle hInstance, XnUserID user)
stop calibration
XnStatus RegisterToValueChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to values changes. For full details and usage, see xnRegisterToGeneralI...
Definition: XnCppWrapper.h:6411
PoseDetectionCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:4533
XnStatus GetProductionNodeInfoByName(const XnChar *strInstanceName, NodeInfo &nodeInfo) const
For full details and usage, see xnGetNodeHandleByName
Definition: XnCppWrapper.h:5810
XN_C_API XnStatus XN_C_DECL xnLoadSkeletonCalibrationDataFromFile(XnNodeHandle hInstance, XnUserID user, const XnChar *strFileName)
Load previously saved calibration data from file.
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAppend(XnNodeInfoList *pList, XnNodeInfoList *pOther)
Definition: XnTypes.h:495
FrameSyncCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2114
XN_C_API void XN_C_DECL xnOSFreeAligned(const void *pMemBlock)
const XnDepthPixel * GetDepthMap() const
Gets the current depth-map. This map is updated after a call to xnWaitAndUpdateData(). For full details and usage, see xnGetDepthMap
Definition: XnCppWrapper.h:3009
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6298
UserPositionCapability GetUserPositionCap()
Definition: XnCppWrapper.h:3077
XnStatus Create(Context &context, const XnChar *strFormatName)
Creates a player. For full details and usage, see xnCreatePlayer
Definition: XnCppWrapper.h:6136
XnStatus RegisterToPowerLineFrequencyChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to power line frequency changes. For full details and usage...
Definition: XnCppWrapper.h:2636
void(* UserHandler)(UserGenerator &generator, XnUserID user, void *pCookie)
Definition: XnCppWrapper.h:4811
StateChangedCallbackTranslator(StateChangedHandler handler, void *pCookie)
Definition: XnCppWrapper.h:6340
MirrorCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2002
XnUInt32 GetSupportedMapOutputModesCount() const
Gets the number of supported modes. This is useful for allocating an array that will be passed to xnG...
Definition: XnCppWrapper.h:2668
XnStatus GetGeneralProperty(const XnChar *strName, XnUInt32 nBufferSize, void *pBuffer) const
Gets a buffer property. For full details and usage, see xnGetGeneralProperty
Definition: XnCppWrapper.h:1848
XN_C_API void XN_C_DECL xnEnumerationErrorsFree(const XnEnumerationErrors *pErrors)
const XnIRPixel * GetIRMap() const
Gets the current IR-map. This map is updated after a call to xnWaitAndUpdateData(). For full details and usage, see xnGetIRMap
Definition: XnCppWrapper.h:3347
XnStatus RegisterToPixelFormatChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to pixel format changes. For full details and usage, see xnRegisterToPixelFormatChange
Definition: XnCppWrapper.h:3240
#define XN_CAPABILITY_LOW_LIGHT_COMPENSATION
Definition: XnTypes.h:319
XnStatus LockedNodeStartChanges(XnLockHandle hLock)
Start changes request on a locked node, without releasing that lock. For full details and usage...
Definition: XnCppWrapper.h:1872
~NodeWrapper()
Definition: XnCppWrapper.h:1019
NodeInfo operator*()
Gets the NodeInfo object pointed by the iterator.
Definition: XnCppWrapper.h:1444
XN_C_API XnStatus XN_C_DECL xnNodeQueryFilterList(XnContext *pContext, const XnNodeQuery *pQuery, XnNodeInfoList *pList)
const XnChar * GetInstanceName() const
For full details and usage, see xnNodeInfoGetInstanceName()
Definition: XnCppWrapper.h:1203
XN_C_API void XN_C_DECL xnUnregisterFromGestureChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from when gestures are added or removed.
XN_C_API XnStatus XN_C_DECL xnRegisterToDepthFieldOfViewChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to field of view changes.
UserGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:4803
XN_C_API XnStatus XN_C_DECL xnGetIntProperty(XnNodeHandle hInstance, const XnChar *strName, XnUInt64 *pnValue)
Gets an integer property.
Iterator operator--(int)
Definition: XnCppWrapper.h:1436
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates an image generator. For full details and usage, see xnCreateImageGenerator ...
Definition: XnCppWrapper.h:6174
XnStatus SetIntProperty(const XnChar *strName, XnUInt64 nValue)
Sets an integer property. For full details and usage, see xnSetIntProperty
Definition: XnCppWrapper.h:1792
const XnChar * GetName() const
Gets the instance name of a node by its handle. For full details and usage, see xnGetNodeName() ...
Definition: XnCppWrapper.h:1055
XN_C_API XnStatus XN_C_DECL xnGetSupportedMapOutputModes(XnNodeHandle hInstance, XnMapOutputMode *aModes, XnUInt32 *pnCount)
Gets a list of all supported modes. The size of the array that should be passed can be obtained by ca...
XN_C_API XnStatus XN_C_DECL xnRegisterToPoseDetectionInProgress(XnNodeHandle hInstance, XnPoseDetectionInProgress handler, void *pCookie, XnCallbackHandle *phCallback)
Register to callback for status when pose is detected.
XN_C_API XnBool XN_C_DECL xnIsFrameSyncedWith(XnNodeHandle hInstance, XnNodeHandle hOther)
Checks if current view point is as if coming from the other node view point.
XnStatus GetUserPosition(XnUInt32 nIndex, XnBoundingBox3D &Position) const
Gets the current user position. For full details and usage, see xnGetUserPosition ...
Definition: XnCppWrapper.h:2956
XnStatus LoadCalibrationData(XnUserID user, XnUInt32 nSlot)
Load previously saved calibration data. For full details and usage, see xnLoadSkeletonCalibrationData...
Definition: XnCppWrapper.h:4198
XN_C_API XnStatus XN_C_DECL xnStopGenerating(XnNodeHandle hInstance)
Stops generation of the output.
XN_C_API XnStatus XN_C_DECL xnNodeInfoSetInstanceName(XnNodeInfo *pNodeInfo, const XnChar *strInstanceName)
Definition: XnCppWrapper.h:3722
XN_C_API XnPixelFormat XN_C_DECL xnGetPixelFormat(XnNodeHandle hInstance)
Gets current pixel format.
XnStatus GetUsers(XnUserID aUsers[], XnUInt16 &nUsers) const
Get the current users. For full details and usage, see xnGetUsers
Definition: XnCppWrapper.h:4824
XnUInt16 XnDepthPixel
Definition: XnTypes.h:255
XnStatus GetUserPixels(XnUserID user, SceneMetaData &smd) const
Get the pixels that belong to a user. For full details and usage, see xnGetUserPixels ...
Definition: XnCppWrapper.h:4840
XnStatus Register(_XnRegisterStateChangeFuncPtr xnFunc, XnNodeHandle hNode)
Definition: XnCppWrapper.h:6342
XN_C_API void XN_C_DECL xnUnregisterGestureCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from gesture callbacks.
XN_C_API XnStatus XN_C_DECL xnContextAddRef(XnContext *pContext)
Adds a reference to the context object.
Definition: XnCppWrapper.h:3845
#define XN_VALIDATE_ALLOC(x, y)
Definition: XnOS.h:135
XnInt32 Get()
Gets the current value of this capability. For full details and usage, see xnGetGeneralIntValue ...
Definition: XnCppWrapper.h:1711
XnStatus CreateCodec(XnCodecID codecID, ProductionNode &initializerNode, Codec &codec)
For full details and usage, see xnCreateCodec
Definition: XnCppWrapper.h:5611
XnUInt32 GetFrameID() const
Gets the frame ID of current data. For full details and usage, see xnGetFrameID
Definition: XnCppWrapper.h:2275
XN_C_API XnStatus XN_C_DECL xnGetSerialNumber(XnNodeHandle hInstance, XnChar *strBuffer, XnUInt32 *pnBufferSize)
XnBool IsNewDataAvailable(XnUInt64 *pnTimestamp=NULL) const
Checks whether this node has new data (and so a call to xnWaitAndUpdateData() will not block)...
Definition: XnCppWrapper.h:2227
XnStatus GetDestination(XnRecordMedium &destType, XnChar *strDest, XnUInt32 nBufSize)
Definition: XnCppWrapper.h:2369
XnStatus GetSkeletonJointPosition(XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointPosition &Joint) const
Get a specific joint's position. For full details and usage, see xnGetSkeletonJointPosition ...
Definition: XnCppWrapper.h:4117
XN_C_API XnBool XN_C_DECL xnIsPixelFormatSupported(XnNodeHandle hInstance, XnPixelFormat Format)
Checks if a specific pixel format is supported.
Definition: XnCppWrapper.h:3087
XN_C_API XnStatus XN_C_DECL xnAutoEnumerateOverSingleInput(XnContext *pContext, XnNodeInfoList *pList, XnProductionNodeDescription *pDescription, const XnChar *strCreationInfo, XnProductionNodeType InputType, XnEnumerationErrors *pErrors, XnNodeQuery *pQuery)
EnumerationErrors(XnEnumerationErrors *pErrors, XnBool bOwn=FALSE)
Definition: XnCppWrapper.h:5294
XN_C_API void XN_C_DECL xnUnregisterFromDepthFieldOfViewChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToDepthFieldOfViewChange.
XN_C_API XnCodecID XN_C_DECL xnGetCodecID(XnNodeHandle hCodec)
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnUInt8 *pAudioBuffer)
For full details and usage, see xnMockAudioSetData
Definition: XnCppWrapper.h:5154
XN_C_API XnStatus XN_C_DECL xnUnlockNodeForChanges(XnNodeHandle hInstance, XnLockHandle hLock)
Unlocks a previously locked node.
XnStatus CreateBasedOn(DepthGenerator &other, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6163
XN_C_API XnStatus XN_C_DECL xnSetMirror(XnNodeHandle hInstance, XnBool bMirror)
Sets current mirror configuration.
XnInt32 XnProductionNodeType
Definition: XnTypes.h:92
XnStatus SetPixelFormat(XnPixelFormat Format)
Sets the pixel format of the image map. For full details and usage, see xnSetPixelFormat ...
Definition: XnCppWrapper.h:3224
XnStatus GetSource(XnRecordMedium &sourceType, XnChar *strSource, XnUInt32 nBufSize) const
Gets the player's source, i.e where the played events come from. For full details and usage...
Definition: XnCppWrapper.h:2438
XnStatus ConvertRealWorldToProjective(XnUInt32 nCount, const XnPoint3D aRealWorld[], XnPoint3D aProjective[]) const
Converts a list of points from projective coordinates to real world coordinates. For full details and...
Definition: XnCppWrapper.h:3057
AntiFlickerCapability GetAntiFlickerCap()
Definition: XnCppWrapper.h:2916
XnStatus CreateProductionTree(NodeInfo &Tree, ProductionNode &node)
Creates a production node. If the tree specifies additional needed nodes, and those nodes do not exis...
Definition: XnCppWrapper.h:5734
XN_C_API XnStatus XN_C_DECL xnGetSkeletonJointOrientation(XnNodeHandle hInstance, XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointOrientation *pJoint)
Get a specific joint's orientation.
XN_C_API XnStatus XN_C_DECL xnSetMapOutputMode(XnNodeHandle hInstance, const XnMapOutputMode *pOutputMode)
Sets the output mode.
XN_C_API void XN_C_DECL xnUnregisterFromUserExit(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from when a user exits the scene.
XN_C_API XnStatus XN_C_DECL xnRegisterToEndOfFileReached(XnNodeHandle hPlayer, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to be called when end-of-file is reached.
XN_C_API XnStatus XN_C_DECL xnClearSkeletonCalibrationData(XnNodeHandle hInstance, XnUInt32 nSlot)
Clear the requested slot from any saved calibration data.
XN_C_API XnBool XN_C_DECL xnIsCapabilitySupported(XnNodeHandle hInstance, const XnChar *strCapabilityName)
Checks if a production node supports specific capability.
XN_C_API void XN_C_DECL xnGetAudioMetaData(XnNodeHandle hInstance, XnAudioMetaData *pMetaData)
Gets the current audio meta data.
MockAudioGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:5133
XN_C_API XnStatus XN_C_DECL xnRegisterToPowerLineFrequencyChange(XnNodeHandle hGenerator, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to power line frequency changes.
XnBool IsCapabilitySupported(const XnChar *strCapabilityName) const
Checks if a production node supports specific capability. For full details and usage, see xnIsCapabilitySupported
Definition: XnCppWrapper.h:1784
MockImageGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3267
XN_C_API XnIRPixel *XN_C_DECL xnGetIRMap(XnNodeHandle hInstance)
Gets the current IR-map. This map is updated after a call to xnWaitAndUpdateData().
Recorder(const NodeWrapper &other)
Definition: XnCppWrapper.h:2354
XnStatus WaitAndUpdateData()
Updates the data to the latest available one. If needed, the call will block until new data is availa...
Definition: XnCppWrapper.h:2235
GeneralIntCapability(XnNodeHandle hNode, const XnChar *strCap)
Definition: XnCppWrapper.h:1697
Definition: XnTypes.h:444
struct XnInternalNodeData * XnNodeHandle
Definition: XnTypes.h:82
XnStatus RegisterToGestureChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when gestures are added or removed. For full details and usage, see xnRegisterToGestureCh...
Definition: XnCppWrapper.h:3556
void UnregisterFromEndOfFileReached(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToEndOfFileReached(). For full details and usage, see xnUnregisterFromEndOfFileReached
Definition: XnCppWrapper.h:2532
XN_C_API XnStatus XN_C_DECL xnMockRawSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const void *pData)
void UnregisterFromHandTouchingFOVEdge(XnCallbackHandle hCallback)
Unregister from hand approaching the edge of the FOV. For full details and usage, see xnUnregisterFro...
Definition: XnCppWrapper.h:3816
XnUInt32 GetBytesPerPixel() const
Gets the number of bytes per pixel for this map generator. For full details and usage, see xnGetBytesPerPixel
Definition: XnCppWrapper.h:2700
XN_C_API XnUInt8 *XN_C_DECL xnGetImageMap(XnNodeHandle hInstance)
Gets the current image-map as a byte buffer.
Definition: XnCppWrapper.h:5124
void UnregisterFromCalibrationInProgress(XnCallbackHandle hCallback)
Unregister from calibration status while in progress. For full details and usage, see xnUnregisterFro...
Definition: XnCppWrapper.h:4393
Definition: XnCppWrapper.h:1632
Capability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:1640
XN_C_API XnBool XN_C_DECL xnIsProfileAvailable(XnNodeHandle hInstance, XnSkeletonProfile eProfile)
Check if generator supports a specific profile.
XnStatus RegisterToErrorStateChange(XnErrorStateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to global error state changes. For full details and usage...
Definition: XnCppWrapper.h:5868
XN_C_API XnStatus XN_C_DECL xnEnumerateActiveJoints(XnNodeHandle hInstance, XnSkeletonJoint *pJoints, XnUInt16 *pnJoints)
Get all active joints.
XN_C_API XnStatus XN_C_DECL xnCreateImageGenerator(XnContext *pContext, XnNodeHandle *phImageGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an image generator.
IRGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3328
NodeInfo & operator=(const NodeInfo &other)
Definition: XnCppWrapper.h:1172
XnNodeInfoList * GetUnderlyingObject() const
Gets the underlying C object.
Definition: XnCppWrapper.h:1497
XnUInt8 nChannels
Definition: XnTypes.h:438
#define XN_VALIDATE_NEW(ptr, type)
Definition: XnOS.h:203
MockDepthGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3096
XnUInt8 nMinor
Definition: XnTypes.h:154
XN_C_API XnBool XN_C_DECL xnIsPlayerAtEOF(XnNodeHandle hPlayer)
Checks whether the player is at the end-of-file marker.
XnStatus AddNodeToRecording(ProductionNode &Node, XnCodecID compression=XN_CODEC_NULL)
Adds a node to recording and start recording it. This function must be called on each node that is to...
Definition: XnCppWrapper.h:2377
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a device node. For full details and usage, see xnCreateDevice
Definition: XnCppWrapper.h:6118
XnStatus RegisterToFieldOfViewChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to field of view changes. For full details and usage, see xnRegisterToDepthFieldOfViewChange
Definition: XnCppWrapper.h:3033
XnStatus RunXmlScript(const XnChar *strScript, EnumerationErrors *pErrors=NULL)
Runs an XML script in the given context. NOTE: when using this function, the context will be the owne...
Definition: XnCppWrapper.h:5457
Definition: XnCppWrapper.h:5246
XnBool operator==(const Iterator &other) const
Definition: XnCppWrapper.h:1388
XN_C_API void XN_C_DECL xnOSMemCopy(void *pDest, const void *pSource, XnSizeT nCount)
MockRawGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:5186
XnStatus CreateMockNodeBasedOn(ProductionNode &originalNode, const XnChar *strName, ProductionNode &mockNode)
Creates a production node which is only a mock, base on the type and properties of another node...
Definition: XnCppWrapper.h:5595
struct XnYUV422DoublePixel XnYUV422DoublePixel
XN_C_API XnStatus XN_C_DECL xnConvertRealWorldToProjective(XnNodeHandle hInstance, XnUInt32 nCount, const XnPoint3D *aRealWorld, XnPoint3D *aProjective)
Converts a list of points from projective coordinates to real world coordinates.
XnUInt32 GetSupportedUserPositionsCount() const
Gets the number of user positions supported by this generator. For full details and usage...
Definition: XnCppWrapper.h:2940
bool operator>(const Version &other) const
Definition: XnCppWrapper.h:104
XN_C_API XnStatus XN_C_DECL xnGetPlayerSource(XnNodeHandle hPlayer, XnRecordMedium *pSourceType, XnChar *strSource, XnUInt32 nBufSize)
Gets the player's source, i.e where the played events come from.
XnStatus SeekToTimeStamp(XnInt64 nTimeOffset, XnPlayerSeekOrigin origin)
Seeks the player to a specific timestamp, so that playing will continue from that point onwards...
Definition: XnCppWrapper.h:2454
XN_C_API void XN_C_DECL xnUnregisterFromUserPositionChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToUserPositionChange.
XnContext * GetUnderlyingObject() const
Gets the underlying C object.
Definition: XnCppWrapper.h:5437
XN_C_API XnStatus XN_C_DECL xnNodeInfoListRemove(XnNodeInfoList *pList, XnNodeInfoListIterator it)
XN_C_API XnEnumerationErrorsIterator XN_C_DECL xnEnumerationErrorsGetNext(XnEnumerationErrorsIterator it)
Iterator End() const
Gets an iterator representing the end of the list. This iterator does not point to an actual item...
Definition: XnCppWrapper.h:5358
XnStatus RegisterToCalibrationComplete(CalibrationComplete handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when calibration is complete, with status. For full details and usage, see xnRegisterToCalibrationComplete
Definition: XnCppWrapper.h:4412
XN_C_API XnNodeInfo *XN_C_DECL xnNodeInfoListGetCurrent(XnNodeInfoListIterator it)
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetSupportedMinUserPositions(XnNodeQuery *pQuery, const XnUInt32 nCount)
struct XnNodeInfoList XnNodeInfoList
Definition: XnTypes.h:187
XnBool IsGenerating() const
Checks if this node is currently generating. For full details and usage, see xnIsGenerating ...
Definition: XnCppWrapper.h:2179
#define XN_CAPABILITY_HUE
Definition: XnTypes.h:305
XN_C_API XnStatus XN_C_DECL xnCreateDevice(XnContext *pContext, XnNodeHandle *phDevice, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates a device node.
XnStatus RegisterToCalibrationStart(CalibrationStart handler, void *pCookie, XnCallbackHandle &hCallback)
Register to calibration start callback. For full details and usage, see xnRegisterToCalibrationStart ...
Definition: XnCppWrapper.h:4329
XN_C_API void XN_C_DECL xnGetSceneMetaData(XnNodeHandle hInstance, XnSceneMetaData *pMetaData)
Gets the current scene meta data.
XN_C_API XnStatus XN_C_DECL xnContextRunXmlScript(XnContext *pContext, const XnChar *xmlScript, XnEnumerationErrors *pErrors)
Runs an XML script in the given context. NOTE: when using this function, the context will be the owne...
XN_C_API const XnChar *XN_C_DECL xnResolutionGetName(XnResolution resolution)
XN_C_API XnNodeInfoListIterator XN_C_DECL xnNodeInfoListGetLast(XnNodeInfoList *pList)
XnCodecID GetCodecID() const
For full details and usage, see xnGetCodecID
Definition: XnCppWrapper.h:5220
XnStatus RegisterToPoseDetected(PoseDetection handler, void *pCookie, XnCallbackHandle &hCallback)
Register to callback when a user is in pose. For full details and usage, see xnRegisterToPoseDetected...
Definition: XnCppWrapper.h:4629
XN_C_API XnStatus XN_C_DECL xnGetActiveGestures(XnNodeHandle hInstance, XnChar **pstrGestures, XnUInt16 *nGestures)
Get the names of the gestures that are currently active.
GeneralIntCapability GetPanCap()
Definition: XnCppWrapper.h:2836
XnStatus SetDestination(XnRecordMedium destType, const XnChar *strDest)
Tells the recorder where to record. For full details and usage, see xnSetRecorderDestination ...
Definition: XnCppWrapper.h:2364
XN_C_API XnStatus XN_C_DECL xnRegisterToPixelFormatChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to pixel format changes.
XnStatus EnumerateLicenses(XnLicense *&aLicenses, XnUInt32 &nCount) const
For full details and usage, see xnEnumerateLicenses
Definition: XnCppWrapper.h:5666
ImageGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3157
~NodeInfoList()
Dtor.
Definition: XnCppWrapper.h:1491
XN_C_API XnStatus XN_C_DECL xnCopyAudioMetaData(XnAudioMetaData *pDestination, const XnAudioMetaData *pSource)
Shallow-Copies an Audio Meta Data object. Note that the data buffer is not copied, and that both object will point to the same buffer.
XnStatus GetSupportedWaveOutputModes(XnWaveOutputMode *aSupportedModes, XnUInt32 &nCount) const
For full details and usage, see xnGetSupportedWaveOutputModes
Definition: XnCppWrapper.h:5082
void UnregisterFromViewPointChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToViewPointChange(). For full details and usage, see xnUnregisterFromViewPointChange
Definition: XnCppWrapper.h:2095
XnStatus RegisterToCalibrationInProgress(CalibrationInProgress handler, void *pCookie, XnCallbackHandle &hCallback)
Register to calibration status while calibration is in progress. For full details and usage...
Definition: XnCppWrapper.h:4369
XN_C_API void XN_C_DECL xnUnregisterFromEndOfFileReached(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToEndOfFileReached().
XnStatus Clear()
For full details and usage, see xnNodeInfoListClear
Definition: XnCppWrapper.h:1583
XnPowerLineFrequency GetPowerLineFrequency()
Gets the power line frequency. For full details and usage, see xnGetPowerLineFrequency ...
Definition: XnCppWrapper.h:2628
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAdd(XnNodeInfoList *pList, const XnProductionNodeDescription *pDescription, const XnChar *strCreationInfo, XnNodeInfoList *pNeededNodes)
HandTouchingFOVEdgeCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:3776
XN_C_API void XN_C_DECL xnOSFree(const void *pMemBlock)
void UnregisterFromUserPositionChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToUserPositionChange. For full details and usage, see xnUnregisterFromUserPositionChange
Definition: XnCppWrapper.h:2972
XN_C_API XnResolution XN_C_DECL xnResolutionGetFromXYRes(XnUInt32 xRes, XnUInt32 yRes)
XnStatus RegisterUserCallbacks(UserHandler NewUserCB, UserHandler LostUserCB, void *pCookie, XnCallbackHandle &hCallback)
Register to user callbacks. For full details and usage, see xnRegisterUserCallbacks ...
Definition: XnCppWrapper.h:4848
Player(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2411
Definition: XnCppWrapper.h:1137
XN_C_API XnStatus XN_C_DECL xnGetRecorderDestination(XnNodeHandle hRecorder, XnRecordMedium *pDestType, XnChar *strDest, XnUInt32 nBufSize)
Returns the recoder's destination.
XN_C_API XnStatus XN_C_DECL xnSeekPlayerToFrame(XnNodeHandle hPlayer, const XnChar *strNodeName, XnInt32 nFrameOffset, XnPlayerSeekOrigin origin)
Seeks the player to a specific frame of a specific played node, so that playing will continue from th...
Definition: XnTypes.h:411
XN_C_API XnStatus XN_C_DECL xnNodeQueryAllocate(XnNodeQuery **ppQuery)
DepthGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:2991
XnStatus GetCoM(XnUserID user, XnPoint3D &com) const
Get the center of mass of a user. For full details and usage, see xnGetUserCoM
Definition: XnCppWrapper.h:4832
GeneralIntCapability GetZoomCap()
Definition: XnCppWrapper.h:2866
XN_C_API XnEnumerationErrorsIterator XN_C_DECL xnEnumerationErrorsGetFirst(const XnEnumerationErrors *pErrors)
XN_C_API XnStatus XN_C_DECL xnSetViewPoint(XnNodeHandle hInstance, XnNodeHandle hOther)
Sets the view point of this generator to look like as if placed at another generator location...
XN_C_API XnStatus XN_C_DECL xnCreateRecorder(XnContext *pContext, const XnChar *strFormatName, XnNodeHandle *phRecorder)
Creates a recorder.
XnUInt16 XnLabel
Definition: XnTypes.h:287
XnBool IsGestureAvailable(const XnChar *strGesture) const
Check if a specific gesture is available in this generator. For full details and usage, see xnIsGestureAvailable
Definition: XnCppWrapper.h:3484
void UnregisterFromNewDataAvailable(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToNewDataAvailable(). For full details and usage, see xnUnregisterFromNewDataAvailable
Definition: XnCppWrapper.h:2219
XN_C_API XnStatus XN_C_DECL xnStartPoseDetection(XnNodeHandle hInstance, const XnChar *strPose, XnUserID user)
Start detection of a specific pose for a specific user.
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAddEx(XnNodeInfoList *pList, const XnProductionNodeDescription *pDescription, const XnChar *strCreationInfo, XnNodeInfoList *pNeededNodes, const void *pAdditionalData, XnFreeHandler pFreeHandler)
XnStatus LoadCalibrationDataFromFile(XnUserID user, const XnChar *strFileName)
Load previously saved calibration data from file. For full details and usage, see xnLoadSkeletonCalib...
Definition: XnCppWrapper.h:4182
XnStatus SetRealProperty(const XnChar *strName, XnDouble dValue)
Sets a real property. For full details and usage, see xnSetRealProperty
Definition: XnCppWrapper.h:1800
XnBool IsEOF() const
Checks whether the player is at the end-of-file marker. For full details and usage, see xnIsPlayerAtEOF
Definition: XnCppWrapper.h:2516
XnStatus RemoveNeededNode(ProductionNode &needed)
Removes a needed node from the list of needed nodes. For full details and usage, see xnRemoveNeededNo...
Definition: XnCppWrapper.h:1771
XnStatus Add(XnProductionNodeDescription &description, const XnChar *strCreationInfo, NodeInfoList *pNeededNodes)
For full details and usage, see xnNodeInfoListAdd
Definition: XnCppWrapper.h:1515
Recorder(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2353
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a Gesture Generator. For full details and usage, see xnCreateGestureGenerator ...
Definition: XnCppWrapper.h:6232
XnGrayscale16Pixel XnIRPixel
Definition: XnTypes.h:284
CroppingCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:2566
XnStatus RegisterToViewPointChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to view point changes. For full details and usage, see xnRegisterToView...
Definition: XnCppWrapper.h:2087
XN_C_API void XN_C_DECL xnUnregisterFromGlobalErrorStateChange(XnContext *pContext, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGlobalErrorStateChange().
XnStatus FilterList(Context &context, Query &query)
For full details and usage, see xnNodeQueryFilterList
Definition: XnCppWrapper.h:6043
XnStatus AddRef()
References a production node, increasing its reference count by 1. For full details and usage...
Definition: XnCppWrapper.h:1060
Definition: XnCppWrapper.h:5039
XN_C_API XnStatus XN_C_DECL xnSetRealProperty(XnNodeHandle hInstance, const XnChar *strName, XnDouble dValue)
Sets a real property.
Definition: XnTypes.h:269
bool operator<=(const Version &other) const
Definition: XnCppWrapper.h:100
XnStatus AddEx(XnProductionNodeDescription &description, const XnChar *strCreationInfo, NodeInfoList *pNeededNodes, const void *pAdditionalData, XnFreeHandler pFreeHandler)
For full details and usage, see xnNodeInfoListAddEx
Definition: XnCppWrapper.h:1524
XN_C_API XnStatus XN_C_DECL xnCopyIRMetaData(XnIRMetaData *pDestination, const XnIRMetaData *pSource)
Shallow-Copies an IR Meta Data object. Note that the data buffer is not copied, and that both object ...
XN_C_API XnStatus XN_C_DECL xnGetSkeletonJointPosition(XnNodeHandle hInstance, XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointPosition *pJoint)
Get a specific joint's position.
void(* CalibrationStart)(SkeletonCapability &skeleton, XnUserID user, void *pCookie)
Definition: XnCppWrapper.h:4274
XnStatus InitFromXmlFile(const XnChar *strFileName, ScriptNode &scriptNode, EnumerationErrors *pErrors=NULL)
Initializes OpenNI context, and then configures it using the given file. NOTE: when using this functi...
Definition: XnCppWrapper.h:5533
GeneralIntCapability GetGammaCap()
Definition: XnCppWrapper.h:2796
XN_C_API XnStatus XN_C_DECL xnRegisterToGenerationRunningChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to be called when generation starts or stops.
Iterator & operator++()
Definition: XnCppWrapper.h:5329
XN_C_API XnStatus XN_C_DECL xnEncodeData(XnNodeHandle hCodec, const void *pSrc, XnUInt32 nSrcSize, void *pDst, XnUInt32 nDstSize, XnUInt *pnBytesWritten)
XnStatus GetAvailablePoses(XnChar **pstrPoses, XnUInt32 &nPoses) const
Get the names of the supported poses. For full details and usage, see xnGetAvailablePoses ...
Definition: XnCppWrapper.h:4557
XnStatus SetUserPosition(XnUInt32 nIndex, const XnBoundingBox3D &Position)
Sets the current user position. For full details and usage, see xnSetUserPosition ...
Definition: XnCppWrapper.h:2948
XN_C_API XnStatus XN_C_DECL xnSetPixelFormat(XnNodeHandle hInstance, XnPixelFormat Format)
Sets the pixel format of the image map.
void TakeOwnership(XnNodeHandle hNode)
Definition: XnCppWrapper.h:1108
XN_C_API XnStatus XN_C_DECL xnEnumerateAllGestures(XnNodeHandle hInstance, XnChar **pstrGestures, XnUInt32 nNameLength, XnUInt16 *nGestures)
Get the names of all gestures available.
XnStatus SetViewPoint(ProductionNode &otherNode)
Sets the view point of this generator to look like as if placed at another generator location...
Definition: XnCppWrapper.h:2063
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnIRPixel *pIRMap)
For full details and usage, see xnMockIRSetData
Definition: XnCppWrapper.h:3386
Definition: XnTypes.h:109
XN_C_API XnStatus XN_C_DECL xnStopTracking(XnNodeHandle hInstance, XnUserID user)
Stop tracking a specific hand.
XN_C_API XnStatus XN_C_DECL xnSetSkeletonProfile(XnNodeHandle hInstance, XnSkeletonProfile eProfile)
Set the profile. this will set some joints to be active, and others to be inactive.
ScriptNode(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5254
XnPixelFormat GetPixelFormat() const
Gets current pixel format. For full details and usage, see xnGetPixelFormat
Definition: XnCppWrapper.h:3232
XN_C_API XnGrayscale8Pixel *XN_C_DECL xnGetGrayscale8ImageMap(XnNodeHandle hInstance)
Gets the current Grayscale8 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in Grayscale8 pixel format.
XN_C_API XnStatus XN_C_DECL xnCreateGestureGenerator(XnContext *pContext, XnNodeHandle *phGestureGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates a Gesture Generator.
XnStatus InitFromXmlFile(const XnChar *strFileName, EnumerationErrors *pErrors=NULL)
Initializes OpenNI context, and then configures it using the given file. NOTE: when using this functi...
Definition: XnCppWrapper.h:5513
HandsGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3854
PoseDetectionCapability GetPoseDetectionCap()
Definition: XnCppWrapper.h:4915
void(* PoseDetection)(PoseDetectionCapability &pose, const XnChar *strPose, XnUserID user, void *pCookie)
Definition: XnCppWrapper.h:4544
#define XN_CAPABILITY_GAIN
Definition: XnTypes.h:311
XnNodeInfoListNode * pCurrent
Definition: XnTypes.h:194
XN_C_API XnStatus XN_C_DECL xnRegisterToGestureChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when gestures are added or removed.
XN_C_API XnStatus XN_C_DECL xnRegisterToHandTouchingFOVEdge(XnNodeHandle hInstance, XnHandTouchingFOVEdge handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when a hand is approaching the edge of the FOV.
XN_C_API void XN_C_DECL xnUnregisterFromPoseDetectionInProgress(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from pose status callback.
XN_C_API XnStatus XN_C_DECL xnInit(XnContext **ppContext)
Initializes the OpenNI library.
const XnRGB24Pixel * GetRGB24ImageMap() const
Gets the current RGB24 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in RGB24 pixel format. For full details and usage, see xnGetRGB24ImageMap
Definition: XnCppWrapper.h:3176
XN_C_API XnStatus XN_C_DECL xnCreateAudioGenerator(XnContext *pContext, XnNodeHandle *phAudioGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an audio generator.
Definition: XnCppWrapper.h:1255
XnUInt64 GetTimestamp() const
Gets the timestamp of current data, in microseconds. For full details and usage, see xnGetTimestamp ...
Definition: XnCppWrapper.h:2267
void UnregisterFromPixelFormatChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToPixelFormatChange. For full details and usage, see xnUnregisterFromPixelFormatChange
Definition: XnCppWrapper.h:3248
Definition: XnCppWrapper.h:3320
Definition: XnCppWrapper.h:5397
bool operator!=(const Version &other) const
Definition: XnCppWrapper.h:92
Definition: XnTypes.h:496
void * XnCallbackHandle
Definition: XnTypes.h:247
bool operator>=(const Version &other) const
Definition: XnCppWrapper.h:108
Generator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2165
XnStatus RunXmlScriptFromFile(const XnChar *strFileName, ScriptNode &scriptNode, EnumerationErrors *pErrors=NULL)
Runs an XML script in the given context. NOTE: when using this function, the context will be the owne...
Definition: XnCppWrapper.h:5497
XnCalibrationStatus
Definition: XnTypes.h:652
XN_C_API void XN_C_DECL xnShutdown(XnContext *pContext)
Shuts down an OpenNI context, destroying all its nodes. Do not call any function of this context or a...
Definition: XnTypes.h:456
~Query()
Dtor.
Definition: XnCppWrapper.h:1269
XnStatus SaveCalibrationDataToFile(XnUserID user, const XnChar *strFileName)
Save the calibration data to file. For full details and usage, see xnSaveSkeletonCalibrationDataToFil...
Definition: XnCppWrapper.h:4174
XnStatus SetData(const DepthMetaData &depthMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
Definition: XnCppWrapper.h:3129
Iterator End() const
Gets an iterator marking the end of the list. This iterator does not point to a valid item...
Definition: XnCppWrapper.h:1553
XnStatus StartGenerating()
Starts generation of the output. This will also cause all dependencies to start generating. For full details and usage, see xnStartGenerating
Definition: XnCppWrapper.h:2171
XN_C_API XnBool XN_C_DECL xnIsDataNew(XnNodeHandle hInstance)
Checks whether current data is new. Meaning, did the data change on the last call to xnWaitAndUpdateA...
NodeInfo(XnNodeInfo *pInfo)
Definition: XnCppWrapper.h:1145
Context & operator=(const Context &other)
Definition: XnCppWrapper.h:5430
XN_C_API XnBool XN_C_DECL xnIsSkeletonCalibrated(XnNodeHandle hInstance, XnUserID user)
Check if skeleton is being calibrated.
XN_C_API const XnProductionNodeDescription *XN_C_DECL xnNodeInfoGetDescription(XnNodeInfo *pNodeInfo)
XnStatus OpenFileRecording(const XnChar *strFileName)
Opens a recording file, adding all nodes in it to the context. NOTE: when using this function...
Definition: XnCppWrapper.h:5551
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates an scene analyzer. For full details and usage, see xnCreateSceneAnalyzer
Definition: XnCppWrapper.h:6241
XN_C_API XnStatus XN_C_DECL xnWaitAndUpdateData(XnNodeHandle hInstance)
Updates the data to the latest available one. If needed, the call will block until new data is availa...
XnStatus Init()
Initializes the OpenNI library. For full details and usage, see xnInit
Definition: XnCppWrapper.h:5442
XN_C_API XnStatus XN_C_DECL xnAddNodeToRecording(XnNodeHandle hRecorder, XnNodeHandle hNode, XnCodecID compression)
Adds a node to recording and start recording it. This function must be called on each node that is to...
XN_C_API void XN_C_DECL xnGetImageMetaData(XnNodeHandle hInstance, XnImageMetaData *pMetaData)
Gets the current image-map meta data.
Query(XnNodeQuery *pNodeQuery)
Definition: XnCppWrapper.h:1264
XnBool IsGestureProgressSupported(const XnChar *strGesture) const
Check if the specific gesture supports 'in progress' callbacks. For full details and usage...
Definition: XnCppWrapper.h:3492
DeviceIdentificationCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:1930
XN_C_API XnStatus XN_C_DECL xnEnumeratePlayerNodes(XnNodeHandle hPlayer, XnNodeInfoList **ppList)
Retrieves a list of the nodes played by a player.
struct XnNodeQuery XnNodeQuery
Definition: XnTypes.h:197
void(* GestureProgress)(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pPosition, XnFloat fProgress, void *pCookie)
Definition: XnCppWrapper.h:3516
#define XN_CAPABILITY_ROLL
Definition: XnTypes.h:314
NodeInfoList & GetNeededNodes() const
For full details and usage, see xnNodeInfoGetNeededNodes
Definition: XnCppWrapper.h:6053
XnStatus SetName(const XnChar *strName)
For full details and usage, see xnNodeQuerySetName()
Definition: XnCppWrapper.h:1292
XnStatus RunXmlScript(const XnChar *strScript, ScriptNode &scriptNode, EnumerationErrors *pErrors=NULL)
Runs an XML script in the given context. NOTE: when using this function, the context will be the owne...
Definition: XnCppWrapper.h:5469
Definition: XnCppWrapper.h:2041
static XnStatus UnregisterFromUnderlying(_XnUnregisterStateChangeFuncPtr xnFunc, XnNodeHandle hNode, XnCallbackHandle hCallback)
Definition: XnCppWrapper.h:6371
XnStatus GetAllActiveGestures(XnChar **astrGestures, XnUInt32 nNameLength, XnUInt16 &nGestures) const
Get the names of the gestures that are currently active. For full details and usage, see xnGetActiveGestures
Definition: XnCppWrapper.h:3461
XN_C_API XnStatus XN_C_DECL xnSeekPlayerToTimeStamp(XnNodeHandle hPlayer, XnInt64 nTimeOffset, XnPlayerSeekOrigin origin)
Seeks the player to a specific timestamp, so that playing will continue from that point onwards...
XnUInt32 XnCodecID
Definition: XnTypes.h:806
XnDouble GetPlaybackSpeed() const
Gets the playback speed. see xnSetPlaybackSpeed() for more details. For full details and usage...
Definition: XnCppWrapper.h:2548
XnBool IsPixelFormatSupported(XnPixelFormat Format) const
Checks if a specific pixel format is supported. For full details and usage, see xnIsPixelFormatSuppor...
Definition: XnCppWrapper.h:3216
void UnregisterFromMapOutputModeChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToMapOutputModeChange. For full details and usage, see xnUnregisterFromMapOutputModeChange
Definition: XnCppWrapper.h:2716
struct XnNodeInfo XnNodeInfo
Definition: XnTypes.h:177
XN_C_API XnStatus XN_C_DECL xnRemoveNeededNode(XnNodeHandle hInstance, XnNodeHandle hNeededNode)
Removes a needed node from the list of needed nodes.
XN_C_API void XN_C_DECL xnUnregisterFromFrameSyncChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToFrameSyncChange().
XN_C_API XnStatus XN_C_DECL xnCreatePlayer(XnContext *pContext, const XnChar *strFormatName, XnNodeHandle *phPlayer)
Creates a player.
XnStatus SetCreationInfo(const XnChar *strCreationInfo)
For full details and usage, see xnNodeQuerySetCreationInfo
Definition: XnCppWrapper.h:1356
void UnregisterFromGestureReadyForNextIntermediateStageCallbacks(XnCallbackHandle hCallback)
Unregister from when a gesture is ready for its next stage. For full details and usage, see xnUnregisterFromGestureReadyForNextIntermediateStage
Definition: XnCppWrapper.h:3647
Definition: XnTypes.h:493
NodeWrapper & operator=(const NodeWrapper &other)
Definition: XnCppWrapper.h:1013
void(* CalibrationComplete)(SkeletonCapability &skeleton, XnUserID user, XnCalibrationStatus calibrationError, void *pCookie)
Definition: XnCppWrapper.h:4408
const ErrorStateCapability GetErrorStateCap() const
Definition: XnCppWrapper.h:1890
XN_C_API XnStatus XN_C_DECL xnEnumerateLicenses(XnContext *pContext, XnLicense **paLicenses, XnUInt32 *pnCount)
Definition: XnCppWrapper.h:3258
XnStatus SetVendor(const XnChar *strVendor)
For full details and usage, see xnNodeQuerySetVendor()
Definition: XnCppWrapper.h:1284
XN_C_API XnStatus XN_C_DECL xnStartSkeletonTracking(XnNodeHandle hInstance, XnUserID user)
Start tracking a skeleton.
XnStatus GetAllAvailablePoses(XnChar **pstrPoses, XnUInt32 nNameLength, XnUInt32 &nPoses) const
Get the names of the supported poses. For full details and usage, see xnGetAvailablePoses ...
Definition: XnCppWrapper.h:4564
XN_C_API XnStatus XN_C_DECL xnSaveSkeletonCalibrationDataToFile(XnNodeHandle hInstance, XnUserID user, const XnChar *strFileName)
Save the calibration data to file.
XN_C_API XnStatus XN_C_DECL xnStartGenerating(XnNodeHandle hInstance)
Starts generation of the output. This will also cause all dependencies to start generating.
XnStatus RegisterHandCallbacks(HandCreate CreateCB, HandUpdate UpdateCB, HandDestroy DestroyCB, void *pCookie, XnCallbackHandle &hCallback)
Register to hands callbacks. For full details and usage, see xnRegisterHandCallbacks ...
Definition: XnCppWrapper.h:3894
void UnregisterFromGestureIntermediateStageCompleted(XnCallbackHandle hCallback)
Unregister from when a gesture is in progress. For full details and usage, see xnUnregisterFromGestur...
Definition: XnCppWrapper.h:3604
XN_C_API XnStatus XN_C_DECL xnInitFromXmlFile(const XnChar *strFileName, XnContext **ppContext, XnEnumerationErrors *pErrors)
Initializes OpenNI context, and then configures it using the given file. NOTE: when using this functi...
XnBool IsJointAvailable(XnSkeletonJoint eJoint) const
Check if generator supports a specific joint. For full details and usage, see xnIsJointAvailable ...
Definition: XnCppWrapper.h:4036
XnStatus SetInstanceName(const XnChar *strName)
For full details and usage, see xnNodeInfoSetInstanceName
Definition: XnCppWrapper.h:1187
XN_C_API XnStatus XN_C_DECL xnGetRealProperty(XnNodeHandle hInstance, const XnChar *strName, XnDouble *pdValue)
Gets a real property.
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAddNode(XnNodeInfoList *pList, XnNodeInfo *pNode)
XN_C_API XnStatus XN_C_DECL xnGetVendorSpecificData(XnNodeHandle hInstance, XnChar *strBuffer, XnUInt32 *pnBufferSize)
XN_C_API XnStatus XN_C_DECL xnGetCropping(XnNodeHandle hInstance, XnCropping *pCropping)
Gets current cropping configuration.
XN_C_API XnStatus XN_C_DECL xnEnumerateExistingNodesByType(XnContext *pContext, XnProductionNodeType type, XnNodeInfoList **ppList)
Gets a list of all existing node in the context. Each node that was returned increases its ref count...
void UnregisterFromMirrorChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToMirrorChange(). For full details and usage, see xnUnregisterFromMirrorChange
Definition: XnCppWrapper.h:2031
XnStatus RegisterToErrorStateChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to error state changes. For full details and usage, see xnRegisterToNod...
Definition: XnCppWrapper.h:1670
XN_C_API void XN_C_DECL xnUnregisterFromMirrorChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToMirrorChange().
Definition: XnTypes.h:202
const XnProductionNodeDescription & Description()
Gets the description of the failing node this iterator points to.
Definition: XnCppWrapper.h:5345
XN_C_API XnDouble XN_C_DECL xnGetPlaybackSpeed(XnNodeHandle hInstance)
Gets the playback speed. see xnSetPlaybackSpeed() for more details.
XN_C_API XnStatus XN_C_DECL xnCreateHandsGenerator(XnContext *pContext, XnNodeHandle *phHandsGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an hands generator.
UserGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:4804
XN_C_API XnStatus XN_C_DECL xnFrameSyncWith(XnNodeHandle hInstance, XnNodeHandle hOther)
Activates frame sync with the other node.
static void FreeLicensesList(XnLicense aLicenses[])
For full details and usage, see xnFreeLicensesList
Definition: XnCppWrapper.h:5674
XN_C_API XnStatus XN_C_DECL xnWaitNoneUpdateAll(XnContext *pContext)
Updates all generator nodes in the context, without any waiting. If a node has new data...
XnStatus GetSerialNumber(XnChar *strBuffer, XnUInt32 nBufferSize)
For full details and usage, see xnGetSerialNumber
Definition: XnCppWrapper.h:1952
XN_C_API XnStatus XN_C_DECL xnSetPlayerSource(XnNodeHandle hPlayer, XnRecordMedium sourceType, const XnChar *strSource)
Sets the source for the player, i.e. where the played events will come from.
XnStatus AddNode(NodeInfo &info)
For full details and usage, see xnNodeInfoListAddNode
Definition: XnCppWrapper.h:1533
XN_C_API XnBool XN_C_DECL xnIsSkeletonTracking(XnNodeHandle hInstance, XnUserID user)
Check if skeleton is being tracked.
XN_C_API XnStatus xnRegisterToOutOfPose(XnNodeHandle hInstance, XnPoseDetectionCallback handler, void *pCookie, XnCallbackHandle *phCallback)
Register to callback when a use is no longer in pose.
void UnregisterFromPoseCallbacks(XnCallbackHandle hCallback)
Unregister from calibration callbacks. For full details and usage, see xnUnregisterCalibrationCallbac...
Definition: XnCppWrapper.h:4616
XN_C_API XnStatus XN_C_DECL xnGetStringProperty(XnNodeHandle hInstance, const XnChar *strName, XnChar *csValue, XnUInt32 nBufSize)
Gets a string property.
XN_C_API XnStatus XN_C_DECL xnContextRegisterForShutdown(XnContext *pContext, XnContextShuttingDownHandler pHandler, void *pCookie, XnCallbackHandle *phCallback)
Registers for context shutting down event. This function is used for backwards compatibility and shou...
XnStatus CreateProductionTree(NodeInfo &Tree)
Creates a production node. If the tree specifies additional needed nodes, and those nodes do not exis...
Definition: XnCppWrapper.h:5718
XN_C_API const XnChar *XN_C_DECL xnNodeInfoGetInstanceName(XnNodeInfo *pNodeInfo)
Definition: XnCppWrapper.h:1744
void GetMetaData(IRMetaData &metaData) const
Gets the current IR-map meta data. For full details and usage, see xnGetIRMetaData ...
Definition: XnCppWrapper.h:3339
#define XN_NEW(type, arg)
Definition: XnOS.h:339
XN_C_API XnUInt32 XN_C_DECL xnResolutionGetXRes(XnResolution resolution)
XN_C_API void XN_C_DECL xnUnregisterFromHandTouchingFOVEdge(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from hand approaching the edge of the FOV.
Resolution(XnUInt32 xRes, XnUInt32 yRes)
Definition: XnCppWrapper.h:6005
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAddNodeFromList(XnNodeInfoList *pList, XnNodeInfoListIterator otherListIt)
const UserPositionCapability GetUserPositionCap() const
Definition: XnCppWrapper.h:3067
XN_C_API void XN_C_DECL xnUnregisterFromCalibrationComplete(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from calibration complete with status.
XN_C_API XnStatus XN_C_DECL xnPlayerReadNext(XnNodeHandle hPlayer)
Reads the next data element from the player.
NodeInfo GetInfo() const
Gets information about a specific node, like its description, and dependent nodes. For full details and usage, see xnGetNodeInfo
Definition: XnCppWrapper.h:1758
XN_C_API XnStatus XN_C_DECL xnContextOpenFileRecordingEx(XnContext *pContext, const XnChar *strFileName, XnNodeHandle *phPlayerNode)
Opens a recording file, adding all nodes in it to the context.
XN_C_API void XN_C_DECL xnOSMemSet(void *pDest, XnUInt8 nValue, XnSizeT nCount)
Definition: XnCppWrapper.h:5984
XnStatus RegisterToJointConfigurationChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Register to joint configuration changes - when joints are activated and deactivated. For full details and usage, see xnRegisterToJointConfigurationChange
Definition: XnCppWrapper.h:4085
XN_C_API void XN_C_DECL xnUnregisterFromPixelFormatChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToPixelFormatChange.
FrameSyncCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:2113
XN_C_API void xnUnregisterFromPoseDetected(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from pose detected callback.
Definition: XnCppWrapper.h:76
Context()
Ctor.
Definition: XnCppWrapper.h:5401
Definition: XnCppWrapper.h:3149
NodeInfoList(XnNodeInfoList *pList)
Definition: XnCppWrapper.h:1488
EnumerationErrors()
Ctor.
Definition: XnCppWrapper.h:5286
void(* HandTouchingFOVEdge)(HandTouchingFOVEdgeCapability &touchingfov, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, XnDirection eDir, void *pCookie)
Definition: XnCppWrapper.h:3788
XN_C_API XnDepthPixel XN_C_DECL xnGetDeviceMaxDepth(XnNodeHandle hInstance)
Gets the maximum depth the device can produce.
XnStatus WaitAndUpdateAll()
Updates all generators nodes in the context, waiting for all to have new data. For full details and u...
Definition: XnCppWrapper.h:5885
XnStatus SetSmoothing(XnFloat fSmoothingFactor)
Set the skeleton's smoothing factor. For full details and usage, see xnSetSkeletonSmoothing ...
Definition: XnCppWrapper.h:4262
const XnChar * GetSupportedFormat() const
Gets the name of the format supported by a player. For full details and usage, see xnGetPlayerSupport...
Definition: XnCppWrapper.h:2494
struct XnRGB24Pixel XnRGB24Pixel
XnStatus GetFieldOfView(XnFieldOfView &FOV) const
Gets the Field-Of-View of the depth generator, in radians. For full details and usage, see xnGetDepthFieldOfView
Definition: XnCppWrapper.h:3025
Definition: XnTypes.h:140
XnStatus SaveCalibrationData(XnUserID user, XnUInt32 nSlot)
Save the calibration data. For full details and usage, see xnSaveSkeletonCalibrationData ...
Definition: XnCppWrapper.h:4190
#define XN_DELETE(p)
Definition: XnOS.h:343
XnStatus DecodeData(const void *pSrc, XnUInt32 nSrcSize, void *pDst, XnUInt32 nDstSize, XnUInt *pnBytesWritten) const
For full details and usage, see xnDecodeData
Definition: XnCppWrapper.h:5236
XN_C_API XnNodeInfoList *XN_C_DECL xnNodeInfoGetNeededNodes(XnNodeInfo *pNodeInfo)
Definition: XnCppWrapper.h:2403
XN_C_API void XN_C_DECL xnUnregisterFromGeneralIntValueChange(XnNodeHandle hNode, const XnChar *strCap, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGeneralIntValueChange().
XnStatus AddLicense(const XnLicense &License)
For full details and usage, see xnAddLicense
Definition: XnCppWrapper.h:5658
XN_C_API XnStatus XN_C_DECL xnWaitAndUpdateAll(XnContext *pContext)
Updates all generators nodes in the context, waiting for all to have new data.
XnStatus EnumerateProductionTrees(XnProductionNodeType Type, const Query *pQuery, NodeInfoList &TreesList, EnumerationErrors *pErrors=NULL) const
Enumerates all available production trees for a specific node type. The trees populated in the list s...
Definition: XnCppWrapper.h:5682
XnStatus RegisterToGestureIntermediateStageCompleted(GestureIntermediateStageCompleted handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when a gesture is in progress. For full details and usage, see xnRegisterToGestureInterme...
Definition: XnCppWrapper.h:3581
XnStatus Run(EnumerationErrors *pErrors)
Definition: XnCppWrapper.h:6316
bool operator<(const Version &other) const
Definition: XnCppWrapper.h:96
XnUInt32 nBuild
Definition: XnTypes.h:156
XN_C_API XnStatus XN_C_DECL xnNodeQueryAddNeededNode(XnNodeQuery *pQuery, const XnChar *strInstanceName)
XN_C_API void *XN_C_DECL xnOSMallocAligned(const XnSizeT nAllocSize, const XnSizeT nAlignment)
XN_C_API XnStatus XN_C_DECL xnCreateMockNodeBasedOn(XnContext *pContext, XnNodeHandle hOriginalNode, const XnChar *strName, XnNodeHandle *phMockNode)
Creates a production node which is only a mock, base on the type and properties of another node...
XnStatus EnumerateNodes(NodeInfoList &list) const
Retrieves a list of the nodes played by a player. For full details and usage, see xnEnumeratePlayerNo...
Definition: XnCppWrapper.h:2502
Device(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:1970
Definition: XnCppWrapper.h:1922
XN_C_API XnStatus XN_C_DECL xnStartGeneratingAll(XnContext *pContext)
Make sure all generators are generating data.
XN_C_API XnStatus XN_C_DECL xnStartTracking(XnNodeHandle hInstance, const XnPoint3D *pPosition)
Start tracking at a specific position.
XN_C_API XnStatus XN_C_DECL xnSetGeneralProperty(XnNodeHandle hInstance, const XnChar *strName, XnUInt32 nBufferSize, const void *pBuffer)
Sets a buffer property.
XnBool operator!=(const NodeWrapper &other)
Definition: XnCppWrapper.h:1044
Definition: XnCppWrapper.h:3418
void GetMetaData(ImageMetaData &metaData) const
Gets the current image-map meta data. For full details and usage, see xnGetImageMetaData ...
Definition: XnCppWrapper.h:3168
XN_C_API XnStatus XN_C_DECL xnRegisterToCalibrationComplete(XnNodeHandle hInstance, XnCalibrationComplete handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when calibration is complete, with status.
XnUInt8 nMajor
Definition: XnTypes.h:153
XnStatus EnumerateAllGestures(XnChar **astrGestures, XnUInt32 nNameLength, XnUInt16 &nGestures) const
Get the names of all gestures available. For full details and usage, see xnEnumerateAllGestures ...
Definition: XnCppWrapper.h:3476
XnUInt16 nBitsPerSample
Definition: XnTypes.h:437
XN_C_API XnStatus XN_C_DECL xnRegisterHandCallbacks(XnNodeHandle hInstance, XnHandCreate CreateCB, XnHandUpdate UpdateCB, XnHandDestroy DestroyCB, void *pCookie, XnCallbackHandle *phCallback)
Register to hands callbacks.
XnResolution GetResolution() const
Gets the resolution.
Definition: XnCppWrapper.h:6025
XN_C_API XnStatus XN_C_DECL xnContextRunXmlScriptFromFileEx(XnContext *pContext, const XnChar *strFileName, XnEnumerationErrors *pErrors, XnNodeHandle *phScriptNode)
Runs an XML script in the given context.
XnUInt16 nMaintenance
Definition: XnTypes.h:155
XN_C_API XnBool XN_C_DECL xnIsGestureProgressSupported(XnNodeHandle hInstance, const XnChar *strGesture)
Check if the specific gesture supports 'in progress' callbacks.
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetMaxVersion(XnNodeQuery *pQuery, const XnVersion *pMaxVersion)
const XnYUV422DoublePixel * GetYUV422ImageMap() const
Gets the current YUV422 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in YUV422 pixel format. For full details and usage, see xnGetYUV422ImageMap
Definition: XnCppWrapper.h:3184
XnStatus SetPlaybackSpeed(XnDouble dSpeed)
Sets the playback speed, as a ratio of the time passed in the recording. A value of 1...
Definition: XnCppWrapper.h:2540
XN_C_API XnStatus XN_C_DECL xnCreateIRGenerator(XnContext *pContext, XnNodeHandle *phIRGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an IR generator.
XnSkeletonJoint
Definition: XnTypes.h:590
XnStatus TellTimestamp(XnUInt64 &nTimestamp) const
Reports the current timestamp of a player, i.e. the amount of time passed since the beginning of the ...
Definition: XnCppWrapper.h:2470
XnBool IsProfileAvailable(XnSkeletonProfile eProfile) const
Check if generator supports a specific profile. For full details and usage, see xnIsProfileAvailable ...
Definition: XnCppWrapper.h:4044
void Release()
Unreference a production node, decreasing its reference count by 1. If the reference count reaches ze...
Definition: XnCppWrapper.h:1065
void TakeOwnership(XnContext *pContext)
Definition: XnCppWrapper.h:5957
XN_C_API XnStatus XN_C_DECL xnNodeQueryAddSupportedCapability(XnNodeQuery *pQuery, const XnChar *strNeededCapability)
Definition: XnCppWrapper.h:2157
XnStatus Create(Context &context, const XnChar *strFormatName=NULL)
Creates a recorder. For full details and usage, see xnCreateRecorder
Definition: XnCppWrapper.h:6127
XnStatus SetRepeat(XnBool bRepeat)
Determines whether the player will automatically rewind to the beginning of the recording when reachi...
Definition: XnCppWrapper.h:2422
XN_C_API void XN_C_DECL xnUnregisterFromPowerLineFrequencyChange(XnNodeHandle hGenerator, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToPowerLineFrequencyChange().
XnStatus RegisterToUserReEnter(UserHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when a user re-enters the scene after exiting. For full details and usage, see xnRegisterToUserReEnter
Definition: XnCppWrapper.h:4957
XN_C_API XnNodeInfoListIterator XN_C_DECL xnNodeInfoListGetNext(XnNodeInfoListIterator it)
XnStatus SetStringProperty(const XnChar *strName, const XnChar *strValue)
Sets a string property. For full details and usage, see xnSetStringProperty
Definition: XnCppWrapper.h:1808
void UnregisterFromUserReEnter(XnCallbackHandle hCallback)
Unregister from when a user re-enters the scene. For full details and usage, see xnUnregisterFromUser...
Definition: XnCppWrapper.h:4981
XnStatus SetData(const AudioMetaData &audioMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
Definition: XnCppWrapper.h:5166
GestureGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3427
XN_C_API XnStatus XN_C_DECL xnGetUserPixels(XnNodeHandle hInstance, XnUserID user, XnSceneMetaData *pScene)
Get the pixels that belong to a user.
void UnregisterFromWaveOutputModeChanges(XnCallbackHandle hCallback)
For full details and usage, see xnUnregisterFromWaveOutputModeChanges
Definition: XnCppWrapper.h:5114
XnStatus GetStringProperty(const XnChar *strName, XnChar *csValue, XnUInt32 nBufSize) const
Gets a string property. For full details and usage, see xnGetStringProperty
Definition: XnCppWrapper.h:1840
Context(const Context &other)
Definition: XnCppWrapper.h:5419
XnStatus CreateBasedOn(IRGenerator &other, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6221
XnStatus CreateBasedOn(AudioGenerator &other, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6287
Definition: XnCppWrapper.h:5182
XN_C_API XnStatus XN_C_DECL xnRegisterToViewPointChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to view point changes.
XN_C_API XnBool XN_C_DECL xnIsSkeletonCalibrationData(XnNodeHandle hInstance, XnUInt32 nSlot)
Check if a specific slot already holds calibration data.
XN_C_API XnStatus XN_C_DECL xnGetUserPosition(XnNodeHandle hInstance, XnUInt32 nIndex, XnBoundingBox3D *pPosition)
Gets the current user position.
XN_C_API XnStatus XN_C_DECL xnSetStringProperty(XnNodeHandle hInstance, const XnChar *strName, const XnChar *strValue)
Sets a string property.
Definition: XnTypes.h:552
XnStatus AddNeededNode(const XnChar *strInstanceName)
For full details and usage, see xnNodeQueryAddNeededNode
Definition: XnCppWrapper.h:1348
XN_C_API XnStatus XN_C_DECL xnCreateAnyProductionTree(XnContext *pContext, XnProductionNodeType type, XnNodeQuery *pQuery, XnNodeHandle *phNode, XnEnumerationErrors *pErrors)
Enumerates for production trees for a specific node type, and creates the first found tree...
NodeInfoList()
Definition: XnCppWrapper.h:1476
XN_C_API XnBool XN_C_DECL xnIsJointActive(XnNodeHandle hInstance, XnSkeletonJoint eJoint)
Check if joint is currently active.
FrameSyncCapability GetFrameSyncCap()
Definition: XnCppWrapper.h:2335
#define XN_CAPABILITY_IRIS
Definition: XnTypes.h:317
Definition: XnTypes.h:434
XN_C_API XnStatus XN_C_DECL xnSetWaveOutputMode(XnNodeHandle hInstance, const XnWaveOutputMode *OutputMode)
Definition: XnCppWrapper.h:2105
XN_C_API XnStatus XN_C_DECL xnSetSkeletonSmoothing(XnNodeHandle hInstance, XnFloat fFactor)
Set the skeleton's smoothing factor.
Iterator operator++(int)
Definition: XnCppWrapper.h:1417
const XnChar * GetName() const
Gets the name of the resolution.
Definition: XnCppWrapper.h:6031
XN_C_API XnStatus XN_C_DECL xnGetWaveOutputMode(XnNodeHandle hInstance, XnWaveOutputMode *OutputMode)
XN_C_API XnStatus XN_C_DECL xnSetIntProperty(XnNodeHandle hInstance, const XnChar *strName, XnUInt64 nValue)
Sets an integer property.
XnStatus WaitAnyUpdateAll()
Updates all generators nodes in the context, once any of them have new data. For full details and usa...
Definition: XnCppWrapper.h:5893
XnStatus RegisterToGestureReadyForNextIntermediateStage(GestureReadyForNextIntermediateStage handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when a gesture is ready for its next stage (specific to the gesture) For full details and...
Definition: XnCppWrapper.h:3623
Definition: XnCppWrapper.h:4022
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetMinVersion(XnNodeQuery *pQuery, const XnVersion *pMinVersion)
XnSkeletonProfile
Definition: XnTypes.h:623
GeneralIntCapability GetLowLightCompensationCap()
Definition: XnCppWrapper.h:2906
XN_C_API XnGrayscale16Pixel *XN_C_DECL xnGetGrayscale16ImageMap(XnNodeHandle hInstance)
Gets the current Grayscale16 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in Grayscale16 pixel format.
XnBool IsJointActive(XnSkeletonJoint eJoint) const
Check if joint is currently active. For full details and usage, see xnIsJointActive ...
Definition: XnCppWrapper.h:4077
XnStatus GetFloor(XnPlane3D &Plane) const
Gets a description of the floor, if it was found. For full details and usage, see xnGetFloor ...
Definition: XnCppWrapper.h:3757
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates an IR generator. For full details and usage, see xnCreateIRGenerator
Definition: XnCppWrapper.h:6203
AudioGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5047
XN_C_API XnStatus XN_C_DECL xnRegisterUserCallbacks(XnNodeHandle hInstance, XnUserHandler NewUserCB, XnUserHandler LostUserCB, void *pCookie, XnCallbackHandle *phCallback)
Register to user callbacks.
XN_C_API XnStatus XN_C_DECL xnNodeQueryAddSupportedMapOutputMode(XnNodeQuery *pQuery, const XnMapOutputMode *pMapOutputMode)
Player(const NodeWrapper &other)
Definition: XnCppWrapper.h:2412
XN_C_API XnUChar *XN_C_DECL xnGetAudioBuffer(XnNodeHandle hInstance)
void(* XnErrorStateChangedHandler)(XnStatus errorState, void *pCookie)
Definition: XnTypes.h:235
IRGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3329
XN_C_API XnStatus XN_C_DECL xnLockNodeForChanges(XnNodeHandle hInstance, XnLockHandle *phLock)
Locks a node, not allowing any changes (any "set" function).
XnStatus RegisterToMapOutputModeChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to mode changes. For full details and usage, see xnRegisterToMapOutputM...
Definition: XnCppWrapper.h:2708
XN_C_API void XN_C_DECL xnUnregisterFromGestureIntermediateStageCompleted(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from when a gesture is in progress.
XnStatus AddRef()
Adds a reference to the context object. For full details and usage, see xnContextAddRef ...
Definition: XnCppWrapper.h:5627
XnStatus GetSkeletonJoint(XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointTransformation &Joint) const
Get a specific joint's full information. For full details and usage, see xnGetSkeletonJoint ...
Definition: XnCppWrapper.h:4109
XnStatus SetSkeletonProfile(XnSkeletonProfile eProfile)
Set the profile. this will set some joints to be active, and others to be inactive. For full details and usage, see xnSetSkeletonProfile
Definition: XnCppWrapper.h:4052
XN_C_API XnStatus XN_C_DECL xnRegisterToGestureIntermediateStageCompleted(XnNodeHandle hInstance, XnGestureIntermediateStageCompleted handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when a gesture is in progress.
Codec(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5209
XnStatus FindExistingNode(XnProductionNodeType type, ProductionNode &node) const
For full details and usage, see xnFindExistingNodeByType
Definition: XnCppWrapper.h:5778
void(* XnFreeHandler)(const void *pData)
Definition: XnTypes.h:242
XN_C_API const XnChar *XN_C_DECL xnGetNodeName(XnNodeHandle hNode)
Gets the instance name of a node by its handle.
XN_C_API XnStatus XN_C_DECL xnProductionNodeAddRef(XnNodeHandle hNode)
References a production node, increasing its reference count by 1.
Definition: XnCppWrapper.h:2345
XN_C_API XnStatus XN_C_DECL xnResetSkeleton(XnNodeHandle hInstance, XnUserID user)
Reset the skeleton - discard calibration.
void UnregisterFromCalibrationComplete(XnCallbackHandle hCallback)
Unregister from calibration complete with status. For full details and usage, see xnUnregisterFromCal...
Definition: XnCppWrapper.h:4436
XnBool operator!=(const Iterator &other) const
Definition: XnCppWrapper.h:5320
XN_C_API XnStatus XN_C_DECL xnGetFloor(XnNodeHandle hInstance, XnPlane3D *pPlane)
Gets a description of the floor, if it was found.
Definition: XnCppWrapper.h:3357
AlternativeViewPointCapability GetAlternativeViewPointCap()
Definition: XnCppWrapper.h:2315
XN_C_API XnStatus XN_C_DECL xnCopyDepthMetaData(XnDepthMetaData *pDestination, const XnDepthMetaData *pSource)
Shallow-Copies a Depth Meta Data object. Note that the data buffer is not copied, and that both objec...
XN_C_API XnStatus XN_C_DECL xnResetViewPoint(XnNodeHandle hInstance)
Sets the view point of this generator to its normal one.
XnPixelFormat
Definition: XnTypes.h:490
#define XN_CAPABILITY_PAN
Definition: XnTypes.h:312
XN_C_API XnStatus XN_C_DECL xnMockAudioSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnUInt8 *pData)
const HandTouchingFOVEdgeCapability GetHandTouchingFOVEdgeCap() const
Definition: XnCppWrapper.h:3964
XnStatus GetErrorState() const
Gets current error state of this node. For full details and usage, see xnGetNodeErrorState ...
Definition: XnCppWrapper.h:1662
XN_C_API void XN_C_DECL xnUnregisterUserCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from user callbacks.
Iterator operator++(int)
Definition: XnCppWrapper.h:5339
XnStatus GetActiveGestures(XnChar *&astrGestures, XnUInt16 &nGestures) const
Get the names of the gestures that are currently active. For full details and usage, see xnGetActiveGestures
Definition: XnCppWrapper.h:3453
XnStatus LoadScriptFromString(const XnChar *strScript)
Definition: XnCppWrapper.h:5267
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6212
XN_C_API void XN_C_DECL xnFreeLicensesList(XnLicense *aLicenses)
XN_C_API XnStatus XN_C_DECL xnGetGeneralIntValue(XnNodeHandle hNode, const XnChar *strCap, XnInt32 *pnValue)
Gets the current value of this capability.
XnBool IsEmpty()
For full details and usage, see xnNodeInfoListIsEmpty
Definition: XnCppWrapper.h:1599
XnUInt32 GetNumberOfPoses() const
Get the number of the supported poses. For full details and usage, see xnGetNumberOfPoses ...
Definition: XnCppWrapper.h:4549
XN_C_API const XnChar *XN_C_DECL xnScriptNodeGetSupportedFormat(XnNodeHandle hScript)
XN_C_API const XnLabel *XN_C_DECL xnGetLabelMap(XnNodeHandle hInstance)
Gets the label map, describing the current segmentation of the scene.
void UnregisterFromFrameSyncChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToFrameSyncChange(). For full details and usage, see xnUnregisterFromFrameSyncChange
Definition: XnCppWrapper.h:2147
HandTouchingFOVEdgeCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:3775
Iterator Begin() const
Gets an iterator to the first item in the list.
Definition: XnCppWrapper.h:1547
ErrorStateCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:1656
XN_C_API void xnUnregisterFromOutOfPose(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from out of pose callback.
GeneralIntCapability GetGainCap()
Definition: XnCppWrapper.h:2826
Definition: XnTypes.h:539
XnStatus SetGeneralProperty(const XnChar *strName, XnUInt32 nBufferSize, const void *pBuffer)
Sets a buffer property. For full details and usage, see xnSetGeneralProperty
Definition: XnCppWrapper.h:1816
Context(XnContext *pContext)
Definition: XnCppWrapper.h:5408
XnBool CanFrameSyncWith(Generator &other) const
Checks if this generator can frame sync to another node. For full details and usage, see xnCanFrameSyncWith
Definition: XnCppWrapper.h:6076
void LockedNodeEndChanges(XnLockHandle hLock)
Ends changes request on a locked node. For full details and usage, see xnLockedNodeEndChanges ...
Definition: XnCppWrapper.h:1880
static XnStatus RegisterToUnderlying(_XnRegisterStateChangeFuncPtr xnFunc, XnNodeHandle hNode, StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Definition: XnCppWrapper.h:6352
XnStatus RegisterToPoseCallbacks(PoseDetection PoseStartCB, PoseDetection PoseEndCB, void *pCookie, XnCallbackHandle &hCallback)
Register to callbacks for pose events. For full details and usage, see xnRegisterToPoseCallbacks ...
Definition: XnCppWrapper.h:4588
MapGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:2663
XnStatus GetProductionNodeByName(const XnChar *strInstanceName, ProductionNode &node) const
For full details and usage, see xnGetNodeHandleByName
Definition: XnCppWrapper.h:5794
XN_C_API XnNodeInfoListIterator XN_C_DECL xnNodeInfoListGetFirst(XnNodeInfoList *pList)
XN_C_API XnStatus XN_C_DECL xnTellPlayerTimestamp(XnNodeHandle hPlayer, XnUInt64 *pnTimestamp)
Reports the current timestamp of a player, i.e. the amount of time passed since the beginning of the ...
void UnregisterFromErrorStateChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGlobalErrorStateChange(). For full details and usage, see xnUnregisterFromGlobalErrorStateChange
Definition: XnCppWrapper.h:5877
void GetMetaData(AudioMetaData &metaData) const
Gets the current audio meta data. For full details and usage, see xnGetAudioMetaData ...
Definition: XnCppWrapper.h:5058
GestureGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3426
XnStatus SetJointActive(XnSkeletonJoint eJoint, XnBool bState)
Change the state of a specific joint, to be active or inactive. For full details and usage...
Definition: XnCppWrapper.h:4060
XN_C_API XnStatus XN_C_DECL xnSetJointActive(XnNodeHandle hInstance, XnSkeletonJoint eJoint, XnBool bState)
Change the state of a specific joint, to be active or inactive.
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates an audio generator. For full details and usage, see xnCreateAudioGenerator ...
Definition: XnCppWrapper.h:6269
Definition: XnCppWrapper.h:1374
XN_C_API XnStatus XN_C_DECL xnGetGeneralIntRange(XnNodeHandle hNode, const XnChar *strCap, XnInt32 *pnMin, XnInt32 *pnMax, XnInt32 *pnStep, XnInt32 *pnDefault, XnBool *pbIsAutoSupported)
Gets the range of this capability values.
GeneralIntCapability GetBacklightCompensationCap()
Definition: XnCppWrapper.h:2816
XN_C_API XnStatus XN_C_DECL xnStopFrameSyncWith(XnNodeHandle hInstance, XnNodeHandle hOther)
Stops frame sync with the other node.
ErrorStateCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:1657
GeneralIntCapability GetSharpnessCap()
Definition: XnCppWrapper.h:2786
SkeletonCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:4030
XN_C_API XnStatus XN_C_DECL xnEnumerateGestures(XnNodeHandle hInstance, XnChar **pstrGestures, XnUInt16 *nGestures)
Get the names of all gestures available.
XnStatus TellFrame(const XnChar *strNodeName, XnUInt32 &nFrame) const
Reports the current frame number of a specific node played by a player. For full details and usage...
Definition: XnCppWrapper.h:2478
void UnregisterFromCroppingChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToCroppingChange(). For full details and usage, see xnUnregisterFromCroppingChange
Definition: XnCppWrapper.h:2596
XN_C_API XnStatus XN_C_DECL xnGetGlobalErrorState(XnContext *pContext)
Gets the global error state of the context. If one of the nodes in the context is in error state...
XnDirection
Definition: XnTypes.h:665
Iterator & operator--()
Definition: XnCppWrapper.h:1427
XN_C_API XnStatus XN_C_DECL xnGetSupportedWaveOutputModes(XnNodeHandle hInstance, XnWaveOutputMode *aSupportedModes, XnUInt32 *pnCount)
Definition: XnCppWrapper.h:2558
XN_C_API XnStatus XN_C_DECL xnNodeInfoListClear(XnNodeInfoList *pList)
XnStatus StartTracking(XnUserID user)
Start tracking a skeleton. For full details and usage, see xnStartSkeletonTracking ...
Definition: XnCppWrapper.h:4222
void UnregisterCalibrationCallbacks(XnCallbackHandle hCallback)
Unregister from calibration callbacks. For full details and usage, see xnUnregisterCalibrationCallbac...
Definition: XnCppWrapper.h:4316
XN_C_API XnStatus XN_C_DECL xnMockImageSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnUInt8 *pData)
XN_C_API XnStatus XN_C_DECL xnEnumerateExistingNodes(XnContext *pContext, XnNodeInfoList **ppList)
Gets a list of all existing node in the context. Each node that was returned increases its ref count...
XN_C_API XnStatus xnRegisterToPoseDetected(XnNodeHandle hInstance, XnPoseDetectionCallback handler, void *pCookie, XnCallbackHandle *phCallback)
Register to callback when a user is in pose.
XnStatus RegisterGestureCallbacks(GestureRecognized RecognizedCB, GestureProgress ProgressCB, void *pCookie, XnCallbackHandle &hCallback)
For full details and usage, see RegisterGestureCallbacks For full details and usage, see RegisterGestureCallbacks
Definition: XnCppWrapper.h:3521
ScriptNode(const NodeWrapper &other)
Definition: XnCppWrapper.h:5255
XnStatus GetWaveOutputMode(XnWaveOutputMode &OutputMode) const
For full details and usage, see xnGetWaveOutputMode
Definition: XnCppWrapper.h:5098
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnDepthPixel *pDepthMap)
For full details and usage, see xnMockDepthSetData
Definition: XnCppWrapper.h:3117
Definition: XnTypes.h:494
Resolution(const XnChar *strName)
Definition: XnCppWrapper.h:6016
Generator(const NodeWrapper &other)
Definition: XnCppWrapper.h:2166
GeneralIntCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:1698
XnStatus RegisterToUserPositionChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to user position changes. For full details and usage, see xnRegisterToUserPositionChange
Definition: XnCppWrapper.h:2964
XnStatus SetCropping(const XnCropping &Cropping)
Sets the cropping. For full details and usage, see xnSetCropping
Definition: XnCppWrapper.h:2572
const MirrorCapability GetMirrorCap() const
Definition: XnCppWrapper.h:2285
void(* GestureReadyForNextIntermediateStage)(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pPosition, void *pCookie)
Definition: XnCppWrapper.h:3619
struct XnContext XnContext
Definition: XnTypes.h:77
NodeWrapper(const NodeWrapper &other)
Definition: XnCppWrapper.h:1008
UserPositionCapability(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2934
void(* CalibrationEnd)(SkeletonCapability &skeleton, XnUserID user, XnBool bSuccess, void *pCookie)
Definition: XnCppWrapper.h:4283
DeviceIdentificationCapability GetIdentificationCap()
Definition: XnCppWrapper.h:1983
#define XN_CODEC_NULL
Definition: XnCodecIDs.h:27
XnStatus Remove(Iterator &it)
For full details and usage, see xnNodeInfoListRemove
Definition: XnCppWrapper.h:1575
XN_C_API const XnChar *XN_C_DECL xnNodeInfoGetCreationInfo(XnNodeInfo *pNodeInfo)
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetName(XnNodeQuery *pQuery, const XnChar *strName)
XN_C_API XnBool XN_C_DECL xnNeedPoseForSkeletonCalibration(XnNodeHandle hInstance)
Check if a specific pose is required for calibration.
XN_C_API XnUInt32 XN_C_DECL xnGetDataSize(XnNodeHandle hInstance)
Gets the size of current data, in bytes.
XnStatus SetMinVersion(const XnVersion &minVersion)
For full details and usage, see xnNodeQuerySetMinVersion
Definition: XnCppWrapper.h:1300
XN_C_API void XN_C_DECL xnUnregisterCalibrationCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from calibration callbacks.
const XnGrayscale16Pixel * GetGrayscale16ImageMap() const
Gets the current Grayscale16 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in Grayscale16 pixel format. For full details and usage, see xnGetGrayscale16ImageMap
Definition: XnCppWrapper.h:3200
Definition: XnTypes.h:106
Definition: XnCppWrapper.h:2982
XnStatus OpenFileRecording(const XnChar *strFileName, ProductionNode &playerNode)
Opens a recording file, adding all nodes in it to the context. NOTE: when using this function...
Definition: XnCppWrapper.h:5563
XnBool operator==(const Iterator &other) const
Definition: XnCppWrapper.h:5310
XnStatus AddNeededNode(ProductionNode &needed)
Adds another node to the list of needed nodes for this node. For full details and usage...
Definition: XnCppWrapper.h:1763
struct XnModuleError * XnEnumerationErrorsIterator
Definition: XnEnumerationErrors.h:57
XN_C_API XnStatus XN_C_DECL xnGetGeneralProperty(XnNodeHandle hInstance, const XnChar *strName, XnUInt32 nBufferSize, void *pBuffer)
Gets a buffer property.
Version(const XnVersion &version)
Definition: XnCppWrapper.h:79
GeneralIntCapability GetIrisCap()
Definition: XnCppWrapper.h:2886
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6278
XN_C_API XnBool XN_C_DECL xnIsViewPointSupported(XnNodeHandle hInstance, XnNodeHandle hOther)
Checks if this generator can change its output to look like it was taken from a different location...
#define XN_CAPABILITY_CONTRAST
Definition: XnTypes.h:304
XnStatus GetIntProperty(const XnChar *strName, XnUInt64 &nValue) const
Gets an integer property. For full details and usage, see xnGetIntProperty
Definition: XnCppWrapper.h:1824
XnStatus SetMapOutputMode(const XnMapOutputMode &OutputMode)
Sets the output mode. For full details and usage, see xnSetMapOutputMode
Definition: XnCppWrapper.h:2684
XnStatus RegisterToPoseInProgress(PoseInProgress handler, void *pCookie, XnCallbackHandle &hCallback)
Register to callback for status when pose is detected. For full details and usage, see xnRegisterToPoseDetectionInProgress
Definition: XnCppWrapper.h:4698
XN_C_API XnStatus XN_C_DECL xnGetUsers(XnNodeHandle hInstance, XnUserID *pUsers, XnUInt16 *pnUsers)
Get the current users.
Definition: XnCppWrapper.h:2926
Definition: XnCppWrapper.h:993
XN_C_API XnStatus XN_C_DECL xnSetTrackingSmoothing(XnNodeHandle hInstance, XnFloat fFactor)
Change smoothing factor.
void UnregisterGestureCallbacks(XnCallbackHandle hCallback)
Unregister from gesture callbacks. For full details and usage, see xnUnregisterGestureCallbacks ...
Definition: XnCppWrapper.h:3546
XN_C_API XnResolution XN_C_DECL xnResolutionGetFromName(const XnChar *strName)
#define XN_CAPABILITY_BRIGHTNESS
Definition: XnTypes.h:303
Definition: XnCppWrapper.h:1962
XN_C_API void XN_C_DECL xnUnregisterFromGestureReadyForNextIntermediateStage(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from when a gesture is ready for its next stage.
XN_C_API void XN_C_DECL xnUnregisterFromJointConfigurationChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from joint configuration changes.
XnResolution
Definition: XnTypes.h:386
void(* CalibrationInProgress)(SkeletonCapability &skeleton, XnUserID user, XnCalibrationStatus calibrationError, void *pCookie)
Definition: XnCppWrapper.h:4364
Version(XnUInt8 nMajor, XnUInt8 nMinor, XnUInt16 nMaintenance, XnUInt32 nBuild)
Definition: XnCppWrapper.h:80
void UnregisterFromPoseInProgress(XnCallbackHandle hCallback)
Unregister from pose status callback. For full details and usage, see xnUnregisterFromPoseDetectionIn...
Definition: XnCppWrapper.h:4722
XnBool IsTracking(XnUserID user) const
Check if skeleton is being tracked. For full details and usage, see xnIsSkeletonTracking ...
Definition: XnCppWrapper.h:4133
Definition: XnCppWrapper.h:1688
XnStatus SetExistingNodeOnly(XnBool bExistingNode)
For full details and usage, see xnNodeQuerySetExistingNodeOnly
Definition: XnCppWrapper.h:1340
ProductionNode(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:1752
An iterator over enumeration errors.
Definition: XnCppWrapper.h:5300
XnBool IsCalibrating(XnUserID user) const
Check if skeleton is being calibrated. For full details and usage, see xnIsSkeletonCalibrating ...
Definition: XnCppWrapper.h:4150
const XnLabel * GetLabelMap() const
Gets the label map, describing the current segmentation of the scene. For full details and usage...
Definition: XnCppWrapper.h:3749
UserPositionCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2935
XN_C_API XnStatus XN_C_DECL xnGetRefNodeHandleByName(XnContext *pContext, const XnChar *strInstanceName, XnNodeHandle *phNode)
Gets a handle to an existing production node instance using that instance name.
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetVendor(XnNodeQuery *pQuery, const XnChar *strVendor)
void UnregisterFromPowerLineFrequencyChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToPowerLineFrequencyChange(). For full details and usage, see xnUnregisterFromPowerLineFrequencyChange
Definition: XnCppWrapper.h:2644
XN_C_API XnStatus XN_C_DECL xnDecodeData(XnNodeHandle hCodec, const void *pSrc, XnUInt32 nSrcSize, void *pDst, XnUInt32 nDstSize, XnUInt *pnBytesWritten)
XnStatus RegisterToNewDataAvailable(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to be called when new data is available. For full details and usage...
Definition: XnCppWrapper.h:2211
void GetRange(XnInt32 &nMin, XnInt32 &nMax, XnInt32 &nStep, XnInt32 &nDefault, XnBool &bIsAutoSupported) const
Gets the range of this capability values. For full details and usage, see xnGetGeneralIntRange ...
Definition: XnCppWrapper.h:1703
ProductionNode(const NodeWrapper &other)
Definition: XnCppWrapper.h:1753
void UnregisterFromGenerationRunningChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGenerationRunningChange(). For full details and usage, see xnUnregisterFromGenerationRunningChange
Definition: XnCppWrapper.h:2203
void ReplaceUnderlyingObject(XnNodeInfoList *pList)
Definition: XnCppWrapper.h:1505
XN_C_API XnContext *XN_C_DECL xnGetRefContextFromNodeHandle(XnNodeHandle hNode)
Gets the context a node belongs to. The context ref count is increased. The user is responsible for r...
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAllocate(XnNodeInfoList **ppList)
NodeInfo(const NodeInfo &other)
Definition: XnCppWrapper.h:1156
XN_C_API XnUInt32 XN_C_DECL xnGetBytesPerPixel(XnNodeHandle hInstance)
Gets the number of bytes per pixel for this map generator.
XN_C_API XnStatus XN_C_DECL xnRemoveGesture(XnNodeHandle hInstance, const XnChar *strGesture)
Turn off gesture. The generator will no longer look for this gesture.
const XnUChar * GetAudioBuffer() const
For full details and usage, see xnGetAudioBuffer
Definition: XnCppWrapper.h:5066
XnBool IsCalibrationData(XnUInt32 nSlot) const
Check if a specific slot already holds calibration data. For full details and usage, see xnIsSkeletonCalibrationData
Definition: XnCppWrapper.h:4214
void UnlockForChanges(XnLockHandle hLock)
Unlocks a previously locked node. For full details and usage, see xnUnlockNodeForChanges ...
Definition: XnCppWrapper.h:1864
XN_C_API XnUInt32 XN_C_DECL xnResolutionGetYRes(XnResolution resolution)
MapGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2662
Capability(const NodeWrapper &node)
Definition: XnCppWrapper.h:1641
DepthGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2990
XN_C_API XnStatus XN_C_DECL xnLoadSkeletonCalibrationData(XnNodeHandle hInstance, XnUserID user, XnUInt32 nSlot)
Load previously saved calibration data.
GeneralIntCapability GetRollCap()
Definition: XnCppWrapper.h:2856
XnStatus GetRealProperty(const XnChar *strName, XnDouble &dValue) const
Gets a real property. For full details and usage, see xnGetRealProperty
Definition: XnCppWrapper.h:1832
void(* GestureRecognized)(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pIDPosition, const XnPoint3D *pEndPosition, void *pCookie)
Definition: XnCppWrapper.h:3506
XN_C_API XnStatus XN_C_DECL xnRegisterToFrameSyncChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to view point changes.
#define XN_CAPABILITY_TILT
Definition: XnTypes.h:313
const XnProductionNodeDescription & GetDescription() const
For full details and usage, see xnNodeInfoGetDescription()
Definition: XnCppWrapper.h:1195
XnStatus CreateBasedOn(ImageGenerator &other, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6192
XnDepthPixel GetDeviceMaxDepth() const
Gets the maximum depth the device can produce. For full details and usage, see xnGetDeviceMaxDepth ...
Definition: XnCppWrapper.h:3017
XN_C_API XnStatus XN_C_DECL xnRequestSkeletonCalibration(XnNodeHandle hInstance, XnUserID user, XnBool bForce)
Request calibration when possible.
XnStatus GetSupportedMapOutputModes(XnMapOutputMode *aModes, XnUInt32 &nCount) const
Gets a list of all supported modes. The size of the array that should be passed can be obtained by ca...
Definition: XnCppWrapper.h:2676
XnStatus RegisterToGenerationRunningChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to be called when generation starts or stops. For full details and usag...
Definition: XnCppWrapper.h:2195
XN_C_API XnStatus XN_C_DECL xnSetRecorderDestination(XnNodeHandle hRecorder, XnRecordMedium destType, const XnChar *strDest)
Tells the recorder where to record.
XnStatus RegisterToEndOfFileReached(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to be called when end-of-file is reached. For full details and usage...
Definition: XnCppWrapper.h:2524
void UnregisterFromPoseDetected(XnCallbackHandle hCallback)
Unregister from pose detected callback. For full details and usage, see xnUnregisterFromPoseDetected ...
Definition: XnCppWrapper.h:4669
XnUInt32 Y
Definition: XnTypes.h:1015
XnStatus WaitOneUpdateAll(ProductionNode &node)
Updates all generators nodes in the context, waiting for a specific one to have new data...
Definition: XnCppWrapper.h:5901
XN_C_API XnBool XN_C_DECL xnGetGlobalMirror(XnContext *pContext)
Gets the global mirror flag.
XN_C_API void XN_C_DECL xnUnregisterFromCalibrationInProgress(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from calibration status while in progress.
XN_C_API XnStatus XN_C_DECL xnLoadScriptFromString(XnNodeHandle hScript, const XnChar *strScript)
#define XN_CAPABILITY_ZOOM
Definition: XnTypes.h:315
XN_C_API XnStatus XN_C_DECL xnGetDeviceName(XnNodeHandle hInstance, XnChar *strBuffer, XnUInt32 *pnBufferSize)
XN_C_API XnStatus XN_C_DECL xnRegisterToGeneralIntValueChange(XnNodeHandle hNode, const XnChar *strCap, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to values changes.
XnStatus StopPoseDetection(XnUserID user)
Stop detection of poses for a specific user. For full details and usage, see xnStopPoseDetection ...
Definition: XnCppWrapper.h:4580
XnStatus CreateAnyProductionTree(XnProductionNodeType type, Query *pQuery, ProductionNode &node, EnumerationErrors *pErrors=NULL)
Enumerates for production trees for a specific node type, and creates the first found tree...
Definition: XnCppWrapper.h:5700
XN_C_API void XN_C_DECL xnForceShutdown(XnContext *pContext)
Forces a context to shutdown, destroying all nodes. This function is used for backwards compatibility...
XnStatus SetGlobalMirror(XnBool bMirror)
Sets the global mirror flag. This will set all current existing nodes' mirror state, and also affect future created nodes. The default mirror flag is FALSE. For full details and usage, see xnSetGlobalMirror
Definition: XnCppWrapper.h:5844
MockDepthGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3095
XnStatus AddNodeFromAnotherList(Iterator &it)
For full details and usage, see xnNodeInfoListAddNodeFromList
Definition: XnCppWrapper.h:1541
MirrorCapability GetMirrorCap()
Definition: XnCppWrapper.h:2295
XnStatus StopGenerating()
Stops generation of the output. For full details and usage, see xnStopGenerating
Definition: XnCppWrapper.h:2187
XN_C_API XnStatus XN_C_DECL xnRegisterToUserExit(XnNodeHandle hInstance, XnUserHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when the user exits the scene (but not lost yet)
XnStatus EnumerateExistingNodes(NodeInfoList &list) const
Gets a list of all existing node in the context. Each node that was returned increases its ref count...
Definition: XnCppWrapper.h:5750
XN_C_API XnStatus XN_C_DECL xnCreateUserGenerator(XnContext *pContext, XnNodeHandle *phUserGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates a user generator.
XnStatus SetData(const IRMetaData &irMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
Definition: XnCppWrapper.h:3398
XN_C_API void XN_C_DECL xnContextRelease(XnContext *pContext)
Releases a context object, decreasing its ref count by 1. If reference count has reached 0...
XN_C_API void XN_C_DECL xnUnregisterFromNodeErrorStateChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToNodeErrorStateChange().
void GetMetaData(DepthMetaData &metaData) const
Gets the current depth-map meta data. For full details and usage, see xnGetDepthMetaData ...
Definition: XnCppWrapper.h:3001
XnStatus StopFrameSyncWith(Generator &other)
Stops frame sync with the other node. For full details and usage, see xnStopFrameSyncWith ...
Definition: XnCppWrapper.h:6086
XnStatus WaitNoneUpdateAll()
Updates all generator nodes in the context, without any waiting. If a node has new data...
Definition: XnCppWrapper.h:5909