22#ifndef __XN_CPP_WRAPPER_H__
23#define __XN_CPP_WRAPPER_H__
123 Version(XnUInt8 nMajor, XnUInt8 nMinor, XnUInt16 nMaintenance, XnUInt32 nBuild)
125 m_version.
nMajor = nMajor;
126 m_version.
nMinor = nMinor;
128 m_version.
nBuild = nBuild;
283 inline const XnUInt8*
Data()
const {
return *m_ppData; }
288 inline const XnUInt8*&
Data() {
return *m_ppData; }
309 if (nBytes > m_nAllocatedSize)
318 m_nAllocatedSize = nBytes;
332 if (m_nAllocatedSize != 0)
336 m_nAllocatedSize = 0;
351 const XnUInt8* pOrigData = *m_ppData;
356 if (pOrigData != NULL)
375 const XnUInt8** m_ppData;
376 XnUInt32 m_nAllocatedSize;
412 inline XnUInt32
XRes()
const {
return m_map.
Res.
X; }
425 inline XnUInt32
YRes()
const {
return m_map.
Res.
Y; }
496 inline XnUInt32
FPS()
const {
return m_map.
nFPS; }
572 if (pExternalBuffer == NULL)
582 Data() = pExternalBuffer;
608 template<
class _pixelType>
612 inline Map(_pixelType*& pData, XnUInt32& nXRes, XnUInt32 &nYRes) :
613 m_pData(pData), m_nXRes(nXRes), m_nYRes(nYRes)
623 inline XnUInt32
XRes()
const {
return m_nXRes; }
631 inline XnUInt32
YRes()
const {
return m_nYRes; }
646 XN_ASSERT(nIndex < (m_nXRes * m_nYRes));
647 return m_pData[nIndex];
662 XN_ASSERT(nIndex < (m_nXRes *m_nYRes));
663 return m_pData[nIndex];
674 inline const _pixelType&
operator()(XnUInt32 x, XnUInt32 y)
const
676 XN_ASSERT(x < m_nXRes && y < m_nYRes);
677 return m_pData[y*m_nXRes + x];
689 XN_ASSERT(x < m_nXRes && y < m_nYRes);
690 return m_pData[y*m_nXRes + x];
696 Map& operator=(
const Map&);
698 _pixelType*& m_pData;
794 return ReAdjust(nXRes, nYRes, pExternalBuffer);
875 return m_writableDepthMap;
885 XN_ASSERT(nIndex < (
XRes()*
YRes()));
886 return Data()[nIndex];
897 XN_ASSERT(x <
XRes() && y <
YRes());
1252 return ReAdjust(nXRes, nYRes, pExternalBuffer);
1314 XN_ASSERT(nIndex < (
XRes()*
YRes()));
1315 return Data()[nIndex];
1326 XN_ASSERT(x <
XRes() && y <
YRes());
1486 return ReAdjust(nXRes, nYRes, pExternalBuffer);
1565 XN_ASSERT(nIndex < (
XRes()*
YRes()));
1566 return Data()[nIndex];
1582 XN_ASSERT(x <
XRes() && y <
YRes());
1583 return (*
this)[y*
XRes() + x];
1728 if (m_hNode == hNode)
1735 if (m_hNode != NULL)
1772 inline XnStatus XN_API_DEPRECATED(
"Please use AddRef() instead.") Ref() {
return AddRef(); }
1773 inline void XN_API_DEPRECATED(
"Please use Release() instead.") Unref() {
Release(); }
1780 static void XN_CALLBACK_TYPE ContextShuttingDownCallback(
XnContext* ,
void* pCookie)
1783 pThis->m_hNode = NULL;
1812 SetUnderlyingObject(pInfo);
1822 SetUnderlyingObject(other.m_pInfo);
1830 SetUnderlyingObject(NULL);
1840 SetUnderlyingObject(other.m_pInfo);
1946 inline void SetUnderlyingObject(
XnNodeInfo* pInfo);
1950 XnBool m_bOwnerOfNode;
2133 XnBool m_bAllocated;
2234 UpdateInternalObject(it);
2247 m_Info = NodeInfo(NULL);
2261 m_bAllocated =
TRUE;
2292 m_bAllocated =
TRUE;
2312 return xnNodeInfoListAddEx(m_pList, &description, strCreationInfo, pList, pAdditionalData, pFreeHandler);
2413 inline void FreeImpl()
2418 m_bAllocated =
FALSE;
2424 XnBool m_bAllocated;
2547 inline void GetRange(XnInt32& nMin, XnInt32& nMax, XnInt32& nStep, XnInt32& nDefault, XnBool& bIsAutoSupported)
const
2593 const XnChar* m_strCap;
5138 inline XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize,
const XnUInt8* pImageMap)
5530 GestureCookie* pGestureCookie;
5532 pGestureCookie->recognizedHandler = RecognizedCB;
5533 pGestureCookie->progressHandler = ProgressCB;
5534 pGestureCookie->pUserCookie = pCookie;
5543 hCallback = pGestureCookie;
5557 GestureCookie* pGestureCookie = (GestureCookie*)hCallback;
5630 GestureIntermediateStageCompletedCookie* pGestureCookie;
5632 pGestureCookie->handler = handler;
5633 pGestureCookie->pUserCookie = pCookie;
5642 hCallback = pGestureCookie;
5656 GestureIntermediateStageCompletedCookie* pGestureCookie = (GestureIntermediateStageCompletedCookie*)hCallback;
5694 GestureReadyForNextIntermediateStageCookie* pGestureCookie;
5696 pGestureCookie->handler = handler;
5697 pGestureCookie->pUserCookie = pCookie;
5706 hCallback = pGestureCookie;
5720 GestureReadyForNextIntermediateStageCookie* pGestureCookie = (GestureReadyForNextIntermediateStageCookie*)hCallback;
5726 inline XnStatus XN_API_DEPRECATED(
"Use GetAllActiveGestures() instead") GetActiveGestures(XnChar*& astrGestures, XnUInt16& nGestures)
const
5730 inline XnStatus XN_API_DEPRECATED(
"Use EnumerateAllGestures() instead") EnumerateGestures(XnChar*& astrGestures, XnUInt16& nGestures)
const
5737 typedef struct GestureCookie
5745 static void XN_CALLBACK_TYPE GestureRecognizedCallback(
XnNodeHandle hNode,
const XnChar* strGesture,
const XnPoint3D* pIDPosition,
const XnPoint3D* pEndPosition,
void* pCookie)
5747 GestureCookie* pGestureCookie = (GestureCookie*)pCookie;
5749 if (pGestureCookie->recognizedHandler != NULL)
5751 pGestureCookie->recognizedHandler(gen, strGesture, pIDPosition, pEndPosition, pGestureCookie->pUserCookie);
5755 static void XN_CALLBACK_TYPE GestureProgressCallback(
XnNodeHandle hNode,
const XnChar* strGesture,
const XnPoint3D* pPosition, XnFloat fProgress,
void* pCookie)
5757 GestureCookie* pGestureCookie = (GestureCookie*)pCookie;
5759 if (pGestureCookie->progressHandler != NULL)
5761 pGestureCookie->progressHandler(gen, strGesture, pPosition, fProgress, pGestureCookie->pUserCookie);
5765 typedef struct GestureIntermediateStageCompletedCookie
5770 } GestureIntermediateStageCompletedCookie;
5772 static void XN_CALLBACK_TYPE GestureIntermediateStageCompletedCallback(
XnNodeHandle hNode,
const XnChar* strGesture,
const XnPoint3D* pPosition,
void* pCookie)
5774 GestureIntermediateStageCompletedCookie* pGestureCookie = (GestureIntermediateStageCompletedCookie*)pCookie;
5776 if (pGestureCookie->handler != NULL)
5778 pGestureCookie->handler(gen, strGesture, pPosition, pGestureCookie->pUserCookie);
5782 typedef struct GestureReadyForNextIntermediateStageCookie
5787 } GestureReadyForNextIntermediateStageCookie;
5789 static void XN_CALLBACK_TYPE GestureReadyForNextIntermediateStageCallback(
XnNodeHandle hNode,
const XnChar* strGesture,
const XnPoint3D* pPosition,
void* pCookie)
5791 GestureReadyForNextIntermediateStageCookie* pGestureCookie = (GestureReadyForNextIntermediateStageCookie*)pCookie;
5793 if (pGestureCookie->handler != NULL)
5795 pGestureCookie->handler(gen, strGesture, pPosition, pGestureCookie->pUserCookie);
5926 HandTouchingFOVEdgeCookie* pHandCookie;
5928 pHandCookie->handler = handler;
5929 pHandCookie->pUserCookie = pCookie;
5938 hCallback = pHandCookie;
5952 HandTouchingFOVEdgeCookie* pHandCookie = (HandTouchingFOVEdgeCookie*)hCallback;
5957 typedef struct HandTouchingFOVEdgeCookie
5962 } HandTouchingFOVEdgeCookie;
5966 HandTouchingFOVEdgeCookie* pHandCookie = (HandTouchingFOVEdgeCookie*)pCookie;
5968 if (pHandCookie->handler != NULL)
5970 pHandCookie->handler(cap, user, pPosition, fTime, eDir, pHandCookie->pUserCookie);
6149 HandCookie* pHandCookie;
6151 pHandCookie->createHandler = CreateCB;
6152 pHandCookie->updateHandler = UpdateCB;
6153 pHandCookie->destroyHandler = DestroyCB;
6154 pHandCookie->pUserCookie = pCookie;
6163 hCallback = pHandCookie;
6177 HandCookie* pHandCookie = (HandCookie*)hCallback;
6280 typedef struct HandCookie
6291 HandCookie* pHandCookie = (HandCookie*)pCookie;
6293 if (pHandCookie->createHandler != NULL)
6295 pHandCookie->createHandler(gen, user, pPosition, fTime, pHandCookie->pUserCookie);
6300 HandCookie* pHandCookie = (HandCookie*)pCookie;
6302 if (pHandCookie->updateHandler != NULL)
6304 pHandCookie->updateHandler(gen, user, pPosition, fTime, pHandCookie->pUserCookie);
6307 static void XN_CALLBACK_TYPE HandDestroyCB(
XnNodeHandle hNode,
XnUserID user, XnFloat fTime,
void* pCookie)
6309 HandCookie* pHandCookie = (HandCookie*)pCookie;
6311 if (pHandCookie->destroyHandler != NULL)
6313 pHandCookie->destroyHandler(gen, user, fTime, pHandCookie->pUserCookie);
6877 CalibrationStartCookie* pCalibrationCookie;
6879 pCalibrationCookie->handler = handler;
6880 pCalibrationCookie->pUserCookie = pCookie;
6887 hCallback = pCalibrationCookie;
6903 CalibrationStartCookie* pCalibrationCookie = (CalibrationStartCookie*)hCallback;
6945 CalibrationInProgressCookie* pSkeletonCookie;
6947 pSkeletonCookie->handler = handler;
6948 pSkeletonCookie->pUserCookie = pCookie;
6957 hCallback = pSkeletonCookie;
6971 CalibrationInProgressCookie* pSkeletonCookie = (CalibrationInProgressCookie*)hCallback;
7008 CalibrationCompleteCookie* pSkeletonCookie;
7010 pSkeletonCookie->handler = handler;
7011 pSkeletonCookie->pUserCookie = pCookie;
7020 hCallback = pSkeletonCookie;
7034 CalibrationCompleteCookie* pSkeletonCookie = (CalibrationCompleteCookie*)hCallback;
7040 XN_API_DEPRECATED(
"Use the overload with one argument - the bState parameter is useless")
7050 SkeletonCookie* pSkeletonCookie;
7052 pSkeletonCookie->startHandler = CalibrationStartCB;
7053 pSkeletonCookie->endHandler = CalibrationEndCB;
7054 pSkeletonCookie->pUserCookie = pCookie;
7056#pragma warning (push)
7057#pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
7059#pragma warning (pop)
7066 hCallback = pSkeletonCookie;
7071 inline void XN_API_DEPRECATED(
"Please use UnregisterFromCalibrationStart/Complete") UnregisterCalibrationCallbacks(
XnCallbackHandle hCallback)
7073 SkeletonCookie* pSkeletonCookie = (SkeletonCookie*)hCallback;
7074#pragma warning (push)
7075#pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
7077#pragma warning (pop)
7083 typedef struct SkeletonCookie
7091 static void XN_CALLBACK_TYPE CalibrationStartBundleCallback(
XnNodeHandle hNode,
XnUserID user,
void* pCookie)
7093 SkeletonCookie* pSkeletonCookie = (SkeletonCookie*)pCookie;
7095 if (pSkeletonCookie->startHandler != NULL)
7097 pSkeletonCookie->startHandler(cap, user, pSkeletonCookie->pUserCookie);
7101 static void XN_CALLBACK_TYPE CalibrationEndBundleCallback(
XnNodeHandle hNode,
XnUserID user, XnBool bSuccess,
void* pCookie)
7103 SkeletonCookie* pSkeletonCookie = (SkeletonCookie*)pCookie;
7105 if (pSkeletonCookie->endHandler != NULL)
7107 pSkeletonCookie->endHandler(cap, user, bSuccess, pSkeletonCookie->pUserCookie);
7111 typedef struct CalibrationStartCookie
7116 } CalibrationStartCookie;
7118 static void XN_CALLBACK_TYPE CalibrationStartCallback(
XnNodeHandle hNode,
XnUserID user,
void* pCookie)
7120 CalibrationStartCookie* pCalibrationCookie = (CalibrationStartCookie*)pCookie;
7122 if (pCalibrationCookie->handler != NULL)
7124 pCalibrationCookie->handler(cap, user, pCalibrationCookie->pUserCookie);
7128 typedef struct CalibrationInProgressCookie
7133 } CalibrationInProgressCookie;
7137 CalibrationInProgressCookie* pSkeletonCookie = (CalibrationInProgressCookie*)pCookie;
7139 if (pSkeletonCookie->handler != NULL)
7141 pSkeletonCookie->handler(cap, user, calibrationError, pSkeletonCookie->pUserCookie);
7145 typedef struct CalibrationCompleteCookie
7150 } CalibrationCompleteCookie;
7154 CalibrationCompleteCookie* pSkeletonCookie = (CalibrationCompleteCookie*)pCookie;
7156 if (pSkeletonCookie->handler != NULL)
7158 pSkeletonCookie->handler(cap, user, calibrationError, pSkeletonCookie->pUserCookie);
7307 PoseDetectionCookie* pPoseCookie;
7309 pPoseCookie->handler = handler;
7310 pPoseCookie->pPoseCookie = pCookie;
7318 hCallback = pPoseCookie;
7334 PoseDetectionCookie* pPoseCookie;
7336 pPoseCookie->handler = handler;
7337 pPoseCookie->pPoseCookie = pCookie;
7345 hCallback = pPoseCookie;
7357 PoseDetectionCookie* pPoseCookie = (PoseDetectionCookie*)hCallback;
7370 PoseDetectionCookie* pPoseCookie = (PoseDetectionCookie*)hCallback;
7419 PoseInProgressCookie* pPoseCookie;
7421 pPoseCookie->handler = handler;
7422 pPoseCookie->pPoseCookie = pCookie;
7431 hCallback = pPoseCookie;
7445 PoseInProgressCookie* pPoseCookie = (PoseInProgressCookie*)hCallback;
7451 inline XnStatus XN_API_DEPRECATED(
"Use GetAllAvailablePoses() instead") GetAvailablePoses(XnChar** pstrPoses, XnUInt32& nPoses)
const
7460 PoseCookie* pPoseCookie;
7462 pPoseCookie->startHandler = PoseStartCB;
7463 pPoseCookie->endHandler = PoseEndCB;
7464 pPoseCookie->pPoseCookie = pCookie;
7466#pragma warning (push)
7467#pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
7469#pragma warning (pop)
7476 hCallback = pPoseCookie;
7481 inline void XN_API_DEPRECATED(
"Please use UnregisterFromPoseDetected/UnregisterFromOutOfPose instead") UnregisterFromPoseCallbacks(
XnCallbackHandle hCallback)
7483 PoseCookie* pPoseCookie = (PoseCookie*)hCallback;
7484#pragma warning (push)
7485#pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
7487#pragma warning (pop)
7493 typedef struct PoseCookie
7501 static void XN_CALLBACK_TYPE PoseDetectionStartBundleCallback(
XnNodeHandle hNode,
const XnChar* strPose,
XnUserID user,
void* pCookie)
7503 PoseCookie* pPoseCookie = (PoseCookie*)pCookie;
7505 if (pPoseCookie->startHandler != NULL)
7507 pPoseCookie->startHandler(cap, strPose, user, pPoseCookie->pPoseCookie);
7511 static void XN_CALLBACK_TYPE PoseDetectionStartEndBundleCallback(
XnNodeHandle hNode,
const XnChar* strPose,
XnUserID user,
void* pCookie)
7513 PoseCookie* pPoseCookie = (PoseCookie*)pCookie;
7515 if (pPoseCookie->endHandler != NULL)
7517 pPoseCookie->endHandler(cap, strPose, user, pPoseCookie->pPoseCookie);
7520 typedef struct PoseDetectionCookie
7525 } PoseDetectionCookie;
7526 static void XN_CALLBACK_TYPE PoseDetectionCallback(
XnNodeHandle hNode,
const XnChar* strPose,
XnUserID user,
void* pCookie)
7528 PoseDetectionCookie* pPoseDetectionCookie = (PoseDetectionCookie*)pCookie;
7530 if (pPoseDetectionCookie->handler != NULL)
7532 pPoseDetectionCookie->handler(cap, strPose, user, pPoseDetectionCookie->pPoseCookie);
7536 typedef struct PoseInProgressCookie
7541 } PoseInProgressCookie;
7545 PoseInProgressCookie* pPoseCookie = (PoseInProgressCookie*)pCookie;
7547 if (pPoseCookie->handler != NULL)
7549 pPoseCookie->handler(cap, strPose, user, poseErrors, pPoseCookie->pPoseCookie);
7796 UserCookie* pUserCookie;
7798 pUserCookie->newHandler = NewUserCB;
7799 pUserCookie->lostHandler = LostUserCB;
7800 pUserCookie->pUserCookie = pCookie;
7809 hCallback = pUserCookie;
7823 UserCookie* pUserCookie = (UserCookie*)hCallback;
7903 UserSingleCookie* pUserCookie;
7905 pUserCookie->handler = handler;
7906 pUserCookie->pUserCookie = pCookie;
7915 hCallback = pUserCookie;
7929 UserSingleCookie* pUserCookie = (UserSingleCookie*)hCallback;
7947 UserSingleCookie* pUserCookie;
7949 pUserCookie->handler = handler;
7950 pUserCookie->pUserCookie = pCookie;
7959 hCallback = pUserCookie;
7973 UserSingleCookie* pUserCookie = (UserSingleCookie*)hCallback;
7979 typedef struct UserCookie
7989 UserCookie* pUserCookie = (UserCookie*)pCookie;
7991 if (pUserCookie->newHandler != NULL)
7993 pUserCookie->newHandler(gen, user, pUserCookie->pUserCookie);
7997 static void XN_CALLBACK_TYPE LostUserCallback(
XnNodeHandle hNode,
XnUserID user,
void* pCookie)
7999 UserCookie* pUserCookie = (UserCookie*)pCookie;
8001 if (pUserCookie->lostHandler != NULL)
8003 pUserCookie->lostHandler(gen, user, pUserCookie->pUserCookie);
8007 typedef struct UserSingleCookie
8014 static void XN_CALLBACK_TYPE UserSingleCallback(
XnNodeHandle hNode,
XnUserID user,
void* pCookie)
8016 UserSingleCookie* pUserCookie = (UserSingleCookie*)pCookie;
8018 if (pUserCookie->handler != NULL)
8020 pUserCookie->handler(gen, user, pUserCookie->pUserCookie);
8202 inline XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize,
const XnUInt8* pAudioBuffer)
8242 inline XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize,
const void* pData)
8283 inline XnStatus EncodeData(
const void* pSrc, XnUInt32 nSrcSize,
void* pDst, XnUInt32 nDstSize, XnUInt* pnBytesWritten)
const
8292 inline XnStatus DecodeData(
const void* pSrc, XnUInt32 nSrcSize,
void* pDst, XnUInt32 nDstSize, XnUInt* pnBytesWritten)
const
8443 return m_it == other.m_it;
8453 return m_it != other.m_it;
8540 m_bAllocated =
FALSE;
8551 XnBool m_bAllocated;
8631 inline Context() : m_pContext(NULL), m_bUsingDeprecatedAPI(
FALSE), m_bAllocated(
FALSE), m_hShuttingDownCallback(NULL) {}
8649 inline Context(
const Context& other) : m_pContext(NULL), m_bUsingDeprecatedAPI(
FALSE), m_bAllocated(
FALSE), m_hShuttingDownCallback(NULL)
8714 m_bAllocated =
TRUE;
8739 nRetVal =
xnContextRunXmlScriptEx(m_pContext, strScript, pErrors == NULL ? NULL : pErrors->GetUnderlying(), &hScriptNode);
8800 m_bAllocated =
TRUE;
8958 nRetVal =
xnEnumerateProductionTrees(m_pContext, Type, pInternalQuery, &pList, pErrors == NULL ? NULL : pErrors->GetUnderlying());
9005 nRetVal =
xnCreateAnyProductionTree(m_pContext, type, pInternalQuery, &hNode, pErrors == NULL ? NULL : pErrors->GetUnderlying());
9245 NodeCreationCookie* pCreationCookie;
9247 pCreationCookie->pFunc = handler;
9248 pCreationCookie->pCookie = pCookie;
9250 nRetVal =
xnRegisterToNodeCreation(m_pContext, NodeCreationCallback, pCreationCookie, &pCreationCookie->hUnderlyingCallback);
9253 hCallback = pCreationCookie;
9267 NodeCreationCookie* pCreationCookie = (NodeCreationCookie*)hCallback;
9285 NodeDestructionCookie* pDestructionCookie;
9287 pDestructionCookie->pFunc = handler;
9288 pDestructionCookie->pCookie = pCookie;
9290 nRetVal =
xnRegisterToNodeDestruction(m_pContext, NodeDestructionCallback, pDestructionCookie, &pDestructionCookie->hUnderlyingCallback);
9293 hCallback = pDestructionCookie;
9307 NodeDestructionCookie* pDestructionCookie = (NodeDestructionCookie*)hCallback;
9464 if (m_pContext == pContext)
9469 if (m_pContext != NULL)
9471 if (m_bUsingDeprecatedAPI && m_bAllocated)
9484 if (pContext != NULL)
9494 m_pContext = pContext;
9501 if (pContext != NULL)
9510 m_bUsingDeprecatedAPI =
TRUE;
9511 #pragma warning (push)
9512 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
9513 return xnContextRunXmlScript(m_pContext, strScript, pErrors == NULL ? NULL : pErrors->GetUnderlying());
9514 #pragma warning (pop)
9517 inline XnStatus XN_API_DEPRECATED(
"Use other overload!")
RunXmlScriptFromFile(const XnChar* strFileName, EnumerationErrors* pErrors = NULL)
9519 m_bUsingDeprecatedAPI =
TRUE;
9520 #pragma warning (push)
9521 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
9523 #pragma warning (pop)
9526 inline XnStatus XN_API_DEPRECATED(
"Use other overload!")
InitFromXmlFile(const XnChar* strFileName, EnumerationErrors* pErrors = NULL)
9529 m_bUsingDeprecatedAPI =
TRUE;
9531 #pragma warning (push)
9532 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
9534 #pragma warning (pop)
9538 m_bAllocated =
TRUE;
9545 m_bUsingDeprecatedAPI =
TRUE;
9546 #pragma warning (push)
9547 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
9549 #pragma warning (pop)
9552 inline void XN_API_DEPRECATED(
"You may use Release() instead, or count on dtor") Shutdown()
9554 if (m_pContext != NULL)
9556 #pragma warning (push)
9557 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS)
9559 #pragma warning (pop)
9572 Tree.m_bOwnerOfNode =
TRUE;
9579 typedef struct NodeCreationCookie
9584 } NodeCreationCookie;
9586 typedef struct NodeDestructionCookie
9591 } NodeDestructionCookie;
9593 static void XN_CALLBACK_TYPE NodeCreationCallback(
XnContext* pContext,
XnNodeHandle hCreatedNode,
void* pCookie)
9595 NodeCreationCookie* pNodeCreationCookie = (NodeCreationCookie*)pCookie;
9597 ProductionNode createdNode(hCreatedNode);
9598 pNodeCreationCookie->pFunc(context, createdNode, pNodeCreationCookie->pCookie);
9601 static void XN_CALLBACK_TYPE NodeDestructionCallback(
XnContext* pContext,
const XnChar* strDestroyedNodeName,
void* pCookie)
9603 NodeDestructionCookie* pNodeCreationCookie = (NodeDestructionCookie*)pCookie;
9605 pNodeCreationCookie->pFunc(context, strDestroyedNodeName, pNodeCreationCookie->pCookie);
9608 static void XN_CALLBACK_TYPE ContextShuttingDownCallback(
XnContext* ,
void* pCookie)
9611 pThis->m_pContext = NULL;
9615 XnBool m_bUsingDeprecatedAPI;
9616 XnBool m_bAllocated;
9645 inline Resolution(XnUInt32 xRes, XnUInt32 yRes) : m_nXRes(xRes), m_nYRes(yRes)
9679 inline const XnChar*
GetName()
const {
return m_strName; }
9685 const XnChar* m_strName;
9711 if (m_pNeededNodes == NULL)
9717 return *m_pNeededNodes;
9720 inline void NodeInfo::SetUnderlyingObject(
XnNodeInfo* pInfo)
9722 if (m_pNeededNodes != NULL)
9727 m_bOwnerOfNode =
FALSE;
9729 m_pNeededNodes = NULL;
9754 if (m_pInfo == NULL)
9756 return XN_STATUS_INVALID_OPERATION;
10006 return xnFunc(hNode, StateChangedCallback,
this, &m_hCallback);
10011 xnFunc(hNode, m_hCallback);
10021 nRetVal = pTrans->
Register(xnFunc, hNode);
10028 hCallback = pTrans;
10044 typedef struct StateChangeCookie
10049 } StateChangeCookie;
10051 static void XN_CALLBACK_TYPE StateChangedCallback(
XnNodeHandle hNode,
void* pCookie)
10055 pTrans->m_UserHandler(node, pTrans->m_pUserCookie);
10059 void* m_pUserCookie;
10087 hCallback = pTrans;
#define XN_CODEC_NULL
Definition: XnCodecIDs.h:27
#define XN_IS_STATUS_OK(x)
Definition: XnMacros.h:60
#define XN_REFERENCE_VARIABLE(x)
Definition: XnMacros.h:125
#define XN_VALIDATE_ALLOC_PTR(x)
Definition: XnOS.h:128
#define XN_VALIDATE_ALLOC(x, y)
Definition: XnOS.h:131
#define XN_DELETE(p)
Definition: XnOS.h:336
#define XN_NEW(type,...)
Definition: XnOS.h:326
#define XN_VALIDATE_NEW(ptr, type,...)
Definition: XnOS.h:168
XN_C_API void XN_C_DECL xnOSFreeAligned(const void *pMemBlock)
XN_C_API void *XN_C_DECL xnOSMallocAligned(const XnSizeT nAllocSize, const XnSizeT nAlignment)
XN_C_API void XN_C_DECL xnOSMemCopy(void *pDest, const void *pSource, XnSizeT nCount)
XN_C_API void XN_C_DECL xnOSMemSet(void *pDest, XnUInt8 nValue, XnSizeT nCount)
XN_C_API void XN_C_DECL xnOSFree(const void *pMemBlock)
XnUInt32 XnStatus
Definition: XnStatus.h:34
#define XN_STATUS_OK
Definition: XnStatus.h:37
#define XN_CAPABILITY_BACKLIGHT_COMPENSATION
Definition: XnTypes.h:331
XnUInt32 XnCodecID
Definition: XnTypes.h:839
XnUInt8 XnGrayscale8Pixel
Definition: XnTypes.h:299
#define XN_CAPABILITY_CONTRAST
Definition: XnTypes.h:325
XnPixelFormat
Definition: XnTypes.h:512
@ XN_PIXEL_FORMAT_YUV422
Definition: XnTypes.h:514
@ XN_PIXEL_FORMAT_MJPEG
Definition: XnTypes.h:517
@ XN_PIXEL_FORMAT_GRAYSCALE_16_BIT
Definition: XnTypes.h:516
@ XN_PIXEL_FORMAT_GRAYSCALE_8_BIT
Definition: XnTypes.h:515
@ XN_PIXEL_FORMAT_RGB24
Definition: XnTypes.h:513
XnResolution
Definition: XnTypes.h:408
#define XN_CAPABILITY_GAMMA
Definition: XnTypes.h:329
#define XN_CAPABILITY_GAIN
Definition: XnTypes.h:332
XnSkeletonProfile
Definition: XnTypes.h:645
XnPoseDetectionStatus
Definition: XnTypes.h:664
#define XN_CAPABILITY_SATURATION
Definition: XnTypes.h:327
#define XN_CAPABILITY_TILT
Definition: XnTypes.h:334
XnPowerLineFrequency
Definition: XnTypes.h:539
XnUInt16 XnGrayscale16Pixel
Definition: XnTypes.h:302
#define XN_CAPABILITY_EXPOSURE
Definition: XnTypes.h:337
XnPlayerSeekOrigin
Definition: XnTypes.h:532
void * XnCallbackHandle
Definition: XnTypes.h:268
#define XN_CAPABILITY_COLOR_TEMPERATURE
Definition: XnTypes.h:330
#define XN_CAPABILITY_HUE
Definition: XnTypes.h:326
void(* XnFreeHandler)(const void *pData)
Definition: XnTypes.h:242
#define XN_CAPABILITY_ROLL
Definition: XnTypes.h:335
XnUInt32 XnLockHandle
Definition: XnTypes.h:87
XnGrayscale16Pixel XnIRPixel
Definition: XnTypes.h:305
struct XnNodeInfoList XnNodeInfoList
Definition: XnTypes.h:187
XnUInt32 XnUserID
Definition: XnTypes.h:546
#define XN_CAPABILITY_IRIS
Definition: XnTypes.h:338
#define XN_CAPABILITY_PAN
Definition: XnTypes.h:333
struct XnRGB24Pixel XnRGB24Pixel
void(* XnErrorStateChangedHandler)(XnStatus errorState, void *pCookie)
Definition: XnTypes.h:235
#define XN_CAPABILITY_FOCUS
Definition: XnTypes.h:339
struct XnNodeInfo XnNodeInfo
Definition: XnTypes.h:177
#define XN_CAPABILITY_LOW_LIGHT_COMPENSATION
Definition: XnTypes.h:340
#define XN_CAPABILITY_SHARPNESS
Definition: XnTypes.h:328
#define XN_CAPABILITY_ZOOM
Definition: XnTypes.h:336
XnInt32 XnProductionNodeType
Definition: XnTypes.h:92
XnDirection
Definition: XnTypes.h:699
XnSkeletonJoint
Definition: XnTypes.h:612
XnPoseDetectionState
Definition: XnTypes.h:676
struct XnNodeQuery XnNodeQuery
Definition: XnTypes.h:197
struct XnYUV422DoublePixel XnYUV422DoublePixel
XnCalibrationStatus
Definition: XnTypes.h:683
@ XN_NODE_TYPE_DEPTH
Definition: XnTypes.h:106
@ XN_NODE_TYPE_IR
Definition: XnTypes.h:115
@ XN_NODE_TYPE_IMAGE
Definition: XnTypes.h:109
@ XN_NODE_TYPE_AUDIO
Definition: XnTypes.h:112
@ XN_NODE_TYPE_GENERATOR
Definition: XnTypes.h:140
void(* XnStateChangedHandler)(XnNodeHandle hNode, void *pCookie)
Definition: XnTypes.h:227
XnUInt16 XnDepthPixel
Definition: XnTypes.h:276
#define XN_CAPABILITY_BRIGHTNESS
Definition: XnTypes.h:324
struct XnInternalNodeData * XnNodeHandle
Definition: XnTypes.h:82
XnUInt16 XnLabel
Definition: XnTypes.h:308
struct XnContext XnContext
Definition: XnTypes.h:77
Definition: XnCppWrapper.h:3104
void UnregisterFromViewPointChange(XnCallbackHandle hCallback)
Unregisters the event handler for the the 'Viewpoint Change' event.
Definition: XnCppWrapper.h:3181
XnStatus SetViewPoint(ProductionNode &otherNode)
Sets the current viewpoint of the holding generator node to look as if it is placed at a different ge...
Definition: XnCppWrapper.h:3135
XnBool IsViewPointSupported(ProductionNode &otherNode) const
Checks if the generator node holding this capability can change its output to appear as if the sensor...
Definition: XnCppWrapper.h:3123
XnStatus ResetViewPoint()
Sets the viewpoint of the holding generator node to its normal viewpoint.
Definition: XnCppWrapper.h:3143
XnStatus RegisterToViewPointChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a handler for the 'Viewpoint Change' event (see the above overview to this class).
Definition: XnCppWrapper.h:3169
AlternativeViewPointCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:3106
AlternativeViewPointCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:3107
XnBool IsViewPointAs(ProductionNode &otherNode) const
Returns whether the holder node's viewpoint is the same viewpoint as that of another specified node....
Definition: XnCppWrapper.h:3155
Definition: XnCppWrapper.h:4175
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:4189
void UnregisterFromPowerLineFrequencyChange(XnCallbackHandle hCallback)
Unregisters the event handler for the 'Power Line Frequency Change' event.
Definition: XnCppWrapper.h:4224
AntiFlickerCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:4183
XnStatus RegisterToPowerLineFrequencyChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Power Line Frequency Change' event.
Definition: XnCppWrapper.h:4212
XnPowerLineFrequency GetPowerLineFrequency()
Gets the power line frequency. For full details and usage, see xnGetPowerLineFrequency
Definition: XnCppWrapper.h:4198
AntiFlickerCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:4182
Definition: XnCppWrapper.h:8039
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates an AudioGenerator node from available production node alternatives.
Definition: XnCppWrapper.h:9925
void GetMetaData(AudioMetaData &metaData) const
Gets the audio generator node's latest frame object, saving it in the xn::AudioMetaData object....
Definition: XnCppWrapper.h:8074
const XnUChar * GetAudioBuffer() const
For full details and usage, see xnGetAudioBuffer
Definition: XnCppWrapper.h:8083
AudioGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:8047
void UnregisterFromWaveOutputModeChanges(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Wave Output Mode Change' event.
Definition: XnCppWrapper.h:8160
XnStatus RegisterToWaveOutputModeChanges(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Wave Output Mode Change' event.
Definition: XnCppWrapper.h:8148
XnStatus GetWaveOutputMode(XnWaveOutputMode &OutputMode) const
Gets the current AudioGenerator node's wave output mode. This output mode is used for generating the ...
Definition: XnCppWrapper.h:8134
AudioGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:8046
XnUInt32 GetSupportedWaveOutputModesCount() const
Gets the node's number of supported wave output modes.
Definition: XnCppWrapper.h:8091
XnStatus SetWaveOutputMode(const XnWaveOutputMode &OutputMode)
Sets the current wave output mode of the AudioGenerator node. This output mode is used for generating...
Definition: XnCppWrapper.h:8118
XnStatus GetSupportedWaveOutputModes(XnWaveOutputMode *aSupportedModes, XnUInt32 &nCount) const
Returns a list of the wave output modes that the AudioGenerator node supports.
Definition: XnCppWrapper.h:8102
Definition: XnCppWrapper.h:2436
Capability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:2443
Capability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2444
Definition: XnCppWrapper.h:8254
XnStatus EncodeData(const void *pSrc, XnUInt32 nSrcSize, void *pDst, XnUInt32 nDstSize, XnUInt *pnBytesWritten) const
For full details and usage, see xnEncodeData
Definition: XnCppWrapper.h:8283
XnStatus Create(Context &context, XnCodecID codecID, ProductionNode &initializerNode)
For full details and usage, see xnCreateCodec
Definition: XnCppWrapper.h:9963
XnCodecID GetCodecID() const
For full details and usage, see xnGetCodecID
Definition: XnCppWrapper.h:8274
XnStatus DecodeData(const void *pSrc, XnUInt32 nSrcSize, void *pDst, XnUInt32 nDstSize, XnUInt *pnBytesWritten) const
For full details and usage, see xnDecodeData
Definition: XnCppWrapper.h:8292
Codec(const NodeWrapper &other)
Definition: XnCppWrapper.h:8262
Codec(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:8261
Definition: XnCppWrapper.h:8594
XnStatus RunXmlScriptFromFile(const XnChar *strFileName, ScriptNode &scriptNode, EnumerationErrors *pErrors=NULL)
Runs an XML script file to build a production graph.
Definition: XnCppWrapper.h:8762
XnStatus FindExistingNode(XnProductionNodeType type, ProductionNode &node) const
Searches for an existing created node of a specified type and returns a reference to it.
Definition: XnCppWrapper.h:9108
XnStatus WaitAnyUpdateAll()
Updates all generator nodes in the context to their latest available data, first waiting for any of t...
Definition: XnCppWrapper.h:9384
XnStatus EnumerateProductionTrees(XnProductionNodeType Type, const Query *pQuery, NodeInfoList &TreesList, EnumerationErrors *pErrors=NULL) const
Enumerates all available production nodes for a specific node type (e.g., the application wants to cr...
Definition: XnCppWrapper.h:8951
~Context()
Definition: XnCppWrapper.h:8657
void UnregisterFromNodeCreation(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Node Creation' event. see Event: 'Node Creation'.
Definition: XnCppWrapper.h:9265
XnStatus CreateCodec(XnCodecID codecID, ProductionNode &initializerNode, Codec &codec)
For full details and usage, see xnCreateCodec
Definition: XnCppWrapper.h:8872
XnStatus EnumerateLicenses(XnLicense *&aLicenses, XnUInt32 &nCount) const
For full details and usage, see xnEnumerateLicenses
Definition: XnCppWrapper.h:8917
XnStatus OpenFileRecording(const XnChar *strFileName, ProductionNode &playerNode)
Recreates a production graph from a recorded ONI file and then replays the data generation exactly as...
Definition: XnCppWrapper.h:8821
Context()
Definition: XnCppWrapper.h:8631
XnStatus RunXmlScript(const XnChar *strScript, ScriptNode &scriptNode, EnumerationErrors *pErrors=NULL)
Runs an XML script string to build a production graph.
Definition: XnCppWrapper.h:8734
XnStatus RegisterToErrorStateChange(XnErrorStateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Global Error State Change' event.
Definition: XnCppWrapper.h:9215
Context(XnContext *pContext)
Definition: XnCppWrapper.h:8638
void Release()
Releases a context object, decreasing its ref count by 1. If reference count has reached 0,...
Definition: XnCppWrapper.h:8898
void UnregisterFromErrorStateChange(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Global Error State Change' event.
Definition: XnCppWrapper.h:9227
XnStatus CreateAnyProductionTree(XnProductionNodeType type, Query *pQuery, ProductionNode &node, EnumerationErrors *pErrors=NULL)
Enumerates for production nodes of a specific node type, and creates the first production node found ...
Definition: XnCppWrapper.h:8998
XnStatus GetProductionNodeInfoByName(const XnChar *strInstanceName, NodeInfo &nodeInfo) const
For full details and usage, see xnGetNodeHandleByName
Definition: XnCppWrapper.h:9142
XnStatus WaitAndUpdateAll()
Updates all generator nodes in the context to their latest available data, first waiting for all node...
Definition: XnCppWrapper.h:9345
Context & operator=(const Context &other)
Definition: XnCppWrapper.h:8662
XnBool GetGlobalMirror()
Gets the current state of the GlobalMirror flag.
Definition: XnCppWrapper.h:9192
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:9454
XnBool operator==(const Context &other)
Definition: XnCppWrapper.h:8678
XnBool operator!=(const Context &other)
Definition: XnCppWrapper.h:8688
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:8838
XnStatus AddRef()
Adds a reference to the context object. For full details and usage, see xnContextAddRef
Definition: XnCppWrapper.h:8889
Context(const Context &other)
Definition: XnCppWrapper.h:8649
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:9201
XnStatus InitFromXmlFile(const XnChar *strFileName, ScriptNode &scriptNode, EnumerationErrors *pErrors=NULL)
Shorthand combination of two other initialization methods - Init() and then RunXmlScriptFromFile() - ...
Definition: XnCppWrapper.h:8790
void UnregisterFromNodeDestruction(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Node Destruction' event. see Event: 'Node Destruction'.
Definition: XnCppWrapper.h:9305
XnStatus GetProductionNodeByName(const XnChar *strInstanceName, ProductionNode &node) const
For full details and usage, see xnGetNodeHandleByName
Definition: XnCppWrapper.h:9125
XnStatus EnumerateExistingNodes(NodeInfoList &list) const
Returns a list of all the context's existing created nodes.
Definition: XnCppWrapper.h:9050
XnStatus RegisterToNodeCreation(NodeCreationHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Node Creation' event. see Event: 'Node Creation'.
Definition: XnCppWrapper.h:9241
void TakeOwnership(XnContext *pContext)
Definition: XnCppWrapper.h:9497
XnStatus RegisterToNodeDestruction(NodeDestructionHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Node Destruction' event. see Event: 'Node Destruction'.
Definition: XnCppWrapper.h:9281
XnStatus EnumerateExistingNodes(NodeInfoList &list, XnProductionNodeType type) const
Returns a list of the context's existing created nodes filtered by type.
Definition: XnCppWrapper.h:9079
void(* NodeDestructionHandler)(Context &context, const XnChar *strDestroyedNodeName, void *pCookie)
Definition: XnCppWrapper.h:8626
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:8855
XnStatus WaitOneUpdateAll(ProductionNode &node)
Updates all generator nodes in the context to their latest available data, first waiting for a specif...
Definition: XnCppWrapper.h:9419
static void FreeLicensesList(XnLicense aLicenses[])
For full details and usage, see xnFreeLicensesList
Definition: XnCppWrapper.h:8926
XnStatus CreateProductionTree(NodeInfo &Tree, ProductionNode &node)
Creates a production node from the information supplied in a xn::NodeInfo object.
Definition: XnCppWrapper.h:9029
void(* NodeCreationHandler)(Context &context, ProductionNode &createdNode, void *pCookie)
Definition: XnCppWrapper.h:8610
XnStatus SetGlobalMirror(XnBool bMirror)
Enables/disables the GlobalMirror flag.
Definition: XnCppWrapper.h:9183
XnStatus Init()
Builds the context's general software environment.
Definition: XnCppWrapper.h:8707
XnStatus WaitNoneUpdateAll()
Immediately updates all generator nodes in the context to their latest available data,...
Definition: XnCppWrapper.h:9445
void SetHandle(XnContext *pContext)
Definition: XnCppWrapper.h:9462
XnStatus StopGeneratingAll()
Ensures all generator nodes are not generating data.
Definition: XnCppWrapper.h:9169
XnStatus AddLicense(const XnLicense &License)
For full details and usage, see xnAddLicense
Definition: XnCppWrapper.h:8908
XnContext * GetUnderlyingObject() const
Definition: XnCppWrapper.h:8671
XnStatus StartGeneratingAll()
Ensures all created generator nodes are generating data.
Definition: XnCppWrapper.h:9161
Definition: XnCppWrapper.h:4100
CroppingCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:4108
CroppingCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:4107
XnStatus SetCropping(const XnCropping &Cropping)
Sets the holder node's current cropping configuration. This configuration is used for generating the ...
Definition: XnCppWrapper.h:4119
XnStatus RegisterToCroppingChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Cropping Change' event.
Definition: XnCppWrapper.h:4148
void UnregisterFromCroppingChange(XnCallbackHandle hCallback)
Unregisters the event handler for the 'Cropping Change' event.
Definition: XnCppWrapper.h:4160
XnStatus GetCropping(XnCropping &Cropping) const
Gets the current cropping configuration of the holder node. This configuration is that set by SetCrop...
Definition: XnCppWrapper.h:4134
Definition: XnCppWrapper.h:4695
const UserPositionCapability GetUserPositionCap() const
Definition: XnCppWrapper.h:4840
XnDepthPixel GetDeviceMaxDepth() const
Gets the maximum depth value that the DepthGenerator node can generate. The maximum depth value is a ...
Definition: XnCppWrapper.h:4753
const XnDepthPixel * GetDepthMap() const
Gets the current depth-map. This map is updated after a call to xnWaitAndUpdateData()....
Definition: XnCppWrapper.h:4739
XnStatus ConvertRealWorldToProjective(XnUInt32 nCount, const XnPoint3D aRealWorld[], XnPoint3D aProjective[]) const
Converts a list of points from real world coordinates to projective coordinates.
Definition: XnCppWrapper.h:4830
void GetMetaData(DepthMetaData &metaData) const
Gets the depth generator node's latest frame object, saving it in the xn::DepthMetaData object....
Definition: XnCppWrapper.h:4730
UserPositionCapability GetUserPositionCap()
Definition: XnCppWrapper.h:4850
DepthGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:4703
XnStatus GetFieldOfView(XnFieldOfView &FOV) const
Gets the dimensions of the field of view (FOV) of the hardware sensor.
Definition: XnCppWrapper.h:4776
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a DepthGenerator node from available production node alternatives.
Definition: XnCppWrapper.h:9801
void UnregisterFromFieldOfViewChange(XnCallbackHandle hCallback)
Unregisters the event handler for the 'Field-Of-View Change' event.
Definition: XnCppWrapper.h:4802
XnStatus ConvertProjectiveToRealWorld(XnUInt32 nCount, const XnPoint3D aProjective[], XnPoint3D aRealWorld[]) const
Converts a list of points from projective coordinates to real world coordinates.
Definition: XnCppWrapper.h:4816
DepthGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:4702
XnStatus RegisterToFieldOfViewChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Field-Of-View Change' event.
Definition: XnCppWrapper.h:4790
Definition: XnCppWrapper.h:2938
Device(const NodeWrapper &other)
Definition: XnCppWrapper.h:2941
Device(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2940
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a Device node from available production node alternatives.
Definition: XnCppWrapper.h:9774
DeviceIdentificationCapability GetIdentificationCap()
Definition: XnCppWrapper.h:2966
Definition: XnCppWrapper.h:2871
DeviceIdentificationCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2879
XnStatus GetVendorSpecificData(XnChar *strBuffer, XnUInt32 nBufferSize)
Gets the vendor-specific name of the device holding this capability object.
Definition: XnCppWrapper.h:2904
DeviceIdentificationCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:2878
XnStatus GetDeviceName(XnChar *strBuffer, XnUInt32 nBufferSize)
Gets the name of the device holding this capability object.
Definition: XnCppWrapper.h:2890
XnStatus GetSerialNumber(XnChar *strBuffer, XnUInt32 nBufferSize)
Gets the vendor-specific name of the device holding this capability object.
Definition: XnCppWrapper.h:2918
Definition: XnCppWrapper.h:8432
XnBool operator!=(const Iterator &other) const
Definition: XnCppWrapper.h:8451
Iterator & operator++()
Definition: XnCppWrapper.h:8460
Iterator operator++(int)
Definition: XnCppWrapper.h:8470
XnBool operator==(const Iterator &other) const
Definition: XnCppWrapper.h:8441
const XnProductionNodeDescription & Description()
Returns the description data of the failing node the iterator points to.
Definition: XnCppWrapper.h:8483
XnStatus Error()
Returns the failure error code of the failing node the iterator points to. For a string representatio...
Definition: XnCppWrapper.h:8489
Definition: XnCppWrapper.h:8407
XnStatus ToString(XnChar *csBuffer, XnUInt32 nSize)
Returns a string representation of the Enumeration Errors object. The string contains a full list of ...
Definition: XnCppWrapper.h:8525
XnEnumerationErrors * GetUnderlying()
Definition: XnCppWrapper.h:8547
Iterator Begin() const
Gets an iterator to the first item in an enumeration errors list.
Definition: XnCppWrapper.h:8505
EnumerationErrors()
Definition: XnCppWrapper.h:8412
EnumerationErrors(XnEnumerationErrors *pErrors, XnBool bOwn=FALSE)
Definition: XnCppWrapper.h:8421
~EnumerationErrors()
Definition: XnCppWrapper.h:8426
Iterator End() const
Returns an iterator referring to the past-the-end element in an enumeration errors list....
Definition: XnCppWrapper.h:8515
void Free()
For full details and usage, see xnEnumerationErrorsFree
Definition: XnCppWrapper.h:8534
Definition: XnCppWrapper.h:2481
XnStatus RegisterToErrorStateChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Error State Change' event.
Definition: XnCppWrapper.h:2508
void UnregisterFromErrorStateChange(XnCallbackHandle hCallback)
Unregisters the event handler for the 'Error State Change' event.
Definition: XnCppWrapper.h:2520
ErrorStateCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2489
ErrorStateCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:2488
XnStatus GetErrorState() const
Gets the current error state of the holding node.
Definition: XnCppWrapper.h:2494
Definition: XnCppWrapper.h:3209
XnStatus FrameSyncWith(Generator &other)
Activates frame synchronization with the other generator node.
Definition: XnCppWrapper.h:9737
FrameSyncCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:3212
XnStatus RegisterToFrameSyncChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Frame Sync Change' event.
Definition: XnCppWrapper.h:3255
FrameSyncCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:3211
XnStatus StopFrameSyncWith(Generator &other)
Removes the frame sync between the node holding this capability and the specified other node.
Definition: XnCppWrapper.h:9742
void UnregisterFromFrameSyncChange(XnCallbackHandle hCallback)
Unregisters the 'Frame Sync Change' event handler.
Definition: XnCppWrapper.h:3267
XnBool IsFrameSyncedWith(Generator &other) const
Returns whether a frame sync has been applied between the node holding this capability and another sp...
Definition: XnCppWrapper.h:9747
XnBool CanFrameSyncWith(Generator &other) const
Returns whether the generator node holding this capability can synchronize frames with the other spec...
Definition: XnCppWrapper.h:9732
Definition: XnCppWrapper.h:2532
XnStatus Set(XnInt32 nValue)
Sets the current value of this capability. For full details and usage, see xnSetGeneralIntValue
Definition: XnCppWrapper.h:2567
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:2547
XnInt32 Get()
Gets the current value of this capability. For full details and usage, see xnGetGeneralIntValue
Definition: XnCppWrapper.h:2556
GeneralIntCapability(XnNodeHandle hNode, const XnChar *strCap)
Definition: XnCppWrapper.h:2540
void UnregisterFromValueChange(XnCallbackHandle hCallback)
Unregisters the event handler for the 'Value Change' event.
Definition: XnCppWrapper.h:10092
XnStatus RegisterToValueChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Value Change' event.
Definition: XnCppWrapper.h:10073
GeneralIntCapability(const NodeWrapper &node, const XnChar *strCap)
Definition: XnCppWrapper.h:2541
Definition: XnCppWrapper.h:3326
const FrameSyncCapability GetFrameSyncCap() const
Definition: XnCppWrapper.h:3626
Generator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3333
FrameSyncCapability GetFrameSyncCap()
Definition: XnCppWrapper.h:3640
void UnregisterFromGenerationRunningChange(XnCallbackHandle hCallback)
Unregisters the 'Generation State Change' event handler.
Definition: XnCppWrapper.h:3406
XnStatus StartGenerating()
Enters the node into Generating state.
Definition: XnCppWrapper.h:3355
XnStatus RegisterToGenerationRunningChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Generation State Change' event.
Definition: XnCppWrapper.h:3394
XnBool IsNewDataAvailable(XnUInt64 *pnTimestamp=NULL) const
Returns whether the node has new data available. The new data is available for updating,...
Definition: XnCppWrapper.h:3449
MirrorCapability GetMirrorCap()
Gets a MirrorCapability object for accessing Mirror functionality.
Definition: XnCppWrapper.h:3582
const AlternativeViewPointCapability GetAlternativeViewPointCap() const
Definition: XnCppWrapper.h:3597
XnStatus RegisterToNewDataAvailable(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'New Data Available' event.
Definition: XnCppWrapper.h:3424
XnBool IsDataNew() const
Definition: XnCppWrapper.h:3481
Generator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3334
void UnregisterFromNewDataAvailable(XnCallbackHandle hCallback)
Unregisters the event handler for the 'New Data Available' event.
Definition: XnCppWrapper.h:3436
XnUInt64 GetTimestamp() const
Gets the frame timestamp from the Generator node This method gets the timestamp directly from the Gen...
Definition: XnCppWrapper.h:3539
const MirrorCapability GetMirrorCap() const
Gets a MirrorCapability object for accessing Mirror functionality.
Definition: XnCppWrapper.h:3569
XnStatus WaitAndUpdateData()
Updates the generator node to the latest available data, first waiting for the node to have new data ...
Definition: XnCppWrapper.h:3472
XnStatus StopGenerating()
Makes the node leave Generating state (enters Non-Generating state).
Definition: XnCppWrapper.h:3376
AlternativeViewPointCapability GetAlternativeViewPointCap()
Definition: XnCppWrapper.h:3612
XnUInt32 GetFrameID() const
Gets the frame ID of the current frame data from the Generator node.
Definition: XnCppWrapper.h:3556
const void * GetData()
Gets the frame data from the generator node. This is the latest data that the generator node has gene...
Definition: XnCppWrapper.h:3503
XnUInt32 GetDataSize() const
Gets the data size of the frame data. This method gets the data size directly from the Generator node...
Definition: XnCppWrapper.h:3521
XnBool IsGenerating() const
Returns whether the node is currently in Generating state.
Definition: XnCppWrapper.h:3363
Definition: XnCppWrapper.h:5355
void UnregisterFromGestureChange(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Gesture Change' event.
Definition: XnCppWrapper.h:5583
XnStatus AddGesture(const XnChar *strGesture, XnBoundingBox3D *pArea)
Activates the GestureGenerator node to start looking for the named gesture in the FOV....
Definition: XnCppWrapper.h:5393
XnStatus RegisterToGestureChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Gesture Change' event.
Definition: XnCppWrapper.h:5571
void(* GestureRecognized)(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pIDPosition, const XnPoint3D *pEndPosition, void *pCookie)
Definition: XnCppWrapper.h:5485
XnStatus EnumerateAllGestures(XnChar **astrGestures, XnUInt32 nNameLength, XnUInt16 &nGestures) const
Gets the names of all active gestures in this generator node.
Definition: XnCppWrapper.h:5440
void(* GestureReadyForNextIntermediateStage)(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pPosition, void *pCookie)
Definition: XnCppWrapper.h:5679
XnStatus GetAllActiveGestures(XnChar **astrGestures, XnUInt32 nNameLength, XnUInt16 &nGestures) const
Get the names of all gestures that are currently active in this generator node.
Definition: XnCppWrapper.h:5418
void(* GestureProgress)(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pPosition, XnFloat fProgress, void *pCookie)
Definition: XnCppWrapper.h:5513
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a gesture generator node from available production node alternatives.
Definition: XnCppWrapper.h:9888
XnStatus RegisterGestureCallbacks(GestureRecognized RecognizedCB, GestureProgress ProgressCB, void *pCookie, XnCallbackHandle &hCallback)
Registers event handlers for the 'Gesture Recognized' and 'Gesture Progress' events....
Definition: XnCppWrapper.h:5526
GestureGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:5363
XnBool IsGestureAvailable(const XnChar *strGesture) const
Returns whether a specific gesture is available in this generator node.
Definition: XnCppWrapper.h:5450
void(* GestureIntermediateStageCompleted)(GestureGenerator &generator, const XnChar *strGesture, const XnPoint3D *pPosition, void *pCookie)
Definition: XnCppWrapper.h:5615
void UnregisterGestureCallbacks(XnCallbackHandle hCallback)
Unregisters the event handlers for the 'Gesture Recognized' and 'Gesture Progress' events.
Definition: XnCppWrapper.h:5555
XnBool IsGestureProgressSupported(const XnChar *strGesture) const
Check if the specific gesture supports 'in progress' callbacks. For full details and usage,...
Definition: XnCppWrapper.h:5459
XnStatus RegisterToGestureIntermediateStageCompleted(GestureIntermediateStageCompleted handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Gesture Intermediate Stage Completed' event.
Definition: XnCppWrapper.h:5626
XnStatus RemoveGesture(const XnChar *strGesture)
Disables the GestureGenerator from looking for the named gesture in the FOV. It does this by removing...
Definition: XnCppWrapper.h:5405
XnUInt16 GetNumberOfAvailableGestures() const
Get the number of all gestures available. For full details and usage, see xnGetNumberOfAvailableGestu...
Definition: XnCppWrapper.h:5427
GestureGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5362
void UnregisterFromGestureIntermediateStageCompleted(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Gesture Intermediate Stage Completed' event.
Definition: XnCppWrapper.h:5654
XnStatus RegisterToGestureReadyForNextIntermediateStage(GestureReadyForNextIntermediateStage handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Gesture Ready For Next Intermediate Stage' event.
Definition: XnCppWrapper.h:5690
void UnregisterFromGestureReadyForNextIntermediateStageCallbacks(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Gesture Ready For Next Intermediate Stage' event.
Definition: XnCppWrapper.h:5718
Definition: XnCppWrapper.h:5891
HandTouchingFOVEdgeCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:5899
void UnregisterFromHandTouchingFOVEdge(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Hand Touching FOV Edge' event.
Definition: XnCppWrapper.h:5950
XnStatus RegisterToHandTouchingFOVEdge(HandTouchingFOVEdge handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Hand Touching FOV Edge' event.
Definition: XnCppWrapper.h:5922
void(* HandTouchingFOVEdge)(HandTouchingFOVEdgeCapability &touchingfov, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, XnDirection eDir, void *pCookie)
Definition: XnCppWrapper.h:5911
HandTouchingFOVEdgeCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:5898
Definition: XnCppWrapper.h:6064
XnStatus SetSmoothing(XnFloat fSmoothingFactor)
Changes the smoothing factor.
Definition: XnCppWrapper.h:6250
void(* HandCreate)(HandsGenerator &generator, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, void *pCookie)
Definition: XnCppWrapper.h:6098
XnStatus StopTracking(XnUserID user)
Stops tracking an existing hand that you are no longer interested in.
Definition: XnCppWrapper.h:6195
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a HandsGenerator node from available production node alternatives.
Definition: XnCppWrapper.h:9907
XnStatus StopTrackingAll()
Stops tracking all existing hands.
Definition: XnCppWrapper.h:6208
HandTouchingFOVEdgeCapability GetHandTouchingFOVEdgeCap()
Definition: XnCppWrapper.h:6274
void(* HandDestroy)(HandsGenerator &generator, XnUserID user, XnFloat fTime, void *pCookie)
Definition: XnCppWrapper.h:6131
void UnregisterHandCallbacks(XnCallbackHandle hCallback)
Unregisters event handlers for the 'Hand Create', 'Hand Update' and 'Hand Destroy' events.
Definition: XnCppWrapper.h:6175
const HandTouchingFOVEdgeCapability GetHandTouchingFOVEdgeCap() const
Definition: XnCppWrapper.h:6262
HandsGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:6072
void(* HandUpdate)(HandsGenerator &generator, XnUserID user, const XnPoint3D *pPosition, XnFloat fTime, void *pCookie)
Definition: XnCppWrapper.h:6116
XnStatus RegisterHandCallbacks(HandCreate CreateCB, HandUpdate UpdateCB, HandDestroy DestroyCB, void *pCookie, XnCallbackHandle &hCallback)
Registers event handlers for the 'Hand Create', 'Hand Update' and 'Hand Destroy' events....
Definition: XnCppWrapper.h:6145
XnStatus StartTracking(const XnPoint3D &ptPosition)
Starts tracking at the specific position where the application expects a hand.
Definition: XnCppWrapper.h:6229
HandsGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:6071
Definition: XnCppWrapper.h:5176
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates an IRGenerator node from available production node alternatives.
Definition: XnCppWrapper.h:9859
IRGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:5184
IRGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5183
const XnIRPixel * GetIRMap() const
Gets a pointer to the latest IR map.
Definition: XnCppWrapper.h:5218
void GetMetaData(IRMetaData &metaData) const
Gets the IR generator node's latest frame object, saving it in the xn::IRMetaData object....
Definition: XnCppWrapper.h:5210
Definition: XnCppWrapper.h:4940
void UnregisterFromPixelFormatChange(XnCallbackHandle hCallback)
Unregisters the event handler for the 'Pixel Format Change' event.
Definition: XnCppWrapper.h:5096
XnStatus RegisterToPixelFormatChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Pixel Format Change' event.
Definition: XnCppWrapper.h:5084
XnPixelFormat GetPixelFormat() const
Gets the current pixel color format. This is the format set using xn::ImageGenerator node::SetPixelFo...
Definition: XnCppWrapper.h:5070
XnStatus SetPixelFormat(XnPixelFormat Format)
Sets the ImageGenerator node's current 'pixel color' format. This format is used for generating the n...
Definition: XnCppWrapper.h:5055
ImageGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:4947
const XnRGB24Pixel * GetRGB24ImageMap() const
Gets the current RGB24 image-map. This map is updated after a call to xnWaitAndUpdateData()....
Definition: XnCppWrapper.h:4982
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates and initializes an ImageGenerator node from available production node alternatives.
Definition: XnCppWrapper.h:9830
ImageGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:4948
void GetMetaData(ImageMetaData &metaData) const
Gets the image generator node's latest frame object, saving it in the xn::ImageMetaData object....
Definition: XnCppWrapper.h:4973
XnBool IsPixelFormatSupported(XnPixelFormat Format) const
Returns whether the ImageGenerator node supports a specific pixel color format for the image map.
Definition: XnCppWrapper.h:5033
const XnUInt8 * GetImageMap() const
Gets the current image-map as a byte buffer. For full details, see xnGetImageMap().
Definition: XnCppWrapper.h:5018
const XnYUV422DoublePixel * GetYUV422ImageMap() const
Gets the current YUV422 image-map. This map is updated after a call to xnWaitAndUpdateData()....
Definition: XnCppWrapper.h:4991
const XnGrayscale16Pixel * GetGrayscale16ImageMap() const
Gets the current Grayscale16 image-map. This map is updated after a call to xnWaitAndUpdateData()....
Definition: XnCppWrapper.h:5009
const XnGrayscale8Pixel * GetGrayscale8ImageMap() const
Gets the current Grayscale8 image-map. This map is updated after a call to xnWaitAndUpdateData()....
Definition: XnCppWrapper.h:5000
Definition: XnCppWrapper.h:4254
CroppingCapability GetCroppingCap()
Gets a CroppingCapability object for accessing Cropping functionality.
Definition: XnCppWrapper.h:4391
GeneralIntCapability GetExposureCap()
Definition: XnCppWrapper.h:4531
XnStatus RegisterToMapOutputModeChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Map Output Mode Change' event.
Definition: XnCppWrapper.h:4353
GeneralIntCapability GetIrisCap()
Definition: XnCppWrapper.h:4541
GeneralIntCapability GetTiltCap()
Definition: XnCppWrapper.h:4501
XnStatus GetMapOutputMode(XnMapOutputMode &OutputMode) const
Gets the current map output mode of the generator node. This is the map output mode that the generato...
Definition: XnCppWrapper.h:4326
GeneralIntCapability GetZoomCap()
Definition: XnCppWrapper.h:4521
XnStatus GetSupportedMapOutputModes(XnMapOutputMode *aModes, XnUInt32 &nCount) const
Gets a list of all the output modes that the generator node supports.
Definition: XnCppWrapper.h:4286
void UnregisterFromMapOutputModeChange(XnCallbackHandle hCallback)
Unregisters the event handler for the 'Map Output Mode Change' event.
Definition: XnCppWrapper.h:4365
GeneralIntCapability GetPanCap()
Definition: XnCppWrapper.h:4491
GeneralIntCapability GetFocusCap()
Definition: XnCppWrapper.h:4551
XnUInt32 GetBytesPerPixel() const
Gets the number of bytes per pixel for the node's map data. This mode is set by SetPixelFormat() for ...
Definition: XnCppWrapper.h:4339
GeneralIntCapability GetSaturationCap()
Definition: XnCppWrapper.h:4431
GeneralIntCapability GetLowLightCompensationCap()
Definition: XnCppWrapper.h:4561
XnUInt32 GetSupportedMapOutputModesCount() const
Gets the number of output modes that the generator node supports.
Definition: XnCppWrapper.h:4271
GeneralIntCapability GetBacklightCompensationCap()
Definition: XnCppWrapper.h:4471
const CroppingCapability GetCroppingCap() const
Gets a CroppingCapability object for accessing Cropping functionality.
Definition: XnCppWrapper.h:4378
GeneralIntCapability GetRollCap()
Definition: XnCppWrapper.h:4511
GeneralIntCapability GetHueCap()
Definition: XnCppWrapper.h:4421
AntiFlickerCapability GetAntiFlickerCap()
Definition: XnCppWrapper.h:4571
MapGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:4262
MapGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:4261
GeneralIntCapability GetSharpnessCap()
Definition: XnCppWrapper.h:4441
GeneralIntCapability GetWhiteBalanceCap()
Definition: XnCppWrapper.h:4461
GeneralIntCapability GetGainCap()
Definition: XnCppWrapper.h:4481
GeneralIntCapability GetBrightnessCap()
Definition: XnCppWrapper.h:4401
GeneralIntCapability GetContrastCap()
Definition: XnCppWrapper.h:4411
GeneralIntCapability GetGammaCap()
Definition: XnCppWrapper.h:4451
XnStatus SetMapOutputMode(const XnMapOutputMode &OutputMode)
Sets the current map output mode of the generator node.
Definition: XnCppWrapper.h:4304
Definition: XnCppWrapper.h:610
XnUInt32 YRes() const
Definition: XnCppWrapper.h:631
const _pixelType & operator()(XnUInt32 x, XnUInt32 y) const
Definition: XnCppWrapper.h:674
_pixelType & operator()(XnUInt32 x, XnUInt32 y)
Definition: XnCppWrapper.h:687
Map(_pixelType *&pData, XnUInt32 &nXRes, XnUInt32 &nYRes)
Definition: XnCppWrapper.h:612
_pixelType & operator[](XnUInt32 nIndex)
Definition: XnCppWrapper.h:660
XnUInt32 XRes() const
Definition: XnCppWrapper.h:623
const _pixelType & operator[](XnUInt32 nIndex) const
Definition: XnCppWrapper.h:644
Definition: XnCppWrapper.h:3020
MirrorCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:3022
XnBool IsMirrored() const
Gets the current mirroring configuration of the holder node. This configuration is used for generatin...
Definition: XnCppWrapper.h:3039
XnStatus RegisterToMirrorChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Mirror Change' event.
Definition: XnCppWrapper.h:3053
XnStatus SetMirror(XnBool bMirror)
Sets the current mirror configuration of the holder node, enabling or disabling mirroring....
Definition: XnCppWrapper.h:3031
void UnregisterFromMirrorChange(XnCallbackHandle hCallback)
Unregisters the event handler for the 'Mirror Change' event.
Definition: XnCppWrapper.h:3065
MirrorCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:3023
Definition: XnCppWrapper.h:8171
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:9934
XnStatus SetData(const AudioMetaData &audioMD)
Definition: XnCppWrapper.h:8225
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnUInt8 *pAudioBuffer)
For full details and usage, see xnMockAudioSetData
Definition: XnCppWrapper.h:8202
XnStatus CreateBasedOn(AudioGenerator &other, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:9943
MockAudioGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:8179
MockAudioGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:8178
XnStatus SetData(const AudioMetaData &audioMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
Definition: XnCppWrapper.h:8215
Definition: XnCppWrapper.h:4861
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnDepthPixel *pDepthMap)
For full details and usage, see xnMockDepthSetData
Definition: XnCppWrapper.h:4892
MockDepthGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:4868
XnStatus SetData(const DepthMetaData &depthMD)
Definition: XnCppWrapper.h:4915
XnStatus CreateBasedOn(DepthGenerator &other, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:9819
XnStatus SetData(const DepthMetaData &depthMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
Definition: XnCppWrapper.h:4905
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:9810
MockDepthGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:4869
Definition: XnCppWrapper.h:5229
MockIRGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:5237
XnStatus SetData(const IRMetaData &irMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
Definition: XnCppWrapper.h:5271
XnStatus CreateBasedOn(IRGenerator &other, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:9877
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:9868
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnIRPixel *pIRMap)
For full details and usage, see xnMockIRSetData
Definition: XnCppWrapper.h:5258
XnStatus SetData(const IRMetaData &irMD)
Definition: XnCppWrapper.h:5281
MockIRGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5236
Definition: XnCppWrapper.h:5107
MockImageGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:5115
XnStatus SetData(const ImageMetaData &imageMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
Definition: XnCppWrapper.h:5151
XnStatus SetData(const ImageMetaData &imageMD)
Definition: XnCppWrapper.h:5161
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnUInt8 *pImageMap)
For full details and usage, see xnMockImageSetData
Definition: XnCppWrapper.h:5138
XnStatus CreateBasedOn(ImageGenerator &other, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:9848
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:9839
MockImageGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5114
Definition: XnCppWrapper.h:8235
MockRawGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:8238
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:9954
MockRawGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:8237
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const void *pData)
Definition: XnCppWrapper.h:8242
Definition: XnCppWrapper.h:1803
const XnChar * GetInstanceName() const
Gets the instance name of a node alternative.
Definition: XnCppWrapper.h:1891
XnStatus GetInstance(ProductionNode &node) const
Definition: XnCppWrapper.h:9752
NodeInfo & operator=(const NodeInfo &other)
Definition: XnCppWrapper.h:1838
NodeInfo(XnNodeInfo *pInfo)
Definition: XnCppWrapper.h:1810
const void * GetAdditionalData() const
For full details and usage, see xnNodeInfoGetAdditionalData
Definition: XnCppWrapper.h:1931
NodeInfoList & GetNeededNodes() const
Definition: XnCppWrapper.h:9709
~NodeInfo()
Definition: XnCppWrapper.h:1828
const XnChar * GetCreationInfo() const
Gets the creation information of the node alternative.
Definition: XnCppWrapper.h:1907
XnStatus SetInstanceName(const XnChar *strName)
Sets the instance name of the NodeInfo object. The name can only be set before the instance is create...
Definition: XnCppWrapper.h:1857
NodeInfo(const NodeInfo &other)
Definition: XnCppWrapper.h:1820
const XnProductionNodeDescription & GetDescription() const
Gets the description of a node alternative.
Definition: XnCppWrapper.h:1875
XnStatus GetTreeStringRepresentation(XnChar *csResultBuffer, XnUInt32 nBufferSize) const
For full details and usage, see xnNodeInfoGetTreeStringRepresentation
Definition: XnCppWrapper.h:1940
Definition: XnCppWrapper.h:2151
XnBool operator==(const Iterator &other) const
Definition: XnCppWrapper.h:2167
NodeInfo operator*()
Definition: XnCppWrapper.h:2226
Iterator operator--(int)
Definition: XnCppWrapper.h:2216
Iterator operator++(int)
Definition: XnCppWrapper.h:2197
Iterator & operator++()
Definition: XnCppWrapper.h:2187
Iterator & operator--()
Definition: XnCppWrapper.h:2207
XnBool operator!=(const Iterator &other) const
Definition: XnCppWrapper.h:2178
Definition: XnCppWrapper.h:2145
~NodeInfoList()
Definition: XnCppWrapper.h:2272
NodeInfoList()
Definition: XnCppWrapper.h:2258
XnStatus Remove(Iterator &it)
For full details and usage, see xnNodeInfoListRemove
Definition: XnCppWrapper.h:2375
Iterator RBegin() const
Definition: XnCppWrapper.h:2356
void ReplaceUnderlyingObject(XnNodeInfoList *pList)
Definition: XnCppWrapper.h:2288
XnStatus Clear()
For full details and usage, see xnNodeInfoListClear
Definition: XnCppWrapper.h:2384
XnStatus Add(XnProductionNodeDescription &description, const XnChar *strCreationInfo, NodeInfoList *pNeededNodes)
For full details and usage, see xnNodeInfoListAdd
Definition: XnCppWrapper.h:2299
XnStatus Append(NodeInfoList &other)
For full details and usage, see xnNodeInfoListAppend
Definition: XnCppWrapper.h:2393
XnNodeInfoList * GetUnderlyingObject() const
Definition: XnCppWrapper.h:2280
Iterator End() const
Definition: XnCppWrapper.h:2346
Iterator REnd() const
Definition: XnCppWrapper.h:2365
XnStatus FilterList(Context &context, Query &query)
For full details and usage, see xnNodeQueryFilterList
Definition: XnCppWrapper.h:9691
XnStatus AddNodeFromAnotherList(Iterator &it)
For full details and usage, see xnNodeInfoListAddNodeFromList
Definition: XnCppWrapper.h:2328
Iterator Begin() const
Definition: XnCppWrapper.h:2337
XnBool IsEmpty()
Checks if the list NodeInfoList object is empty.
Definition: XnCppWrapper.h:2401
XnStatus AddNode(NodeInfo &info)
For full details and usage, see xnNodeInfoListAddNode
Definition: XnCppWrapper.h:2319
XnStatus AddEx(XnProductionNodeDescription &description, const XnChar *strCreationInfo, NodeInfoList *pNeededNodes, const void *pAdditionalData, XnFreeHandler pFreeHandler)
For full details and usage, see xnNodeInfoListAddEx
Definition: XnCppWrapper.h:2309
NodeInfoList(XnNodeInfoList *pList)
Definition: XnCppWrapper.h:2270
Definition: XnCppWrapper.h:1629
~NodeWrapper()
Definition: XnCppWrapper.h:1654
XnBool IsValid() const
This method checks that this object points to an actual node (that has been 'created') and does not p...
Definition: XnCppWrapper.h:1699
NodeWrapper(const NodeWrapper &other)
Definition: XnCppWrapper.h:1643
NodeWrapper & operator=(const NodeWrapper &other)
Definition: XnCppWrapper.h:1648
NodeWrapper(XnNodeHandle hNode)
Definition: XnCppWrapper.h:1638
void TakeOwnership(XnNodeHandle hNode)
Definition: XnCppWrapper.h:1761
void Release()
Definition: XnCppWrapper.h:1717
const XnChar * GetName() const
Definition: XnCppWrapper.h:1705
XnBool operator!=(const NodeWrapper &other)
Definition: XnCppWrapper.h:1681
XnStatus AddRef()
References a production node, increasing its reference count by 1. For full details and usage,...
Definition: XnCppWrapper.h:1711
XnBool operator==(const NodeWrapper &other)
Definition: XnCppWrapper.h:1671
void SetHandle(XnNodeHandle hNode)
Definition: XnCppWrapper.h:1726
XnNodeHandle GetHandle() const
Definition: XnCppWrapper.h:1664
Definition: XnCppWrapper.h:3808
XnStatus GetSource(XnRecordMedium &sourceType, XnChar *strSource, XnUInt32 nBufSize) const
Gets the player's source, that is, the type and name of the medium that the recording is played back ...
Definition: XnCppWrapper.h:3865
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:3989
XnStatus Create(Context &context, const XnChar *strFormatName)
Creates a player node.
Definition: XnCppWrapper.h:9792
XnStatus SetRepeat(XnBool bRepeat)
Specifies whether the player will automatically rewind to the beginning of the recording after reachi...
Definition: XnCppWrapper.h:3843
Player(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3815
XnStatus GetNumFrames(const XnChar *strNodeName, XnUInt32 &nFrames) const
Gets the total number of frames a specific node has in the recording.
Definition: XnCppWrapper.h:3971
XnStatus SeekToTimeStamp(XnInt64 nTimeOffset, XnPlayerSeekOrigin origin)
Moves the player to a specific time, so that playback will continue from that point onwards.
Definition: XnCppWrapper.h:3903
XnDouble GetPlaybackSpeed() const
Gets the playback speed.
Definition: XnCppWrapper.h:4066
XnStatus ReadNext()
Reads the next data element from the player. For full details and usage, see xnPlayerReadNext
Definition: XnCppWrapper.h:3874
XnStatus TellTimestamp(XnUInt64 &nTimestamp) const
Gets the current time of a player, i.e., the time passed since the beginning of the recording.
Definition: XnCppWrapper.h:3942
XnStatus SetPlaybackSpeed(XnDouble dSpeed)
Sets the player's playback speed, as a ratio of the rate that the recording was made at.
Definition: XnCppWrapper.h:4057
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:3852
XnBool IsEOF() const
Returns whether the player is at the end-of-file marker.
Definition: XnCppWrapper.h:4008
XnStatus RegisterToEndOfFileReached(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'End-Of-File Reached' event.
Definition: XnCppWrapper.h:4022
void UnregisterFromEndOfFileReached(XnCallbackHandle hCallback)
Unregisters the event handler for the 'End-Of-File Reached' event.
Definition: XnCppWrapper.h:4034
Player(const NodeWrapper &other)
Definition: XnCppWrapper.h:3816
XnStatus SeekToFrame(const XnChar *strNodeName, XnInt32 nFrameOffset, XnPlayerSeekOrigin origin)
Moves the player to a specific frame of a specific played node, e.g., an ImageGenerator node,...
Definition: XnCppWrapper.h:3932
XnStatus TellFrame(const XnChar *strNodeName, XnUInt32 &nFrame) const
Gets the current frame number of a specific node played by a player, i.e., the number of frames passe...
Definition: XnCppWrapper.h:3959
const XnChar * GetSupportedFormat() const
Gets the name of the format supported by a player. For full details and usage, see xnGetPlayerSupport...
Definition: XnCppWrapper.h:3980
Definition: XnCppWrapper.h:7185
XnStatus GetPoseStatus(XnUserID userID, const XnChar *poseName, XnUInt64 &poseTime, XnPoseDetectionStatus &eStatus, XnPoseDetectionState &eState)
Definition: XnCppWrapper.h:7246
XnStatus RegisterToPoseInProgress(PoseInProgress handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Pose In Progress' event.
Definition: XnCppWrapper.h:7415
XnUInt32 GetNumberOfPoses() const
Get the number of poses supported by this capability.
Definition: XnCppWrapper.h:7219
void UnregisterFromOutOfPose(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Out Of Pose' event.
Definition: XnCppWrapper.h:7368
XnStatus GetAllAvailablePoses(XnChar **pstrPoses, XnUInt32 nNameLength, XnUInt32 &nPoses) const
Gets the names of all poses supported by this capability.
Definition: XnCppWrapper.h:7236
XnStatus RegisterToPoseDetected(PoseDetection handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Pose Detected' event.
Definition: XnCppWrapper.h:7304
XnStatus StopPoseDetection(XnUserID user)
Stops attempting to detect a pose (for a specific user).
Definition: XnCppWrapper.h:7282
PoseDetectionCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:7192
XnStatus StopSinglePoseDetection(XnUserID user, const XnChar *strPose)
Stop detection of a specific pose for a specific user. For full details and usage,...
Definition: XnCppWrapper.h:7290
XnStatus StartPoseDetection(const XnChar *strPose, XnUserID user)
Starts attempting to detect a pose for a specific user.
Definition: XnCppWrapper.h:7266
void UnregisterFromPoseInProgress(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Pose In Progress' event.
Definition: XnCppWrapper.h:7443
XnBool IsPoseSupported(const XnChar *strPose)
Definition: XnCppWrapper.h:7241
void(* PoseInProgress)(PoseDetectionCapability &pose, const XnChar *strPose, XnUserID user, XnPoseDetectionStatus poseError, void *pCookie)
Definition: XnCppWrapper.h:7397
PoseDetectionCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:7193
XnStatus RegisterToOutOfPose(PoseDetection handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Out Of Pose' event.
Definition: XnCppWrapper.h:7331
void(* PoseDetection)(PoseDetectionCapability &pose, const XnChar *strPose, XnUserID user, void *pCookie)
Definition: XnCppWrapper.h:7208
void UnregisterFromPoseDetected(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Pose Detected' event.
Definition: XnCppWrapper.h:7355
Definition: XnCppWrapper.h:2632
XnStatus GetIntProperty(const XnChar *strName, XnUInt64 &nValue) const
Gets an integer property. For full details and usage, see xnGetIntProperty
Definition: XnCppWrapper.h:2750
XnStatus SetRealProperty(const XnChar *strName, XnDouble dValue)
Sets a real property. For full details and usage, see xnSetRealProperty
Definition: XnCppWrapper.h:2723
XnStatus GetStringProperty(const XnChar *strName, XnChar *csValue, XnUInt32 nBufSize) const
Gets a string property. For full details and usage, see xnGetStringProperty
Definition: XnCppWrapper.h:2768
ProductionNode(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2639
XnStatus LockedNodeStartChanges(XnLockHandle hLock)
Start changes request on a locked node, without releasing that lock. For full details and usage,...
Definition: XnCppWrapper.h:2804
XnStatus RemoveNeededNode(ProductionNode &needed)
Removes a needed node from the list of needed nodes. For full details and usage, see xnRemoveNeededNo...
Definition: XnCppWrapper.h:2665
XnStatus GetRealProperty(const XnChar *strName, XnDouble &dValue) const
Gets a real property. For full details and usage, see xnGetRealProperty
Definition: XnCppWrapper.h:2759
XnStatus SetStringProperty(const XnChar *strName, const XnChar *strValue)
Sets a string property. For full details and usage, see xnSetStringProperty
Definition: XnCppWrapper.h:2732
void LockedNodeEndChanges(XnLockHandle hLock)
Ends changes request on a locked node. For full details and usage, see xnLockedNodeEndChanges
Definition: XnCppWrapper.h:2813
XnStatus SetGeneralProperty(const XnChar *strName, XnUInt32 nBufferSize, const void *pBuffer)
Sets a buffer property. For full details and usage, see xnSetGeneralProperty
Definition: XnCppWrapper.h:2741
GeneralIntCapability GetGeneralIntCap(const XnChar *strCapability)
Gets an GeneralIntCapability object for accessing the capability functionality.
Definition: XnCppWrapper.h:2855
Context GetContext() const
Gets the node's context.
Definition: XnCppWrapper.h:9701
void UnlockForChanges(XnLockHandle hLock)
Unlocks a previously locked node. For full details and usage, see xnUnlockNodeForChanges
Definition: XnCppWrapper.h:2795
XnStatus SetIntProperty(const XnChar *strName, XnUInt64 nValue)
Sets an integer property. For full details and usage, see xnSetIntProperty
Definition: XnCppWrapper.h:2714
XnStatus AddNeededNode(ProductionNode &needed)
Adds another node to the list of needed nodes for this node. For full details and usage,...
Definition: XnCppWrapper.h:2656
void GetContext(Context &context) const
Gets the node's context.
Definition: XnCppWrapper.h:9696
ProductionNode(const NodeWrapper &other)
Definition: XnCppWrapper.h:2640
XnBool IsCapabilitySupported(const XnChar *strCapabilityName) const
Returns whether a production node supports a specific capability.
Definition: XnCppWrapper.h:2705
XnStatus LockForChanges(XnLockHandle *phLock)
Locks a node, not allowing any changes (any "set" function). For full details and usage,...
Definition: XnCppWrapper.h:2786
NodeInfo GetInfo() const
Gets information about the node.
Definition: XnCppWrapper.h:2650
const ErrorStateCapability GetErrorStateCap() const
Gets an xn::ErrorStateCapability object for accessing the functionality of the Error State capability...
Definition: XnCppWrapper.h:2826
XnStatus GetGeneralProperty(const XnChar *strName, XnUInt32 nBufferSize, void *pBuffer) const
Gets a buffer property. For full details and usage, see xnGetGeneralProperty
Definition: XnCppWrapper.h:2777
ErrorStateCapability GetErrorStateCap()
Gets an xn::ErrorStateCapability object for accessing the functionality of the Error State capability...
Definition: XnCppWrapper.h:2839
Definition: XnCppWrapper.h:1977
XnStatus SetName(const XnChar *strName)
Sets in the Query object the implementation name to search for. The same vendor might have more than ...
Definition: XnCppWrapper.h:2019
~Query()
Definition: XnCppWrapper.h:1988
XnStatus SetSupportedMinUserPositions(const XnUInt32 nCount)
For full details and usage, see xnNodeQuerySetSupportedMinUserPositions
Definition: XnCppWrapper.h:2092
XnStatus SetMinVersion(const XnVersion &minVersion)
Sets in the Query object the minimum required version allowed for the Node Alternative.
Definition: XnCppWrapper.h:2027
Query()
Definition: XnCppWrapper.h:1979
XnStatus AddSupportedMapOutputMode(const XnMapOutputMode &MapOutputMode)
Sets in the Query object a MapOutput mode that the Node Alternative must support.
Definition: XnCppWrapper.h:2083
XnNodeQuery * GetUnderlyingObject()
Definition: XnCppWrapper.h:2000
XnStatus SetCreationInfo(const XnChar *strCreationInfo)
Sets the creation information field of the Query object. This relates to the creation information of ...
Definition: XnCppWrapper.h:2126
XnStatus SetMaxVersion(const Version &maxVersion)
Sets in the Query object the maximum required version allowed for the node alternative.
Definition: XnCppWrapper.h:2051
XnStatus SetMinVersion(const Version &minVersion)
Sets in the Query object the minimum required version allowed for the Node Alternative.
Definition: XnCppWrapper.h:2035
XnStatus SetVendor(const XnChar *strVendor)
Sets in the Query object the vendor name to search for.
Definition: XnCppWrapper.h:2006
Query(XnNodeQuery *pNodeQuery)
Definition: XnCppWrapper.h:1984
XnStatus AddSupportedCapability(const XnChar *strNeededCapability)
Sets in the Query object a capability that the Node Alternative must support.
Definition: XnCppWrapper.h:2068
XnStatus AddNeededNode(const XnChar *strInstanceName)
Sets in the Query object that a specified node must be a dependant of the named node type.
Definition: XnCppWrapper.h:2117
XnStatus SetMaxVersion(const XnVersion &maxVersion)
Sets in the Query object the maximum required version allowed for the node alternative.
Definition: XnCppWrapper.h:2043
XnStatus SetExistingNodeOnly(XnBool bExistingNode)
Sets in the Query object that the query will return only existing nodes, i.e., nodes that have been c...
Definition: XnCppWrapper.h:2108
const XnNodeQuery * GetUnderlyingObject() const
Definition: XnCppWrapper.h:1999
Definition: XnCppWrapper.h:3691
XnStatus RemoveNodeFromRecording(ProductionNode &Node)
Removes a node from the Recorder node and stops recording the node output. This function is called on...
Definition: XnCppWrapper.h:3757
XnStatus SetDestination(XnRecordMedium destType, const XnChar *strDest)
Specifies to where the recorder must send its recording. Typically this is a disk file of a particula...
Definition: XnCppWrapper.h:3718
XnStatus GetDestination(XnRecordMedium &destType, XnChar *strDest, XnUInt32 nBufSize)
Gets the destination medium for the Recorder node to record to.
Definition: XnCppWrapper.h:3732
XnStatus Create(Context &context, const XnChar *strFormatName=NULL)
Creates a Recorder node.
Definition: XnCppWrapper.h:9783
XnStatus Record()
Records one frame of data from each node that was added to the recorder with AddNodeToRecording().
Definition: XnCppWrapper.h:3774
XnStatus AddNodeToRecording(ProductionNode &Node, XnCodecID compression=XN_CODEC_NULL)
Adds a node to the recording setup, and starts recording data what the node generates....
Definition: XnCppWrapper.h:3746
Recorder(const NodeWrapper &other)
Definition: XnCppWrapper.h:3699
Recorder(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3698
Definition: XnCppWrapper.h:9625
XnUInt32 GetXResolution() const
Definition: XnCppWrapper.h:9671
XnResolution GetResolution() const
Definition: XnCppWrapper.h:9667
const XnChar * GetName() const
Definition: XnCppWrapper.h:9679
XnUInt32 GetYResolution() const
Definition: XnCppWrapper.h:9675
Resolution(XnResolution res)
Definition: XnCppWrapper.h:9632
Resolution(const XnChar *strName)
Definition: XnCppWrapper.h:9656
Resolution(XnUInt32 xRes, XnUInt32 yRes)
Definition: XnCppWrapper.h:9645
Definition: XnCppWrapper.h:5819
XnStatus GetFloor(XnPlane3D &Plane) const
Gets a description of the floor, if it was found.
Definition: XnCppWrapper.h:5877
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a SceneAnalyzer node from available production node alternatives.
Definition: XnCppWrapper.h:9897
const XnLabel * GetLabelMap() const
Gets the label map, describing the current segmentation of the scene. For full details and usage,...
Definition: XnCppWrapper.h:5867
void GetMetaData(SceneMetaData &metaData) const
Gets the scene analyzer node's latest frame object, saving it in the xn::SceneMetaData object....
Definition: XnCppWrapper.h:5858
SceneAnalyzer(const NodeWrapper &other)
Definition: XnCppWrapper.h:5827
SceneAnalyzer(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5826
Definition: XnCppWrapper.h:8332
XnStatus LoadScriptFromString(const XnChar *strScript)
Loads an XML script string into the ScriptNode object.
Definition: XnCppWrapper.h:8364
XnStatus LoadScriptFromFile(const XnChar *strFileName)
Loads an XML script file into the ScriptNode object.
Definition: XnCppWrapper.h:8354
ScriptNode(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:8339
XnStatus Create(Context &context, const XnChar *strFormat)
Definition: XnCppWrapper.h:9977
const XnChar * GetSupportedFormat()
Definition: XnCppWrapper.h:8344
XnStatus Run(EnumerationErrors *pErrors)
Runs the ScriptNode object's XML script to build a production graph.
Definition: XnCppWrapper.h:9972
ScriptNode(const NodeWrapper &other)
Definition: XnCppWrapper.h:8340
Definition: XnCppWrapper.h:6375
XnStatus GetCalibrationPose(XnChar *strPose) const
Gets the name of the pose that is required for calibration. The pose and its name reside in the plug-...
Definition: XnCppWrapper.h:6799
XnBool IsJointAvailable(XnSkeletonJoint eJoint) const
Returns whether a specific skeleton joint is supported by the SkeletonCapability object.
Definition: XnCppWrapper.h:6390
XnStatus GetSkeletonJointOrientation(XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointOrientation &Joint) const
Gets the orientation of a specific skeleton joint.
Definition: XnCppWrapper.h:6559
XnBool IsProfileAvailable(XnSkeletonProfile eProfile) const
Returns whether a specific skeleton profile is supported by the SkeletonCapability object.
Definition: XnCppWrapper.h:6400
XnStatus LoadCalibrationData(XnUserID user, XnUInt32 nSlot)
Loads calibration data of a specified user. The calibration data includes the lengths of the human us...
Definition: XnCppWrapper.h:6708
XnStatus AbortCalibration(XnUserID user)
Aborts an existing calibration process currently being executed for a specified user.
Definition: XnCppWrapper.h:6647
XnStatus RegisterToCalibrationStart(CalibrationStart handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Calibration Start' event.
Definition: XnCppWrapper.h:6874
void UnregisterFromJointConfigurationChange(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Joint Configuration Change' event.
Definition: XnCppWrapper.h:6499
XnStatus SaveCalibrationDataToFile(XnUserID user, const XnChar *strFileName)
Saves the skeleton's current calibration data to a file.
Definition: XnCppWrapper.h:6670
XnStatus RequestCalibration(XnUserID user, XnBool bForce)
Starts the calibration process to calibrate a user.
Definition: XnCppWrapper.h:6633
XnStatus RegisterToJointConfigurationChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Joint Configuration Change' event.
Definition: XnCppWrapper.h:6487
XnStatus StopTracking(XnUserID user)
Stops tracking a skeleton.
Definition: XnCppWrapper.h:6756
XnBool IsCalibrating(XnUserID user) const
Returns whether a user is being calibrated right now. see Calibration.
Definition: XnCppWrapper.h:6604
XnStatus LoadCalibrationDataFromFile(XnUserID user, const XnChar *strFileName)
Loads skeleton calibration data from a file to a skeleton.
Definition: XnCppWrapper.h:6681
XnBool NeedPoseForCalibration() const
Returns whether a specific pose is required for calibration. This setting is applicable to all users.
Definition: XnCppWrapper.h:6782
SkeletonCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:6382
void UnregisterFromCalibrationComplete(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Calibration Complete' event.
Definition: XnCppWrapper.h:7032
XnStatus RegisterToCalibrationInProgress(CalibrationInProgress handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Calibration In Progress' event.
Definition: XnCppWrapper.h:6941
void(* CalibrationStart)(SkeletonCapability &skeleton, XnUserID user, void *pCookie)
Definition: XnCppWrapper.h:6842
XnBool IsCalibrated(XnUserID user) const
Returns whether a user has been calibrated. see Calibration.
Definition: XnCppWrapper.h:6589
void(* CalibrationComplete)(SkeletonCapability &skeleton, XnUserID user, XnCalibrationStatus calibrationError, void *pCookie)
Signals that a specific user's skeleton has now completed the calibration process,...
Definition: XnCppWrapper.h:6993
XnStatus StartTracking(XnUserID user)
Starts tracking a skeleton.
Definition: XnCppWrapper.h:6747
XnStatus UnregisterFromCalibrationStart(XnCallbackHandle hCallback)
Unregisters a handler from the 'Calibration Start' event.
Definition: XnCppWrapper.h:6901
XnBool IsCalibrationData(XnUInt32 nSlot) const
Returns whether a specific slot already holds calibration data.
Definition: XnCppWrapper.h:6728
XnStatus ClearCalibrationData(XnUInt32 nSlot)
Clears a specified slot of any saved calibration data.
Definition: XnCppWrapper.h:6718
XnStatus SetSkeletonProfile(XnSkeletonProfile eProfile)
Sets the skeleton profile. The skeleton profile specifies which joints are to be active,...
Definition: XnCppWrapper.h:6435
XnStatus EnumerateActiveJoints(XnSkeletonJoint *pJoints, XnUInt16 &nJoints) const
Get all active joints. For full details and usage, see xnEnumerateActiveJoints
Definition: XnCppWrapper.h:6508
SkeletonCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:6383
XnStatus RegisterToCalibrationComplete(CalibrationComplete handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'Calibration Complete' event.
Definition: XnCppWrapper.h:7004
XnStatus SaveCalibrationData(XnUserID user, XnUInt32 nSlot)
Saves the calibration data of a specified user. The calibration data includes the lengths of the huma...
Definition: XnCppWrapper.h:6697
XnBool IsJointActive(XnSkeletonJoint eJoint) const
Checks if a specific joint is tracked or not.
Definition: XnCppWrapper.h:6473
void UnregisterFromCalibrationInProgress(XnCallbackHandle hCallback)
Unregisters an event handler for the 'Calibration In Progress' event.
Definition: XnCppWrapper.h:6969
XnBool IsTracking(XnUserID user) const
Returns whether a user is currently being tracked.
Definition: XnCppWrapper.h:6574
XnStatus GetSkeletonJoint(XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointTransformation &Joint) const
Gets all available information about a specific joint in the skeleton.
Definition: XnCppWrapper.h:6521
XnStatus Reset(XnUserID user)
Discards a skeleton's calibration.
Definition: XnCppWrapper.h:6769
void(* CalibrationEnd)(SkeletonCapability &skeleton, XnUserID user, XnBool bSuccess, void *pCookie)
Definition: XnCppWrapper.h:6861
XnStatus SetSmoothing(XnFloat fSmoothingFactor)
Sets the smoothing factor for all users generated by this xn::UserGenerator node.
Definition: XnCppWrapper.h:6816
void(* CalibrationInProgress)(SkeletonCapability &skeleton, XnUserID user, XnCalibrationStatus calibrationError, void *pCookie)
Definition: XnCppWrapper.h:6930
XnStatus SetJointActive(XnSkeletonJoint eJoint, XnBool bState)
Changes the state of a specific skeleton joint to be active or inactive. The xn::UserGenerator node g...
Definition: XnCppWrapper.h:6463
XnStatus GetSkeletonJointPosition(XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointPosition &Joint) const
Gets the position of one of the skeleton joints in the most recently generated user data.
Definition: XnCppWrapper.h:6547
Definition: XnCppWrapper.h:10000
void Unregister(_XnUnregisterStateChangeFuncPtr xnFunc, XnNodeHandle hNode)
Definition: XnCppWrapper.h:10009
StateChangedCallbackTranslator(StateChangedHandler handler, void *pCookie)
Definition: XnCppWrapper.h:10002
XnStatus Register(_XnRegisterStateChangeFuncPtr xnFunc, XnNodeHandle hNode)
Definition: XnCppWrapper.h:10004
static XnStatus RegisterToUnderlying(_XnRegisterStateChangeFuncPtr xnFunc, XnNodeHandle hNode, StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Definition: XnCppWrapper.h:10014
static XnStatus UnregisterFromUnderlying(_XnUnregisterStateChangeFuncPtr xnFunc, XnNodeHandle hNode, XnCallbackHandle hCallback)
Definition: XnCppWrapper.h:10033
Definition: XnCppWrapper.h:7666
XnStatus RegisterToUserReEnter(UserHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'User Reenter' event.
Definition: XnCppWrapper.h:7943
PoseDetectionCapability GetPoseDetectionCap()
Gets a xn::PoseDetectionCapability object for accessing Pose Detection functionality.
Definition: XnCppWrapper.h:7885
XnStatus GetCoM(XnUserID user, XnPoint3D &com) const
Gets the position of a user's center of mass. This is the single point for representing the user.
Definition: XnCppWrapper.h:7757
void UnregisterUserCallbacks(XnCallbackHandle hCallback)
Unregisters event handlers for the 'New User' and 'Lost User' events.
Definition: XnCppWrapper.h:7821
UserGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:7673
XnStatus GetUserPixels(XnUserID user, SceneMetaData &smd) const
Gets the pixel map of the specified user in the scene and saves it in the xn::SceneMetaData object....
Definition: XnCppWrapper.h:7777
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a UserGenerator node from available production node alternatives.
Definition: XnCppWrapper.h:9916
void(* UserHandler)(UserGenerator &generator, XnUserID user, void *pCookie)
Event handler signature for all UserGenerator events.
Definition: XnCppWrapper.h:7697
void UnregisterFromUserReEnter(XnCallbackHandle hCallback)
Unregisters an event handler for the 'User Reenter' event.
Definition: XnCppWrapper.h:7971
void UnregisterFromUserExit(XnCallbackHandle hCallback)
Unregisters an event handler for the 'User Exit' event.
Definition: XnCppWrapper.h:7927
XnStatus RegisterUserCallbacks(UserHandler NewUserCB, UserHandler LostUserCB, void *pCookie, XnCallbackHandle &hCallback)
Registers event handlers for the 'New User' and 'Lost User' events.
Definition: XnCppWrapper.h:7792
XnStatus RegisterToUserExit(UserHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'User Exit' event.
Definition: XnCppWrapper.h:7899
const PoseDetectionCapability GetPoseDetectionCap() const
Gets a xn::PoseDetectionCapability object for accessing Pose Detection functionality.
Definition: XnCppWrapper.h:7870
const SkeletonCapability GetSkeletonCap() const
Gets a SkeletonCapability object for accessing Skeleton functionality.
Definition: XnCppWrapper.h:7839
UserGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:7674
XnStatus GetUsers(XnUserID aUsers[], XnUInt16 &nUsers) const
Gets an array of user IDs of all the recognized users in the scene at the current time.
Definition: XnCppWrapper.h:7733
SkeletonCapability GetSkeletonCap()
Gets a SkeletonCapability object for accessing Skeleton functionality.
Definition: XnCppWrapper.h:7855
XnUInt16 GetNumberOfUsers() const
Gets the number of users currently identified in the scene.
Definition: XnCppWrapper.h:7706
Definition: XnCppWrapper.h:4586
XnStatus GetUserPosition(XnUInt32 nIndex, XnBoundingBox3D &Position) const
Gets the current user position. For full details and usage, see xnGetUserPosition
Definition: XnCppWrapper.h:4618
void UnregisterFromUserPositionChange(XnCallbackHandle hCallback)
Unregisters the event handler for the 'User Position Change' event.
Definition: XnCppWrapper.h:4644
UserPositionCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:4594
XnStatus SetUserPosition(XnUInt32 nIndex, const XnBoundingBox3D &Position)
Sets the current user position. For full details and usage, see xnSetUserPosition
Definition: XnCppWrapper.h:4609
UserPositionCapability(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:4593
XnStatus RegisterToUserPositionChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers an event handler for the 'User Position Change' event.
Definition: XnCppWrapper.h:4632
XnUInt32 GetSupportedUserPositionsCount() const
Gets the number of user positions supported by this generator. For full details and usage,...
Definition: XnCppWrapper.h:4600
Definition: XnCppWrapper.h:120
bool operator<=(const Version &other) const
Definition: XnCppWrapper.h:143
bool operator!=(const Version &other) const
Definition: XnCppWrapper.h:135
XnUInt16 Maintenance() const
Definition: XnCppWrapper.h:165
Version(XnUInt8 nMajor, XnUInt8 nMinor, XnUInt16 nMaintenance, XnUInt32 nBuild)
Definition: XnCppWrapper.h:123
XnUInt16 & Maintenance()
Definition: XnCppWrapper.h:170
static Version Current()
Definition: XnCppWrapper.h:156
XnUInt32 & Build()
Definition: XnCppWrapper.h:171
bool operator>=(const Version &other) const
Definition: XnCppWrapper.h:151
XnUInt8 Minor() const
Definition: XnCppWrapper.h:164
bool operator>(const Version &other) const
Definition: XnCppWrapper.h:147
XnUInt8 & Minor()
Definition: XnCppWrapper.h:169
XnUInt8 & Major()
Definition: XnCppWrapper.h:168
XnUInt32 Build() const
Definition: XnCppWrapper.h:166
bool operator==(const Version &other) const
Definition: XnCppWrapper.h:131
XnVersion * GetUnderlying()
Definition: XnCppWrapper.h:174
const XnVersion * GetUnderlying() const
Definition: XnCppWrapper.h:173
Version(const XnVersion &version)
Definition: XnCppWrapper.h:122
XnUInt8 Major() const
Definition: XnCppWrapper.h:163
bool operator<(const Version &other) const
Definition: XnCppWrapper.h:139
XN_C_API XnStatus XN_C_DECL xnResetViewPoint(XnNodeHandle hInstance)
Sets the view point of this generator to its normal one.
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 void XN_C_DECL xnUnregisterFromViewPointChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToViewPointChange().
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,...
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 xnIsViewPointAs(XnNodeHandle hInstance, XnNodeHandle hOther)
Checks if current view point is as if coming from the other node view point.
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.
XN_C_API void XN_C_DECL xnUnregisterFromPowerLineFrequencyChange(XnNodeHandle hGenerator, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToPowerLineFrequencyChange().
XN_C_API XnPowerLineFrequency XN_C_DECL xnGetPowerLineFrequency(XnNodeHandle hGenerator)
Gets the power line frequency.
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.
XN_C_API XnStatus XN_C_DECL xnRegisterToWaveOutputModeChanges(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
XN_C_API XnStatus XN_C_DECL xnSetWaveOutputMode(XnNodeHandle hInstance, const XnWaveOutputMode *OutputMode)
XN_C_API void XN_C_DECL xnGetAudioMetaData(XnNodeHandle hInstance, XnAudioMetaData *pMetaData)
Gets the current audio meta data.
XN_C_API XnStatus XN_C_DECL xnGetWaveOutputMode(XnNodeHandle hInstance, XnWaveOutputMode *OutputMode)
XN_C_API void XN_C_DECL xnUnregisterFromWaveOutputModeChanges(XnNodeHandle hInstance, XnCallbackHandle hCallback)
XN_C_API XnStatus XN_C_DECL xnGetSupportedWaveOutputModes(XnNodeHandle hInstance, XnWaveOutputMode *aSupportedModes, XnUInt32 *pnCount)
XN_C_API XnUInt32 XN_C_DECL xnGetSupportedWaveOutputModesCount(XnNodeHandle hInstance)
XN_C_API XnUChar *XN_C_DECL xnGetAudioBuffer(XnNodeHandle hInstance)
XN_C_API XnStatus XN_C_DECL xnCreateAudioGenerator(XnContext *pContext, XnNodeHandle *phAudioGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an audio generator.
XN_C_API XnStatus XN_C_DECL xnCreateCodec(XnContext *pContext, XnCodecID codecID, XnNodeHandle hInitializerNode, XnNodeHandle *phCodec)
XN_C_API XnCodecID XN_C_DECL xnGetCodecID(XnNodeHandle hCodec)
XN_C_API XnStatus XN_C_DECL xnEncodeData(XnNodeHandle hCodec, const void *pSrc, XnUInt32 nSrcSize, void *pDst, XnUInt32 nDstSize, XnUInt *pnBytesWritten)
XN_C_API XnStatus XN_C_DECL xnDecodeData(XnNodeHandle hCodec, const void *pSrc, XnUInt32 nSrcSize, void *pDst, XnUInt32 nDstSize, XnUInt *pnBytesWritten)
XN_C_API void XN_C_DECL xnUnregisterFromNodeCreation(XnContext *pContext, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToNodeCreation().
XN_C_API XnStatus XN_C_DECL xnRegisterToNodeCreation(XnContext *pContext, XnNodeCreationHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to 'Node Creation' event. This event is raised whenever node are create...
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....
XN_C_API XnStatus XN_C_DECL xnWaitAndUpdateAll(XnContext *pContext)
Updates all generators nodes in the context, waiting for all to have new 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 XnStatus XN_C_DECL xnInit(XnContext **ppContext)
Initializes the OpenNI library.
XN_C_API XnStatus XN_C_DECL xnWaitAnyUpdateAll(XnContext *pContext)
Updates all generators nodes in the context, once any of them have new data.
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 void XN_C_DECL xnUnregisterFromGlobalErrorStateChange(XnContext *pContext, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGlobalErrorStateChange().
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 XnStatus XN_C_DECL xnWaitNoneUpdateAll(XnContext *pContext)
Updates all generator nodes in the context, without any waiting. If a node has new data,...
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...
XN_C_API XnStatus XN_C_DECL xnStartGeneratingAll(XnContext *pContext)
Make sure all generators are generating data.
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...
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,...
XN_C_API XnStatus XN_C_DECL xnContextAddRef(XnContext *pContext)
Adds a reference to the context object.
XN_C_API XnBool XN_C_DECL xnGetGlobalMirror(XnContext *pContext)
Gets the global mirror flag.
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.
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...
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...
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 xnContextRunXmlScriptEx(XnContext *pContext, const XnChar *xmlScript, XnEnumerationErrors *pErrors, XnNodeHandle *phScriptNode)
Runs an XML script in the given context.
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....
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 xnStopGeneratingAll(XnContext *pContext)
Stop all generators from generating data.
XN_C_API void XN_C_DECL xnUnregisterFromNodeDestruction(XnContext *pContext, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToNodeDestruction().
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.
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...
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...
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....
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 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...
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,...
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...
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.
XN_C_API XnStatus XN_C_DECL xnRegisterToNodeDestruction(XnContext *pContext, XnNodeDestructionHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to 'Node Destruction' event. This event is raised whenever a node is de...
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 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.
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 XN_C_DECL xnProductionNodeAddRef(XnNodeHandle hNode)
References a production node, increasing its reference count by 1.
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,...
void(* StateChangedHandler)(ProductionNode &node, void *pCookie)
Definition: XnCppWrapper.h:101
XN_C_API XnStatus XN_C_DECL xnGetCropping(XnNodeHandle hInstance, XnCropping *pCropping)
Gets current cropping configuration.
XN_C_API XnStatus XN_C_DECL xnSetCropping(XnNodeHandle hInstance, const XnCropping *pCropping)
Sets the cropping.
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 xnRegisterToCroppingChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to cropping changes.
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.
XN_C_API void XN_C_DECL xnGetDepthMetaData(XnNodeHandle hInstance, XnDepthMetaData *pMetaData)
Gets the current depth-map meta data.
XN_C_API XnDepthPixel *XN_C_DECL xnGetDepthMap(XnNodeHandle hInstance)
Gets the current depth-map. This map is updated after a call to xnWaitAndUpdateData().
XN_C_API void XN_C_DECL xnUnregisterFromDepthFieldOfViewChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToDepthFieldOfViewChange.
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.
XN_C_API XnStatus XN_C_DECL xnCreateDepthGenerator(XnContext *pContext, XnNodeHandle *phDepthGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates a depth generator.
XN_C_API XnDepthPixel XN_C_DECL xnGetDeviceMaxDepth(XnNodeHandle hInstance)
Gets the maximum depth the device can produce.
XN_C_API XnStatus XN_C_DECL xnGetDepthFieldOfView(XnNodeHandle hInstance, XnFieldOfView *pFOV)
Gets the Field-Of-View of the depth generator, in radians.
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.
XN_C_API XnStatus XN_C_DECL xnGetSerialNumber(XnNodeHandle hInstance, XnChar *strBuffer, XnUInt32 *pnBufferSize)
XN_C_API XnStatus XN_C_DECL xnGetVendorSpecificData(XnNodeHandle hInstance, XnChar *strBuffer, XnUInt32 *pnBufferSize)
XN_C_API XnStatus XN_C_DECL xnGetDeviceName(XnNodeHandle hInstance, XnChar *strBuffer, XnUInt32 *pnBufferSize)
XN_C_API XnStatus XN_C_DECL xnCreateDevice(XnContext *pContext, XnNodeHandle *phDevice, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates a device node.
struct XnEnumerationErrors XnEnumerationErrors
Definition: XnTypes.h:214
XN_C_API XnEnumerationErrorsIterator XN_C_DECL xnEnumerationErrorsGetNext(XnEnumerationErrorsIterator it)
XN_C_API XnStatus XN_C_DECL xnEnumerationErrorsAllocate(XnEnumerationErrors **ppErrors)
struct XnModuleError * XnEnumerationErrorsIterator
Definition: XnEnumerationErrors.h:57
XN_C_API void XN_C_DECL xnEnumerationErrorsFree(const XnEnumerationErrors *pErrors)
XN_C_API XnStatus XN_C_DECL xnEnumerationErrorsGetCurrentError(XnEnumerationErrorsIterator it)
XN_C_API XnEnumerationErrorsIterator XN_C_DECL xnEnumerationErrorsGetFirst(const XnEnumerationErrors *pErrors)
XN_C_API XnStatus XN_C_DECL xnEnumerationErrorsToString(const XnEnumerationErrors *pErrors, XnChar *csBuffer, XnUInt32 nSize)
XN_C_API const XnProductionNodeDescription *XN_C_DECL xnEnumerationErrorsGetCurrentDescription(XnEnumerationErrorsIterator it)
XN_C_API XnStatus XN_C_DECL xnGetNodeErrorState(XnNodeHandle hInstance)
Gets current error state of this node.
XN_C_API void XN_C_DECL xnUnregisterFromNodeErrorStateChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToNodeErrorStateChange().
XN_C_API XnStatus XN_C_DECL xnRegisterToNodeErrorStateChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to error state changes.
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.
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 xnStopFrameSyncWith(XnNodeHandle hInstance, XnNodeHandle hOther)
Stops frame sync with the other node.
XN_C_API XnStatus XN_C_DECL xnRegisterToFrameSyncChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to view point changes.
XN_C_API XnBool XN_C_DECL xnCanFrameSyncWith(XnNodeHandle hInstance, XnNodeHandle hOther)
Checks if this generator can frame sync to another node.
XN_C_API XnStatus XN_C_DECL xnFrameSyncWith(XnNodeHandle hInstance, XnNodeHandle hOther)
Activates frame sync with the other node.
XN_C_API XnStatus XN_C_DECL xnSetGeneralIntValue(XnNodeHandle hNode, const XnChar *strCap, XnInt32 nValue)
Sets the current value of this capability.
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.
XN_C_API XnStatus XN_C_DECL xnGetGeneralIntValue(XnNodeHandle hNode, const XnChar *strCap, XnInt32 *pnValue)
Gets the current value of this capability.
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.
XN_C_API void XN_C_DECL xnUnregisterFromGeneralIntValueChange(XnNodeHandle hNode, const XnChar *strCap, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGeneralIntValueChange().
XN_C_API XnUInt32 XN_C_DECL xnGetDataSize(XnNodeHandle hInstance)
Gets the size of current data, in bytes.
XN_C_API XnBool XN_C_DECL xnIsGenerating(XnNodeHandle hInstance)
Checks if this node is currently generating.
XN_C_API void XN_C_DECL xnUnregisterFromNewDataAvailable(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToNewDataAvailable().
XN_C_API const void *XN_C_DECL xnGetData(XnNodeHandle hInstance)
Gets the current data.
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...
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).
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...
XN_C_API XnUInt32 XN_C_DECL xnGetFrameID(XnNodeHandle hInstance)
Gets the frame ID of current data.
XN_C_API XnUInt64 XN_C_DECL xnGetTimestamp(XnNodeHandle hInstance)
Gets the timestamp of current data, in microseconds.
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.
XN_C_API XnStatus XN_C_DECL xnStartGenerating(XnNodeHandle hInstance)
Starts generation of the output. This will also cause all dependencies to start generating.
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.
XN_C_API XnStatus XN_C_DECL xnStopGenerating(XnNodeHandle hInstance)
Stops generation of the output.
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 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 xnRegisterGestureCallbacks(XnNodeHandle hInstance, XnGestureRecognized RecognizedCB, XnGestureProgress ProgressCB, void *pCookie, XnCallbackHandle *phCallback)
Register to all gesture callbacks.
XN_C_API XnStatus XN_C_DECL xnEnumerateGestures(XnNodeHandle hInstance, XnChar **pstrGestures, XnUInt16 *nGestures)
Get the names of all gestures available.
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 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 void XN_C_DECL xnUnregisterFromGestureIntermediateStageCompleted(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from when a gesture is in progress.
XN_C_API XnStatus XN_C_DECL xnCreateGestureGenerator(XnContext *pContext, XnNodeHandle *phGestureGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates a Gesture 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.
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.
XN_C_API XnStatus XN_C_DECL xnRegisterToGestureIntermediateStageCompleted(XnNodeHandle hInstance, XnGestureIntermediateStageCompleted handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when a gesture is in progress.
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 xnGetActiveGestures(XnNodeHandle hInstance, XnChar **pstrGestures, XnUInt16 *nGestures)
Get the names of the gestures that are currently active.
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 xnEnumerateAllGestures(XnNodeHandle hInstance, XnChar **pstrGestures, XnUInt32 nNameLength, XnUInt16 *nGestures)
Get the names of all gestures available.
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 void XN_C_DECL xnUnregisterGestureCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from gesture callbacks.
XN_C_API XnUInt16 XN_C_DECL xnGetNumberOfAvailableGestures(XnNodeHandle hInstance)
Get the number of all gestures available.
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 xnRegisterHandCallbacks(XnNodeHandle hInstance, XnHandCreate CreateCB, XnHandUpdate UpdateCB, XnHandDestroy DestroyCB, void *pCookie, XnCallbackHandle *phCallback)
Register to hands callbacks.
XN_C_API XnStatus XN_C_DECL xnCreateHandsGenerator(XnContext *pContext, XnNodeHandle *phHandsGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an hands generator.
XN_C_API XnStatus XN_C_DECL xnStopTrackingAll(XnNodeHandle hInstance)
Stop tracking all hands.
XN_C_API XnStatus XN_C_DECL xnStopTracking(XnNodeHandle hInstance, XnUserID user)
Stop tracking a specific hand.
XN_C_API XnStatus XN_C_DECL xnSetTrackingSmoothing(XnNodeHandle hInstance, XnFloat fFactor)
Change smoothing factor.
XN_C_API XnStatus XN_C_DECL xnStartTracking(XnNodeHandle hInstance, const XnPoint3D *pPosition)
Start tracking at a specific position.
XN_C_API void XN_C_DECL xnUnregisterHandCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from hands callbacks.
XN_C_API void XN_C_DECL xnUnregisterFromPixelFormatChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToPixelFormatChange.
XN_C_API XnBool XN_C_DECL xnIsPixelFormatSupported(XnNodeHandle hInstance, XnPixelFormat Format)
Checks if a specific pixel format is supported.
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()....
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()....
XN_C_API void XN_C_DECL xnGetImageMetaData(XnNodeHandle hInstance, XnImageMetaData *pMetaData)
Gets the current image-map meta data.
XN_C_API XnStatus XN_C_DECL xnSetPixelFormat(XnNodeHandle hInstance, XnPixelFormat Format)
Sets the pixel format of the image map.
XN_C_API XnStatus XN_C_DECL xnCreateImageGenerator(XnContext *pContext, XnNodeHandle *phImageGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an image generator.
XN_C_API XnPixelFormat XN_C_DECL xnGetPixelFormat(XnNodeHandle hInstance)
Gets current pixel format.
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()....
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()....
XN_C_API XnUInt8 *XN_C_DECL xnGetImageMap(XnNodeHandle hInstance)
Gets the current image-map as a byte buffer.
XN_C_API XnStatus XN_C_DECL xnRegisterToPixelFormatChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to pixel format changes.
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAddEx(XnNodeInfoList *pList, const XnProductionNodeDescription *pDescription, const XnChar *strCreationInfo, XnNodeInfoList *pNeededNodes, const void *pAdditionalData, XnFreeHandler pFreeHandler)
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAllocate(XnNodeInfoList **ppList)
XN_C_API XnBool XN_C_DECL xnNodeInfoListIteratorIsValid(XnNodeInfoListIterator it)
XN_C_API void XN_C_DECL xnNodeInfoListFree(XnNodeInfoList *pList)
XN_C_API XnStatus XN_C_DECL xnNodeInfoListRemove(XnNodeInfoList *pList, XnNodeInfoListIterator it)
XN_C_API XnNodeInfoListIterator XN_C_DECL xnNodeInfoListGetNext(XnNodeInfoListIterator it)
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAppend(XnNodeInfoList *pList, XnNodeInfoList *pOther)
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAdd(XnNodeInfoList *pList, const XnProductionNodeDescription *pDescription, const XnChar *strCreationInfo, XnNodeInfoList *pNeededNodes)
XN_C_API XnNodeInfoListIterator XN_C_DECL xnNodeInfoListGetLast(XnNodeInfoList *pList)
XN_C_API XnNodeInfoListIterator XN_C_DECL xnNodeInfoListGetPrevious(XnNodeInfoListIterator it)
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAddNodeFromList(XnNodeInfoList *pList, XnNodeInfoListIterator otherListIt)
XN_C_API XnNodeInfo *XN_C_DECL xnNodeInfoListGetCurrent(XnNodeInfoListIterator it)
XN_C_API XnBool XN_C_DECL xnNodeInfoListIsEmpty(XnNodeInfoList *pList)
XN_C_API XnNodeInfoListIterator XN_C_DECL xnNodeInfoListGetFirst(XnNodeInfoList *pList)
XN_C_API XnStatus XN_C_DECL xnNodeInfoListClear(XnNodeInfoList *pList)
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAddNode(XnNodeInfoList *pList, XnNodeInfo *pNode)
XN_C_API void XN_C_DECL xnGetIRMetaData(XnNodeHandle hInstance, XnIRMetaData *pMetaData)
Gets the current IR-map meta data.
XN_C_API XnStatus XN_C_DECL xnCreateIRGenerator(XnContext *pContext, XnNodeHandle *phIRGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an IR generator.
XN_C_API XnIRPixel *XN_C_DECL xnGetIRMap(XnNodeHandle hInstance)
Gets the current IR-map. This map is updated after a call to xnWaitAndUpdateData().
XN_C_API void XN_C_DECL xnFreeLicensesList(XnLicense *aLicenses)
XN_C_API XnStatus XN_C_DECL xnEnumerateLicenses(XnContext *pContext, XnLicense **paLicenses, XnUInt32 *pnCount)
XN_C_API XnStatus XN_C_DECL xnAddLicense(XnContext *pContext, const XnLicense *pLicense)
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 xnSetMapOutputMode(XnNodeHandle hInstance, const XnMapOutputMode *pOutputMode)
Sets the output mode.
XN_C_API XnStatus XN_C_DECL xnRegisterToMapOutputModeChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to mode changes.
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 xnGetMapOutputMode(XnNodeHandle hInstance, XnMapOutputMode *pOutputMode)
Gets the current output mode.
XN_C_API void XN_C_DECL xnUnregisterFromMapOutputModeChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToMapOutputModeChange.
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 void XN_C_DECL xnUnregisterFromMirrorChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToMirrorChange().
XN_C_API XnBool XN_C_DECL xnIsMirrored(XnNodeHandle hInstance)
Gets current mirroring configuration.
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 xnSetMirror(XnNodeHandle hInstance, XnBool bMirror)
Sets current mirror configuration.
XN_C_API XnStatus XN_C_DECL xnMockAudioSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnUInt8 *pData)
XN_C_API XnStatus XN_C_DECL xnMockRawSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const void *pData)
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 xnMockIRSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnIRPixel *pData)
XN_C_API XnStatus XN_C_DECL xnMockDepthSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnDepthPixel *pData)
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 xnLockedNodeEndChanges(XnNodeHandle hInstance, XnLockHandle hLock)
Ends changes request on a locked node.
XN_C_API XnStatus XN_C_DECL xnSetStringProperty(XnNodeHandle hInstance, const XnChar *strName, const XnChar *strValue)
Sets a string property.
XN_C_API XnStatus XN_C_DECL xnSetGeneralProperty(XnNodeHandle hInstance, const XnChar *strName, XnUInt32 nBufferSize, const void *pBuffer)
Sets a buffer property.
XN_C_API XnStatus XN_C_DECL xnUnlockNodeForChanges(XnNodeHandle hInstance, XnLockHandle hLock)
Unlocks a previously locked node.
XN_C_API XnNodeInfo *XN_C_DECL xnGetNodeInfo(XnNodeHandle hNode)
Gets information about a specific node, like its description, and dependent nodes.
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 xnLockedNodeStartChanges(XnNodeHandle hInstance, XnLockHandle hLock)
Start changes request on a locked node, without releasing that lock.
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 xnGetIntProperty(XnNodeHandle hInstance, const XnChar *strName, XnUInt64 *pnValue)
Gets an integer property.
XN_C_API XnBool XN_C_DECL xnIsCapabilitySupported(XnNodeHandle hInstance, const XnChar *strCapabilityName)
Checks if a production node supports specific capability.
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 XnStatus XN_C_DECL xnSetIntProperty(XnNodeHandle hInstance, const XnChar *strName, XnUInt64 nValue)
Sets an integer property.
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 xnGetGeneralProperty(XnNodeHandle hInstance, const XnChar *strName, XnUInt32 nBufferSize, void *pBuffer)
Gets a buffer property.
XN_C_API XnStatus XN_C_DECL xnSetRealProperty(XnNodeHandle hInstance, const XnChar *strName, XnDouble dValue)
Sets a real property.
XN_C_API XnStatus XN_C_DECL xnLockNodeForChanges(XnNodeHandle hInstance, XnLockHandle *phLock)
Locks a node, not allowing any changes (any "set" function).
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 xnCreatePlayer(XnContext *pContext, const XnChar *strFormatName, XnNodeHandle *phPlayer)
Creates a player.
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 xnGetPlayerNumFrames(XnNodeHandle hPlayer, const XnChar *strNodeName, XnUInt32 *pnFrames)
Retrieves the number of frames of a specific node played by a player.
XN_C_API XnBool XN_C_DECL xnIsPlayerAtEOF(XnNodeHandle hPlayer)
Checks whether the player is at the end-of-file marker.
XN_C_API XnStatus XN_C_DECL xnPlayerReadNext(XnNodeHandle hPlayer)
Reads the next data element from the player.
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 ...
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.
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.
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 xnSetPlayerRepeat(XnNodeHandle hPlayer, XnBool bRepeat)
Determines whether the player will automatically rewind to the beginning of the recording when reachi...
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...
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.
XN_C_API const XnChar *XN_C_DECL xnGetPlayerSupportedFormat(XnNodeHandle hPlayer)
Gets the name of the format supported by a player.
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 xnSetPlayerSource(XnNodeHandle hPlayer, XnRecordMedium sourceType, const XnChar *strSource)
Sets the source for the player, i.e. where the played events will come from.
XN_C_API XnStatus XN_C_DECL xnEnumeratePlayerNodes(XnNodeHandle hPlayer, XnNodeInfoList **ppList)
Retrieves a list of the nodes played by a player.
XN_C_API void XN_C_DECL xnUnregisterFromEndOfFileReached(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToEndOfFileReached().
XN_C_API XnStatus xnGetPoseStatus(XnNodeHandle hInstance, XnUserID userID, const XnChar *poseName, XnUInt64 *poseTime, XnPoseDetectionStatus *eStatus, XnPoseDetectionState *eState)
Gets the current pose status.
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 xnStopSinglePoseDetection(XnNodeHandle hInstance, XnUserID user, const XnChar *strPose)
Stop detection of a specific pose for a specific user.
XN_C_API XnStatus xnRegisterToPoseDetected(XnNodeHandle hInstance, XnPoseDetectionCallback handler, void *pCookie, XnCallbackHandle *phCallback)
Register to callback when a user is in pose.
XN_C_API XnStatus XN_C_DECL xnStopPoseDetection(XnNodeHandle hInstance, XnUserID user)
Stop detection of poses for a specific user.
XN_C_API XnBool XN_C_DECL xnIsPoseSupported(XnNodeHandle hInstance, const XnChar *strPose)
Tests if a pose is supported.
XN_C_API void xnUnregisterFromPoseDetected(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from pose detected callback.
XN_C_API XnUInt32 XN_C_DECL xnGetNumberOfPoses(XnNodeHandle hInstance)
Get the number of the supported poses.
XN_C_API void xnUnregisterFromOutOfPose(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from out of pose callback.
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 void XN_C_DECL xnUnregisterFromPoseCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from pose events.
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 XnStatus xnRegisterToOutOfPose(XnNodeHandle hInstance, XnPoseDetectionCallback handler, void *pCookie, XnCallbackHandle *phCallback)
Register to callback when a use is no longer in pose.
XN_C_API void XN_C_DECL xnUnregisterFromPoseDetectionInProgress(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from pose status callback.
XN_C_API XnStatus XN_C_DECL xnGetAllAvailablePoses(XnNodeHandle hInstance, XnChar **pstrPoses, XnUInt32 nNameLength, XnUInt32 *pnPoses)
Get the names of the supported poses.
XN_C_API XnStatus XN_C_DECL xnGetAvailablePoses(XnNodeHandle hInstance, XnChar **pstrPoses, XnUInt32 *pnPoses)
Get the names of the supported poses.
XN_C_API XnNodeInfoList *XN_C_DECL xnNodeInfoGetNeededNodes(XnNodeInfo *pNodeInfo)
XN_C_API const XnChar *XN_C_DECL xnNodeInfoGetInstanceName(XnNodeInfo *pNodeInfo)
XN_C_API const XnProductionNodeDescription *XN_C_DECL xnNodeInfoGetDescription(XnNodeInfo *pNodeInfo)
XN_C_API const XnChar *XN_C_DECL xnNodeInfoGetCreationInfo(XnNodeInfo *pNodeInfo)
XN_C_API XnStatus XN_C_DECL xnNodeInfoSetInstanceName(XnNodeInfo *pNodeInfo, const XnChar *strInstanceName)
XN_C_API XnStatus XN_C_DECL xnNodeInfoGetTreeStringRepresentation(XnNodeInfo *pNodeInfo, XnChar *csResult, XnUInt32 nSize)
XN_C_API const void *XN_C_DECL xnNodeInfoGetAdditionalData(XnNodeInfo *pNodeInfo)
XN_C_API XnNodeHandle XN_C_DECL xnNodeInfoGetRefHandle(XnNodeInfo *pNodeInfo)
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetName(XnNodeQuery *pQuery, const XnChar *strName)
XN_C_API XnStatus XN_C_DECL xnNodeQueryAllocate(XnNodeQuery **ppQuery)
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetExistingNodeOnly(XnNodeQuery *pQuery, XnBool bExistingNode)
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetSupportedMinUserPositions(XnNodeQuery *pQuery, const XnUInt32 nCount)
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetCreationInfo(XnNodeQuery *pQuery, const XnChar *strCreationInfo)
XN_C_API XnStatus XN_C_DECL xnNodeQueryFilterList(XnContext *pContext, const XnNodeQuery *pQuery, XnNodeInfoList *pList)
XN_C_API XnStatus XN_C_DECL xnNodeQueryAddSupportedCapability(XnNodeQuery *pQuery, const XnChar *strNeededCapability)
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetVendor(XnNodeQuery *pQuery, const XnChar *strVendor)
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetMaxVersion(XnNodeQuery *pQuery, const XnVersion *pMaxVersion)
XN_C_API void XN_C_DECL xnNodeQueryFree(XnNodeQuery *pQuery)
XN_C_API XnStatus XN_C_DECL xnNodeQueryAddNeededNode(XnNodeQuery *pQuery, const XnChar *strInstanceName)
XN_C_API XnStatus XN_C_DECL xnNodeQueryAddSupportedMapOutputMode(XnNodeQuery *pQuery, const XnMapOutputMode *pMapOutputMode)
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetMinVersion(XnNodeQuery *pQuery, const XnVersion *pMinVersion)
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...
XnRecordMedium
Definition: XnTypes.h:833
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 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 xnCreateRecorder(XnContext *pContext, const XnChar *strFormatName, XnNodeHandle *phRecorder)
Creates a recorder.
XN_C_API XnStatus XN_C_DECL xnSetRecorderDestination(XnNodeHandle hRecorder, XnRecordMedium destType, const XnChar *strDest)
Tells the recorder where to record.
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.
XN_C_API const XnLabel *XN_C_DECL xnGetLabelMap(XnNodeHandle hInstance)
Gets the label map, describing the current segmentation of the scene.
XN_C_API XnStatus XN_C_DECL xnCreateSceneAnalyzer(XnContext *pContext, XnNodeHandle *phSceneAnalyzer, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an scene analyzer.
XN_C_API XnStatus XN_C_DECL xnGetFloor(XnNodeHandle hInstance, XnPlane3D *pPlane)
Gets a description of the floor, if it was found.
XN_C_API void XN_C_DECL xnGetSceneMetaData(XnNodeHandle hInstance, XnSceneMetaData *pMetaData)
Gets the current scene meta data.
XN_C_API const XnChar *XN_C_DECL xnScriptNodeGetSupportedFormat(XnNodeHandle hScript)
XN_C_API XnStatus XN_C_DECL xnCreateScriptNode(XnContext *pContext, const XnChar *strFormat, XnNodeHandle *phScript)
XN_C_API XnStatus XN_C_DECL xnLoadScriptFromFile(XnNodeHandle hScript, const XnChar *strFileName)
XN_C_API XnStatus XN_C_DECL xnLoadScriptFromString(XnNodeHandle hScript, const XnChar *strScript)
XN_C_API XnStatus XN_C_DECL xnScriptNodeRun(XnNodeHandle hScript, XnEnumerationErrors *pErrors)
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 xnSetJointActive(XnNodeHandle hInstance, XnSkeletonJoint eJoint, XnBool bState)
Change the state of a specific joint, to be active or inactive.
XN_C_API XnBool XN_C_DECL xnIsProfileAvailable(XnNodeHandle hInstance, XnSkeletonProfile eProfile)
Check if generator supports a specific profile.
XN_C_API XnStatus XN_C_DECL xnGetSkeletonJoint(XnNodeHandle hInstance, XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointTransformation *pJoint)
Get a specific joint's full information.
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 xnSaveSkeletonCalibrationData(XnNodeHandle hInstance, XnUserID user, XnUInt32 nSlot)
Save the calibration data.
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 xnLoadSkeletonCalibrationDataFromFile(XnNodeHandle hInstance, XnUserID user, const XnChar *strFileName)
Load previously saved calibration data from file.
XN_C_API XnBool XN_C_DECL xnNeedPoseForSkeletonCalibration(XnNodeHandle hInstance)
Check if a specific pose is required for calibration.
XN_C_API XnStatus XN_C_DECL xnResetSkeleton(XnNodeHandle hInstance, XnUserID user)
Reset the skeleton - discard calibration.
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.
XN_C_API XnStatus XN_C_DECL xnRequestSkeletonCalibration(XnNodeHandle hInstance, XnUserID user, XnBool bForce)
Request calibration when possible.
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 xnAbortSkeletonCalibration(XnNodeHandle hInstance, XnUserID user)
stop calibration
XN_C_API XnBool XN_C_DECL xnIsSkeletonTracking(XnNodeHandle hInstance, XnUserID user)
Check if skeleton is being tracked.
XN_C_API XnStatus XN_C_DECL xnSaveSkeletonCalibrationDataToFile(XnNodeHandle hInstance, XnUserID user, const XnChar *strFileName)
Save the calibration data to file.
XN_C_API XnBool XN_C_DECL xnIsJointActive(XnNodeHandle hInstance, XnSkeletonJoint eJoint)
Check if joint is currently active.
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 xnRegisterCalibrationCallbacks(XnNodeHandle hInstance, XnCalibrationStart CalibrationStartCB, XnCalibrationEnd CalibrationEndCB, void *pCookie, XnCallbackHandle *phCallback)
Register to calibration callbacks.
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 xnSetSkeletonSmoothing(XnNodeHandle hInstance, XnFloat fFactor)
Set the skeleton's smoothing factor.
XN_C_API XnStatus XN_C_DECL xnLoadSkeletonCalibrationData(XnNodeHandle hInstance, XnUserID user, XnUInt32 nSlot)
Load previously saved calibration data.
XN_C_API void XN_C_DECL xnUnregisterFromJointConfigurationChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from joint configuration changes.
XN_C_API XnStatus XN_C_DECL xnRegisterToCalibrationStart(XnNodeHandle hInstance, XnCalibrationStart handler, void *pCookie, XnCallbackHandle *phCallback)
Register to calibration start callback.
XN_C_API XnStatus XN_C_DECL xnStopSkeletonTracking(XnNodeHandle hInstance, XnUserID user)
Stop tracking a skeleton.
XN_C_API void XN_C_DECL xnUnregisterFromCalibrationStart(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from calibration start callback.
XN_C_API XnBool XN_C_DECL xnIsSkeletonCalibrating(XnNodeHandle hInstance, XnUserID user)
Check if skeleton is being calibrated.
XN_C_API XnStatus XN_C_DECL xnRegisterToCalibrationComplete(XnNodeHandle hInstance, XnCalibrationComplete handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when calibration is complete, with status.
XN_C_API XnStatus XN_C_DECL xnGetSkeletonCalibrationPose(XnNodeHandle hInstance, XnChar *strPose)
Get the pose that is required for calibration.
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.
XN_C_API void XN_C_DECL xnUnregisterCalibrationCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from calibration callbacks.
XN_C_API XnStatus XN_C_DECL xnClearSkeletonCalibrationData(XnNodeHandle hInstance, XnUInt32 nSlot)
Clear the requested slot from any saved calibration data.
XN_C_API XnStatus XN_C_DECL xnGetSkeletonJointPosition(XnNodeHandle hInstance, XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointPosition *pJoint)
Get a specific joint's position.
XN_C_API XnBool XN_C_DECL xnIsSkeletonCalibrated(XnNodeHandle hInstance, XnUserID user)
Check if skeleton is being calibrated.
XN_C_API XnStatus XN_C_DECL xnStartSkeletonTracking(XnNodeHandle hInstance, XnUserID user)
Start tracking a skeleton.
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.
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 xnUnregisterFromHandTouchingFOVEdge(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from hand approaching the edge of the FOV.
XN_C_API XnStatus XN_C_DECL xnGetUserPixels(XnNodeHandle hInstance, XnUserID user, XnSceneMetaData *pScene)
Get the pixels that belong to a user.
XN_C_API void XN_C_DECL xnUnregisterFromUserReEnter(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from when a user re-enters the scene.
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 xnRegisterToUserExit(XnNodeHandle hInstance, XnUserHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when the user exits the scene (but not lost yet)
XN_C_API void XN_C_DECL xnUnregisterFromUserExit(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from when a user exits the scene.
XN_C_API void XN_C_DECL xnUnregisterUserCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from user callbacks.
XN_C_API XnStatus XN_C_DECL xnCreateUserGenerator(XnContext *pContext, XnNodeHandle *phUserGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates a user generator.
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 xnGetUsers(XnNodeHandle hInstance, XnUserID *pUsers, XnUInt16 *pnUsers)
Get the current users.
XN_C_API XnUInt16 XN_C_DECL xnGetNumberOfUsers(XnNodeHandle hInstance)
Get current number of users.
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 XnUInt32 XN_C_DECL xnGetSupportedUserPositionsCount(XnNodeHandle hInstance)
Gets the number of user positions supported by this generator.
XN_C_API XnStatus XN_C_DECL xnSetUserPosition(XnNodeHandle hInstance, XnUInt32 nIndex, const XnBoundingBox3D *pPosition)
Sets the current user position.
XN_C_API XnStatus XN_C_DECL xnGetUserPosition(XnNodeHandle hInstance, XnUInt32 nIndex, XnBoundingBox3D *pPosition)
Gets the current user position.
XN_C_API void XN_C_DECL xnUnregisterFromUserPositionChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToUserPositionChange.
XN_C_API XnStatus XN_C_DECL xnRegisterToUserPositionChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to user position changes.
XN_C_API XnResolution XN_C_DECL xnResolutionGetFromName(const XnChar *strName)
XN_C_API XnStatus XN_C_DECL xnAutoEnumerateOverSingleInput(XnContext *pContext, XnNodeInfoList *pList, XnProductionNodeDescription *pDescription, const XnChar *strCreationInfo, XnProductionNodeType InputType, XnEnumerationErrors *pErrors, XnNodeQuery *pQuery)
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,...
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 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 XnUInt32 XN_C_DECL xnResolutionGetXRes(XnResolution resolution)
XN_C_API XnStatus XN_C_DECL xnGetVersion(XnVersion *pVersion)
XN_C_API XnInt32 XN_C_DECL xnVersionCompare(const XnVersion *pVersion1, const XnVersion *pVersion2)
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,...
XN_C_API XnUInt32 XN_C_DECL xnResolutionGetYRes(XnResolution resolution)
XN_C_API const XnChar *XN_C_DECL xnResolutionGetName(XnResolution resolution)
XN_C_API XnResolution XN_C_DECL xnResolutionGetFromXYRes(XnUInt32 xRes, XnUInt32 yRes)
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...
Definition: XnCppWrapper.h:35
void GetVersion(XnVersion &Version)
Definition: XnCppWrapper.h:9990
Definition: XnTypes.h:478
Definition: XnTypes.h:487
Definition: XnTypes.h:504
Definition: XnTypes.h:203
Definition: XnTypes.h:433
Definition: XnTypes.h:193
XnNodeInfoListNode * pCurrent
Definition: XnTypes.h:194
Definition: XnTypes.h:561
Definition: XnTypes.h:163
Definition: XnTypes.h:283
Definition: XnTypes.h:590
Definition: XnTypes.h:574
XnUInt32 X
Definition: XnTypes.h:1087
XnUInt32 Y
Definition: XnTypes.h:1088
Definition: XnTypes.h:466
Definition: XnTypes.h:152
XnUInt8 nMinor
Definition: XnTypes.h:154
XnUInt8 nMajor
Definition: XnTypes.h:153
XnUInt16 nMaintenance
Definition: XnTypes.h:155
XnUInt32 nBuild
Definition: XnTypes.h:156
Definition: XnTypes.h:456
XnUInt32 nSampleRate
Definition: XnTypes.h:457
XnUInt8 nChannels
Definition: XnTypes.h:459
XnUInt16 nBitsPerSample
Definition: XnTypes.h:458
Definition: XnTypes.h:291