22 #ifndef __XN_CPP_WRAPPER_H__ 23 #define __XN_CPP_WRAPPER_H__ 80 Version(XnUInt8 nMajor, XnUInt8 nMinor, XnUInt16 nMaintenance, XnUInt32 nBuild)
132 inline OutputMetaData(
const XnUInt8** ppData) : m_ppData(ppData), m_nAllocatedSize(0), m_pAllocatedData(NULL)
143 inline XnUInt64
Timestamp()
const {
return m_output.nTimestamp; }
145 inline XnUInt64&
Timestamp() {
return m_output.nTimestamp; }
148 inline XnUInt32
FrameID()
const {
return m_output.nFrameID; }
150 inline XnUInt32&
FrameID() {
return m_output.nFrameID; }
153 inline XnUInt32
DataSize()
const {
return m_output.nDataSize; }
155 inline XnUInt32&
DataSize() {
return m_output.nDataSize; }
158 inline XnBool
IsDataNew()
const {
return m_output.bIsNew; }
168 inline const XnUInt8*
Data()
const {
return *m_ppData; }
170 inline const XnUInt8*&
Data() {
return *m_ppData; }
175 return m_pAllocatedData;
186 if (nBytes > m_nAllocatedSize)
194 m_pAllocatedData = pData;
195 m_nAllocatedSize = nBytes;
199 *m_ppData = m_pAllocatedData;
209 if (m_nAllocatedSize != 0)
212 m_pAllocatedData = NULL;
213 m_nAllocatedSize = 0;
226 if (Data() != m_pAllocatedData || DataSize() > m_nAllocatedSize)
228 const XnUInt8* pOrigData = *m_ppData;
230 nRetVal = AllocateData(DataSize());
233 if (pOrigData != NULL)
235 xnOSMemCopy(m_pAllocatedData, pOrigData, DataSize());
252 const XnUInt8** m_ppData;
253 XnUInt32 m_nAllocatedSize;
273 m_map.PixelFormat = format;
277 inline XnUInt32
XRes()
const {
return m_map.Res.X; }
279 inline XnUInt32&
XRes() {
return m_map.Res.X; }
282 inline XnUInt32
YRes()
const {
return m_map.Res.Y; }
284 inline XnUInt32&
YRes() {
return m_map.Res.Y; }
287 inline XnUInt32
XOffset()
const {
return m_map.Offset.X; }
289 inline XnUInt32&
XOffset() {
return m_map.Offset.X; }
292 inline XnUInt32
YOffset()
const {
return m_map.Offset.Y; }
294 inline XnUInt32&
YOffset() {
return m_map.Offset.Y; }
297 inline XnUInt32
FullXRes()
const {
return m_map.FullRes.X; }
299 inline XnUInt32&
FullXRes() {
return m_map.FullRes.X; }
302 inline XnUInt32
FullYRes()
const {
return m_map.FullRes.Y; }
304 inline XnUInt32&
FullYRes() {
return m_map.FullRes.Y; }
307 inline XnUInt32
FPS()
const {
return m_map.nFPS; }
309 inline XnUInt32&
FPS() {
return m_map.nFPS; }
322 switch (PixelFormat())
350 XnUInt32 nSize = nXRes * nYRes * BytesPerPixel();
354 FullXRes() = XRes() = nXRes;
355 FullYRes() = YRes() = nYRes;
356 XOffset() = YOffset() = 0;
373 if (pExternalBuffer == NULL)
375 nRetVal = AllocateData(nXRes, nYRes);
380 FullXRes() = XRes() = nXRes;
381 FullYRes() = YRes() = nYRes;
382 XOffset() = YOffset() = 0;
383 Data() = pExternalBuffer;
384 DataSize() = nXRes * nYRes * BytesPerPixel();
403 #define _XN_DECLARE_MAP_DATA_CLASS(_name, _pixelType) \ 407 inline _name(_pixelType*& pData, XnUInt32& nXRes, XnUInt32 &nYRes) : \ 408 m_pData(pData), m_nXRes(nXRes), m_nYRes(nYRes) {} \ 410 inline XnUInt32 XRes() const { return m_nXRes; } \ 411 inline XnUInt32 YRes() const { return m_nYRes; } \ 413 inline const _pixelType& operator[](XnUInt32 nIndex) const \ 415 XN_ASSERT(nIndex < (m_nXRes * m_nYRes)); \ 416 return m_pData[nIndex]; \ 418 inline _pixelType& operator[](XnUInt32 nIndex) \ 420 XN_ASSERT(nIndex < (m_nXRes *m_nYRes)); \ 421 return m_pData[nIndex]; \ 424 inline const _pixelType& operator()(XnUInt32 x, XnUInt32 y) const \ 426 XN_ASSERT(x < m_nXRes && y < m_nYRes); \ 427 return m_pData[y*m_nXRes + x]; \ 429 inline _pixelType& operator()(XnUInt32 x, XnUInt32 y) \ 431 XN_ASSERT(x < m_nXRes && y < m_nYRes); \ 432 return m_pData[y*m_nXRes + x]; \ 437 _name(const _name& other); \ 438 _name& operator=(const _name&); \ 440 _pixelType*& m_pData; \ 446 _XN_DECLARE_MAP_DATA_CLASS(ImageMap, XnUInt8);
450 _XN_DECLARE_MAP_DATA_CLASS(IRMap,
XnIRPixel);
451 _XN_DECLARE_MAP_DATA_CLASS(LabelMap,
XnLabel);
494 return ReAdjust(nXRes, nYRes, pExternalBuffer);
507 return MakeDataWritable();
529 inline const xn::DepthMap&
DepthMap()
const {
return m_depthMap; }
534 return m_writableDepthMap;
544 XN_ASSERT(nIndex < (XRes()*YRes()));
545 return Data()[nIndex];
556 XN_ASSERT(x < XRes() && y < YRes());
557 return Data()[y*XRes() + x];
571 const xn::DepthMap m_depthMap;
572 xn::DepthMap m_writableDepthMap;
585 m_imageMap(const_cast<XnUInt8*&>(m_image.pData),
MapMetaData::GetUnderlying()->Res.X,
MapMetaData::GetUnderlying()->Res.Y),
586 m_writableImageMap((XnUInt8*&)m_pAllocatedData,
MapMetaData::GetUnderlying()->Res.X,
MapMetaData::GetUnderlying()->Res.Y),
621 XnStatus nRetVal = ReAdjust(nXRes, nYRes, format, pExternalBuffer);
623 PixelFormat() = format;
637 PixelFormat() = format;
641 PixelFormat() = origFormat;
654 return MakeDataWritable();
669 PixelFormat() = format;
673 PixelFormat() = origFormat;
717 inline const xn::ImageMap&
ImageMap()
const {
return m_imageMap; }
722 inline const xn::RGB24Map&
RGB24Map()
const {
return m_rgb24Map; }
727 inline const xn::Grayscale8Map&
Grayscale8Map()
const {
return m_gray8Map; }
747 const xn::ImageMap m_imageMap;
748 xn::ImageMap m_writableImageMap;
749 const xn::RGB24Map m_rgb24Map;
750 xn::RGB24Map m_writableRgb24Map;
751 const xn::Grayscale16Map m_gray16Map;
752 xn::Grayscale16Map m_writableGray16Map;
753 const xn::Grayscale8Map m_gray8Map;
754 xn::Grayscale8Map m_writableGray8Map;
788 return ReAdjust(nXRes, nYRes, pExternalBuffer);
797 return MakeDataWritable();
820 XN_ASSERT(nIndex < (XRes()*YRes()));
821 return Data()[nIndex];
832 XN_ASSERT(x < XRes() && y < YRes());
833 return Data()[y*XRes() + x];
837 inline const xn::IRMap&
IRMap()
const {
return m_irMap; }
839 inline xn::IRMap&
WritableIRMap() { MakeDataWritable();
return m_writableIRMap; }
852 const xn::IRMap m_irMap;
853 xn::IRMap m_writableIRMap;
886 inline XnUInt32
SampleRate()
const {
return m_audio.Wave.nSampleRate; }
888 inline XnUInt32&
SampleRate() {
return m_audio.Wave.nSampleRate; }
891 inline XnUInt16
BitsPerSample()
const {
return m_audio.Wave.nBitsPerSample; }
940 return ReAdjust(nXRes, nYRes, pExternalBuffer);
949 return MakeDataWritable();
966 inline const xn::LabelMap&
LabelMap()
const {
return m_labelMap; }
977 XN_ASSERT(nIndex < (XRes()*YRes()));
978 return Data()[nIndex];
989 XN_ASSERT(x < XRes() && y < YRes());
990 return (*
this)[y*XRes() + x];
1004 const xn::LabelMap m_labelMap;
1005 xn::LabelMap m_writableLabelMap;
1059 return (GetHandle() == other.
GetHandle());
1069 return (GetHandle() != other.
GetHandle());
1073 inline XnBool
IsValid()
const {
return (GetHandle() != NULL); }
1093 inline XnStatus XN_API_DEPRECATED(
"Please use AddRef() instead.") Ref() {
return AddRef(); }
1094 inline void XN_API_DEPRECATED(
"Please use Release() instead.") Unref() { Release(); }
1099 if (m_hNode == hNode)
1106 if (m_hNode != NULL)
1145 static void XN_CALLBACK_TYPE ContextShuttingDownCallback(
XnContext* ,
void* pCookie)
1148 pThis->m_hNode = NULL;
1170 SetUnderlyingObject(pInfo);
1180 SetUnderlyingObject(other.m_pInfo);
1186 SetUnderlyingObject(NULL);
1196 SetUnderlyingObject(other.m_pInfo);
1269 inline void SetUnderlyingObject(
XnNodeInfo* pInfo);
1273 XnBool m_bOwnerOfNode;
1394 XnBool m_bAllocated;
1421 return m_it.pCurrent == other.m_it.
pCurrent;
1431 return m_it.pCurrent != other.m_it.
pCurrent;
1483 UpdateInternalObject(it);
1510 m_bAllocated =
TRUE;
1540 m_bAllocated =
TRUE;
1558 return xnNodeInfoListAddEx(m_pList, &description, strCreationInfo, pList, pAdditionalData, pFreeHandler);
1641 inline void FreeImpl()
1646 m_bAllocated =
FALSE;
1652 XnBool m_bAllocated;
1734 inline void GetRange(XnInt32& nMin, XnInt32& nMax, XnInt32& nStep, XnInt32& nDefault, XnBool& bIsAutoSupported)
const 1736 xnGetGeneralIntRange(GetHandle(), m_strCap, &nMin, &nMax, &nStep, &nDefault, &bIsAutoSupported);
1768 const XnChar* m_strCap;
1810 inline void GetContext(
Context& context)
const;
2150 inline XnBool CanFrameSyncWith(
Generator& other)
const;
2165 inline XnBool IsFrameSyncedWith(
Generator& other)
const;
2390 inline XnStatus Create(
Context& context,
const XnChar* strFormatName = NULL);
2448 inline XnStatus Create(
Context& context,
const XnChar* strFormatName);
3162 return SetData(nFrameID, nTimestamp, depthMD.
DataSize(), depthMD.
Data());
3319 inline XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize,
const XnUInt8* pImageMap)
3333 return SetData(nFrameID, nTimestamp, imageMD.
DataSize(), imageMD.
Data());
3419 return xnMockIRSetData(GetHandle(), nFrameID, nTimestamp, nDataSize, pIRMap);
3431 return SetData(nFrameID, nTimestamp, irMD.
DataSize(), irMD.
Data());
3556 typedef void (XN_CALLBACK_TYPE* GestureProgress)(
GestureGenerator& generator,
const XnChar* strGesture,
const XnPoint3D* pPosition, XnFloat fProgress,
void* pCookie);
3565 GestureCookie* pGestureCookie;
3567 pGestureCookie->recognizedHandler = RecognizedCB;
3568 pGestureCookie->progressHandler = ProgressCB;
3569 pGestureCookie->pUserCookie = pCookie;
3571 nRetVal =
xnRegisterGestureCallbacks(GetHandle(), GestureRecognizedCallback, GestureProgressCallback, pGestureCookie, &pGestureCookie->hCallback);
3578 hCallback = pGestureCookie;
3588 GestureCookie* pGestureCookie = (GestureCookie*)hCallback;
3617 typedef void (XN_CALLBACK_TYPE* GestureIntermediateStageCompleted)(
GestureGenerator& generator,
const XnChar* strGesture,
const XnPoint3D* pPosition,
void* pCookie);
3625 GestureIntermediateStageCompletedCookie* pGestureCookie;
3627 pGestureCookie->handler = handler;
3628 pGestureCookie->pUserCookie = pCookie;
3637 hCallback = pGestureCookie;
3646 GestureIntermediateStageCompletedCookie* pGestureCookie = (GestureIntermediateStageCompletedCookie*)hCallback;
3659 typedef void (XN_CALLBACK_TYPE* GestureReadyForNextIntermediateStage)(
GestureGenerator& generator,
const XnChar* strGesture,
const XnPoint3D* pPosition,
void* pCookie);
3667 GestureReadyForNextIntermediateStageCookie* pGestureCookie;
3669 pGestureCookie->handler = handler;
3670 pGestureCookie->pUserCookie = pCookie;
3679 hCallback = pGestureCookie;
3689 GestureReadyForNextIntermediateStageCookie* pGestureCookie = (GestureReadyForNextIntermediateStageCookie*)hCallback;
3695 typedef struct GestureCookie
3697 GestureRecognized recognizedHandler;
3698 GestureProgress progressHandler;
3703 static void XN_CALLBACK_TYPE GestureRecognizedCallback(
XnNodeHandle hNode,
const XnChar* strGesture,
const XnPoint3D* pIDPosition,
const XnPoint3D* pEndPosition,
void* pCookie)
3705 GestureCookie* pGestureCookie = (GestureCookie*)pCookie;
3707 if (pGestureCookie->recognizedHandler != NULL)
3709 pGestureCookie->recognizedHandler(gen, strGesture, pIDPosition, pEndPosition, pGestureCookie->pUserCookie);
3713 static void XN_CALLBACK_TYPE GestureProgressCallback(
XnNodeHandle hNode,
const XnChar* strGesture,
const XnPoint3D* pPosition, XnFloat fProgress,
void* pCookie)
3715 GestureCookie* pGestureCookie = (GestureCookie*)pCookie;
3717 if (pGestureCookie->progressHandler != NULL)
3719 pGestureCookie->progressHandler(gen, strGesture, pPosition, fProgress, pGestureCookie->pUserCookie);
3723 typedef struct GestureIntermediateStageCompletedCookie
3725 GestureIntermediateStageCompleted handler;
3728 } GestureIntermediateStageCompletedCookie;
3730 static void XN_CALLBACK_TYPE GestureIntermediateStageCompletedCallback(
XnNodeHandle hNode,
const XnChar* strGesture,
const XnPoint3D* pPosition,
void* pCookie)
3732 GestureIntermediateStageCompletedCookie* pGestureCookie = (GestureIntermediateStageCompletedCookie*)pCookie;
3734 if (pGestureCookie->handler != NULL)
3736 pGestureCookie->handler(gen, strGesture, pPosition, pGestureCookie->pUserCookie);
3740 typedef struct GestureReadyForNextIntermediateStageCookie
3742 GestureReadyForNextIntermediateStage handler;
3745 } GestureReadyForNextIntermediateStageCookie;
3747 static void XN_CALLBACK_TYPE GestureReadyForNextIntermediateStageCallback(
XnNodeHandle hNode,
const XnChar* strGesture,
const XnPoint3D* pPosition,
void* pCookie)
3749 GestureReadyForNextIntermediateStageCookie* pGestureCookie = (GestureReadyForNextIntermediateStageCookie*)pCookie;
3751 if (pGestureCookie->handler != NULL)
3753 pGestureCookie->handler(gen, strGesture, pPosition, pGestureCookie->pUserCookie);
3836 HandTouchingFOVEdgeCookie* pHandCookie;
3838 pHandCookie->handler = handler;
3839 pHandCookie->pUserCookie = pCookie;
3848 hCallback = pHandCookie;
3858 HandTouchingFOVEdgeCookie* pHandCookie = (HandTouchingFOVEdgeCookie*)hCallback;
3863 typedef struct HandTouchingFOVEdgeCookie
3865 HandTouchingFOVEdge handler;
3868 } HandTouchingFOVEdgeCookie;
3872 HandTouchingFOVEdgeCookie* pHandCookie = (HandTouchingFOVEdgeCookie*)pCookie;
3874 if (pHandCookie->handler != NULL)
3876 pHandCookie->handler(cap, user, pPosition, fTime, eDir, pHandCookie->pUserCookie);
3938 HandCookie* pHandCookie;
3940 pHandCookie->createHandler = CreateCB;
3941 pHandCookie->updateHandler = UpdateCB;
3942 pHandCookie->destroyHandler = DestroyCB;
3943 pHandCookie->pUserCookie = pCookie;
3945 nRetVal =
xnRegisterHandCallbacks(GetHandle(), HandCreateCB, HandUpdateCB, HandDestroyCB, pHandCookie, &pHandCookie->hCallback);
3952 hCallback = pHandCookie;
3962 HandCookie* pHandCookie = (HandCookie*)hCallback;
4020 typedef struct HandCookie
4022 HandCreate createHandler;
4023 HandUpdate updateHandler;
4024 HandDestroy destroyHandler;
4031 HandCookie* pHandCookie = (HandCookie*)pCookie;
4033 if (pHandCookie->createHandler != NULL)
4035 pHandCookie->createHandler(gen, user, pPosition, fTime, pHandCookie->pUserCookie);
4040 HandCookie* pHandCookie = (HandCookie*)pCookie;
4042 if (pHandCookie->updateHandler != NULL)
4044 pHandCookie->updateHandler(gen, user, pPosition, fTime, pHandCookie->pUserCookie);
4047 static void XN_CALLBACK_TYPE HandDestroyCB(
XnNodeHandle hNode,
XnUserID user, XnFloat fTime,
void* pCookie)
4049 HandCookie* pHandCookie = (HandCookie*)pCookie;
4051 if (pHandCookie->destroyHandler != NULL)
4053 pHandCookie->destroyHandler(gen, user, fTime, pHandCookie->pUserCookie);
4108 XN_API_DEPRECATED(
"Use the version with one argument")
4327 inline XnStatus XN_API_DEPRECATED(
"Please use RegisterToCalibrationStart/Complete") RegisterCalibrationCallbacks(CalibrationStart CalibrationStartCB, CalibrationEnd CalibrationEndCB,
void* pCookie,
XnCallbackHandle& hCallback)
4331 SkeletonCookie* pSkeletonCookie;
4333 pSkeletonCookie->startHandler = CalibrationStartCB;
4334 pSkeletonCookie->endHandler = CalibrationEndCB;
4335 pSkeletonCookie->pUserCookie = pCookie;
4337 #pragma warning (push) 4338 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS) 4339 nRetVal =
xnRegisterCalibrationCallbacks(GetHandle(), CalibrationStartBundleCallback, CalibrationEndBundleCallback, pSkeletonCookie, &pSkeletonCookie->hCallback);
4340 #pragma warning (pop) 4347 hCallback = pSkeletonCookie;
4355 inline void XN_API_DEPRECATED(
"Please use UnregisterFromCalibrationStart/Complete") UnregisterCalibrationCallbacks(
XnCallbackHandle hCallback)
4357 SkeletonCookie* pSkeletonCookie = (SkeletonCookie*)hCallback;
4358 #pragma warning (push) 4359 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS) 4361 #pragma warning (pop) 4371 CalibrationStartCookie* pCalibrationCookie;
4373 pCalibrationCookie->handler = handler;
4374 pCalibrationCookie->pUserCookie = pCookie;
4381 hCallback = pCalibrationCookie;
4393 CalibrationStartCookie* pCalibrationCookie = (CalibrationStartCookie*)hCallback;
4416 CalibrationInProgressCookie* pSkeletonCookie;
4418 pSkeletonCookie->handler = handler;
4419 pSkeletonCookie->pUserCookie = pCookie;
4428 hCallback = pSkeletonCookie;
4438 CalibrationInProgressCookie* pSkeletonCookie = (CalibrationInProgressCookie*)hCallback;
4459 CalibrationCompleteCookie* pSkeletonCookie;
4461 pSkeletonCookie->handler = handler;
4462 pSkeletonCookie->pUserCookie = pCookie;
4471 hCallback = pSkeletonCookie;
4481 CalibrationCompleteCookie* pSkeletonCookie = (CalibrationCompleteCookie*)hCallback;
4486 typedef struct SkeletonCookie
4488 CalibrationStart startHandler;
4489 CalibrationEnd endHandler;
4494 static void XN_CALLBACK_TYPE CalibrationStartBundleCallback(
XnNodeHandle hNode,
XnUserID user,
void* pCookie)
4496 SkeletonCookie* pSkeletonCookie = (SkeletonCookie*)pCookie;
4498 if (pSkeletonCookie->startHandler != NULL)
4500 pSkeletonCookie->startHandler(cap, user, pSkeletonCookie->pUserCookie);
4504 static void XN_CALLBACK_TYPE CalibrationEndBundleCallback(
XnNodeHandle hNode,
XnUserID user, XnBool bSuccess,
void* pCookie)
4506 SkeletonCookie* pSkeletonCookie = (SkeletonCookie*)pCookie;
4508 if (pSkeletonCookie->endHandler != NULL)
4510 pSkeletonCookie->endHandler(cap, user, bSuccess, pSkeletonCookie->pUserCookie);
4513 typedef struct CalibrationStartCookie
4515 CalibrationStart handler;
4518 } CalibrationStartCookie;
4520 static void XN_CALLBACK_TYPE CalibrationStartCallback(
XnNodeHandle hNode,
XnUserID user,
void* pCookie)
4522 CalibrationStartCookie* pCalibrationCookie = (CalibrationStartCookie*)pCookie;
4524 if (pCalibrationCookie->handler != NULL)
4526 pCalibrationCookie->handler(cap, user, pCalibrationCookie->pUserCookie);
4529 typedef struct CalibrationInProgressCookie
4531 CalibrationInProgress handler;
4534 } CalibrationInProgressCookie;
4538 CalibrationInProgressCookie* pSkeletonCookie = (CalibrationInProgressCookie*)pCookie;
4540 if (pSkeletonCookie->handler != NULL)
4542 pSkeletonCookie->handler(cap, user, calibrationError, pSkeletonCookie->pUserCookie);
4546 typedef struct CalibrationCompleteCookie
4548 CalibrationComplete handler;
4551 } CalibrationCompleteCookie;
4555 CalibrationCompleteCookie* pSkeletonCookie = (CalibrationCompleteCookie*)pCookie;
4557 if (pSkeletonCookie->handler != NULL)
4559 pSkeletonCookie->handler(cap, user, calibrationError, pSkeletonCookie->pUserCookie);
4619 return xnGetPoseStatus(GetHandle(), userID, poseName, &poseTime, &eStatus, &eState);
4649 inline XnStatus XN_API_DEPRECATED(
"Please use RegisterToPoseDetected/RegisterToOutOfPose instead") RegisterToPoseCallbacks(PoseDetection PoseStartCB, PoseDetection PoseEndCB,
void* pCookie,
XnCallbackHandle& hCallback)
4653 PoseCookie* pPoseCookie;
4655 pPoseCookie->startHandler = PoseStartCB;
4656 pPoseCookie->endHandler = PoseEndCB;
4657 pPoseCookie->pPoseCookie = pCookie;
4659 #pragma warning (push) 4660 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS) 4661 nRetVal =
xnRegisterToPoseCallbacks(GetHandle(), PoseDetectionStartBundleCallback, PoseDetectionStartEndBundleCallback, pPoseCookie, &pPoseCookie->hCallback);
4662 #pragma warning (pop) 4669 hCallback = pPoseCookie;
4677 inline void XN_API_DEPRECATED(
"Please use UnregisterFromPoseDetected/UnregisterFromOutOfPose instead") UnregisterFromPoseCallbacks(
XnCallbackHandle hCallback)
4679 PoseCookie* pPoseCookie = (PoseCookie*)hCallback;
4680 #pragma warning (push) 4681 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS) 4683 #pragma warning (pop) 4693 PoseDetectionCookie* pPoseCookie;
4695 pPoseCookie->handler = handler;
4696 pPoseCookie->pPoseCookie = pCookie;
4704 hCallback = pPoseCookie;
4713 PoseDetectionCookie* pPoseCookie;
4715 pPoseCookie->handler = handler;
4716 pPoseCookie->pPoseCookie = pCookie;
4718 nRetVal =
xnRegisterToOutOfPose(GetHandle(), PoseDetectionCallback, pPoseCookie, &pPoseCookie->hCallback);
4724 hCallback = pPoseCookie;
4732 PoseDetectionCookie* pPoseCookie = (PoseDetectionCookie*)hCallback;
4741 PoseDetectionCookie* pPoseCookie = (PoseDetectionCookie*)hCallback;
4763 PoseInProgressCookie* pPoseCookie;
4765 pPoseCookie->handler = handler;
4766 pPoseCookie->pPoseCookie = pCookie;
4775 hCallback = pPoseCookie;
4785 PoseInProgressCookie* pPoseCookie = (PoseInProgressCookie*)hCallback;
4791 typedef struct PoseCookie
4793 PoseDetection startHandler;
4794 PoseDetection endHandler;
4799 static void XN_CALLBACK_TYPE PoseDetectionStartBundleCallback(
XnNodeHandle hNode,
const XnChar* strPose,
XnUserID user,
void* pCookie)
4801 PoseCookie* pPoseCookie = (PoseCookie*)pCookie;
4803 if (pPoseCookie->startHandler != NULL)
4805 pPoseCookie->startHandler(cap, strPose, user, pPoseCookie->pPoseCookie);
4809 static void XN_CALLBACK_TYPE PoseDetectionStartEndBundleCallback(
XnNodeHandle hNode,
const XnChar* strPose,
XnUserID user,
void* pCookie)
4811 PoseCookie* pPoseCookie = (PoseCookie*)pCookie;
4813 if (pPoseCookie->endHandler != NULL)
4815 pPoseCookie->endHandler(cap, strPose, user, pPoseCookie->pPoseCookie);
4818 typedef struct PoseDetectionCookie
4820 PoseDetection handler;
4823 } PoseDetectionCookie;
4824 static void XN_CALLBACK_TYPE PoseDetectionCallback(
XnNodeHandle hNode,
const XnChar* strPose,
XnUserID user,
void* pCookie)
4826 PoseDetectionCookie* pPoseDetectionCookie = (PoseDetectionCookie*)pCookie;
4828 if (pPoseDetectionCookie->handler != NULL)
4830 pPoseDetectionCookie->handler(cap, strPose, user, pPoseDetectionCookie->pPoseCookie);
4834 typedef struct PoseInProgressCookie
4836 PoseInProgress handler;
4839 } PoseInProgressCookie;
4843 PoseInProgressCookie* pPoseCookie = (PoseInProgressCookie*)pCookie;
4845 if (pPoseCookie->handler != NULL)
4847 pPoseCookie->handler(cap, strPose, user, poseErrors, pPoseCookie->pPoseCookie);
4887 return xnGetUsers(GetHandle(), aUsers, &nUsers);
4913 UserCookie* pUserCookie;
4915 pUserCookie->newHandler = NewUserCB;
4916 pUserCookie->lostHandler = LostUserCB;
4917 pUserCookie->pUserCookie = pCookie;
4919 nRetVal =
xnRegisterUserCallbacks(GetHandle(), NewUserCallback, LostUserCallback, pUserCookie, &pUserCookie->hCallback);
4926 hCallback = pUserCookie;
4936 UserCookie* pUserCookie = (UserCookie*)hCallback;
4988 UserSingleCookie* pUserCookie;
4990 pUserCookie->handler = handler;
4991 pUserCookie->pUserCookie = pCookie;
4993 nRetVal =
xnRegisterToUserExit(GetHandle(), UserSingleCallback, pUserCookie, &pUserCookie->hCallback);
5000 hCallback = pUserCookie;
5010 UserSingleCookie* pUserCookie = (UserSingleCookie*)hCallback;
5022 UserSingleCookie* pUserCookie;
5024 pUserCookie->handler = handler;
5025 pUserCookie->pUserCookie = pCookie;
5034 hCallback = pUserCookie;
5044 UserSingleCookie* pUserCookie = (UserSingleCookie*)hCallback;
5050 typedef struct UserCookie
5052 UserHandler newHandler;
5053 UserHandler lostHandler;
5060 UserCookie* pUserCookie = (UserCookie*)pCookie;
5062 if (pUserCookie->newHandler != NULL)
5064 pUserCookie->newHandler(gen, user, pUserCookie->pUserCookie);
5068 static void XN_CALLBACK_TYPE LostUserCallback(
XnNodeHandle hNode,
XnUserID user,
void* pCookie)
5070 UserCookie* pUserCookie = (UserCookie*)pCookie;
5072 if (pUserCookie->lostHandler != NULL)
5074 pUserCookie->lostHandler(gen, user, pUserCookie->pUserCookie);
5078 typedef struct UserSingleCookie
5080 UserHandler handler;
5085 static void XN_CALLBACK_TYPE UserSingleCallback(
XnNodeHandle hNode,
XnUserID user,
void* pCookie)
5087 UserSingleCookie* pUserCookie = (UserSingleCookie*)pCookie;
5089 if (pUserCookie->handler != NULL)
5091 pUserCookie->handler(gen, user, pUserCookie->pUserCookie);
5215 inline XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize,
const XnUInt8* pAudioBuffer)
5217 return xnMockAudioSetData(GetHandle(), nFrameID, nTimestamp, nDataSize, pAudioBuffer);
5229 return SetData(nFrameID, nTimestamp, audioMD.
DataSize(), audioMD.
Data());
5249 inline XnStatus Create(
Context& context,
const XnChar* strName = NULL);
5251 inline XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize,
const void* pData)
5253 return xnMockRawSetData(GetHandle(), nFrameID, nTimestamp, nDataSize, pData);
5289 inline XnStatus EncodeData(
const void* pSrc, XnUInt32 nSrcSize,
void* pDst, XnUInt32 nDstSize, XnUInt* pnBytesWritten)
const 5291 return xnEncodeData(GetHandle(), pSrc, nSrcSize, pDst, nDstSize, pnBytesWritten);
5297 inline XnStatus DecodeData(
const void* pSrc, XnUInt32 nSrcSize,
void* pDst, XnUInt32 nDstSize, XnUInt* pnBytesWritten)
const 5299 return xnDecodeData(GetHandle(), pSrc, nSrcSize, pDst, nDstSize, pnBytesWritten);
5375 return m_it == other.m_it;
5385 return m_it != other.m_it;
5440 m_bAllocated =
FALSE;
5449 XnBool m_bAllocated;
5464 inline Context() : m_pContext(NULL), m_bUsingDeprecatedAPI(
FALSE), m_bAllocated(
FALSE), m_hShuttingDownCallback(NULL) {}
5473 SetHandle(pContext);
5482 inline Context(
const Context& other) : m_pContext(NULL), m_bUsingDeprecatedAPI(
FALSE), m_bAllocated(
FALSE), m_hShuttingDownCallback(NULL)
5484 SetHandle(other.m_pContext);
5495 SetHandle(other.m_pContext);
5511 TakeOwnership(pContext);
5512 m_bAllocated =
TRUE;
5522 m_bUsingDeprecatedAPI =
TRUE;
5523 #pragma warning (push) 5524 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS) 5525 return xnContextRunXmlScript(m_pContext, strScript, pErrors == NULL ? NULL : pErrors->GetUnderlying());
5526 #pragma warning (pop) 5537 nRetVal =
xnContextRunXmlScriptEx(m_pContext, strScript, pErrors == NULL ? NULL : pErrors->GetUnderlying(), &hScriptNode);
5550 m_bUsingDeprecatedAPI =
TRUE;
5551 #pragma warning (push) 5552 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS) 5554 #pragma warning (pop) 5579 m_bUsingDeprecatedAPI =
TRUE;
5581 #pragma warning (push) 5582 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS) 5584 #pragma warning (pop) 5587 TakeOwnership(pContext);
5588 m_bAllocated =
TRUE;
5605 TakeOwnership(pContext);
5606 m_bAllocated =
TRUE;
5614 inline XnStatus XN_API_DEPRECATED(
"Use other overload!") OpenFileRecording(const XnChar* strFileName)
5616 m_bUsingDeprecatedAPI =
TRUE;
5617 #pragma warning (push) 5618 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS) 5620 #pragma warning (pop) 5706 inline void XN_API_DEPRECATED(
"You may use Release() instead, or count on dtor") Shutdown()
5708 if (m_pContext != NULL)
5710 #pragma warning (push) 5711 #pragma warning (disable: XN_DEPRECATED_WARNING_IDS) 5713 #pragma warning (pop) 5752 nRetVal =
xnEnumerateProductionTrees(m_pContext, Type, pInternalQuery, &pList, pErrors == NULL ? NULL : pErrors->GetUnderlying());
5770 nRetVal =
xnCreateAnyProductionTree(m_pContext, type, pInternalQuery, &hNode, pErrors == NULL ? NULL : pErrors->GetUnderlying());
5789 Tree.m_bOwnerOfNode =
TRUE;
5987 if (m_pContext == pContext)
5992 if (m_pContext != NULL)
5994 if (m_bUsingDeprecatedAPI && m_bAllocated)
6007 if (pContext != NULL)
6016 m_pContext = pContext;
6021 SetHandle(pContext);
6023 if (pContext != NULL)
6030 static void XN_CALLBACK_TYPE ContextShuttingDownCallback(
XnContext* ,
void* pCookie)
6033 pThis->m_pContext = NULL;
6037 XnBool m_bUsingDeprecatedAPI;
6038 XnBool m_bAllocated;
6067 inline Resolution(XnUInt32 xRes, XnUInt32 yRes) : m_nXRes(xRes), m_nYRes(yRes)
6093 inline const XnChar*
GetName()
const {
return m_strName; }
6099 const XnChar* m_strName;
6117 if (m_pNeededNodes == NULL)
6123 return *m_pNeededNodes;
6126 inline void NodeInfo::SetUnderlyingObject(
XnNodeInfo* pInfo)
6128 if (m_pNeededNodes != NULL)
6133 m_bOwnerOfNode =
FALSE;
6135 m_pNeededNodes = NULL;
6160 if (m_pInfo == NULL)
6162 return XN_STATUS_INVALID_OPERATION;
6185 TakeOwnership(hNode);
6194 TakeOwnership(hNode);
6203 TakeOwnership(hNode);
6212 TakeOwnership(hNode);
6221 TakeOwnership(hNode);
6232 TakeOwnership(hNode);
6241 TakeOwnership(hNode);
6250 TakeOwnership(hNode);
6261 TakeOwnership(hNode);
6270 TakeOwnership(hNode);
6279 TakeOwnership(hNode);
6290 TakeOwnership(hNode);
6299 TakeOwnership(hNode);
6309 TakeOwnership(hNode);
6318 TakeOwnership(hNode);
6327 TakeOwnership(hNode);
6336 TakeOwnership(hNode);
6345 TakeOwnership(hNode);
6356 TakeOwnership(hNode);
6365 TakeOwnership(hNode);
6374 TakeOwnership(hNode);
6388 TakeOwnership(hNode);
6415 return xnFunc(hNode, StateChangedCallback,
this, &m_hCallback);
6420 xnFunc(hNode, m_hCallback);
6430 nRetVal = pTrans->
Register(xnFunc, hNode);
6453 typedef struct StateChangeCookie
6458 } StateChangeCookie;
6460 static void XN_CALLBACK_TYPE StateChangedCallback(
XnNodeHandle hNode,
void* pCookie)
6464 pTrans->m_UserHandler(node, pTrans->m_pUserCookie);
6468 void* m_pUserCookie;
6511 #endif // __XN_CPP_WRAPPER_H__
Definition: XnTypes.h:482
const PoseDetectionCapability GetPoseDetectionCap() const
Definition: XnCppWrapper.h:4966
XN_C_API XnNodeHandle XN_C_DECL xnNodeInfoGetRefHandle(XnNodeInfo *pNodeInfo)
XN_C_API XnStatus XN_C_DECL xnContextRunXmlScriptEx(XnContext *pContext, const XnChar *xmlScript, XnEnumerationErrors *pErrors, XnNodeHandle *phScriptNode)
Runs an XML script in the given context.
XN_C_API void XN_C_DECL xnNodeInfoListFree(XnNodeInfoList *pList)
Represents an iterator over a NodeInfoList list.
Definition: XnCppWrapper.h:1409
XN_C_API XnStatus XN_C_DECL xnRegisterCalibrationCallbacks(XnNodeHandle hInstance, XnCalibrationStart CalibrationStartCB, XnCalibrationEnd CalibrationEndCB, void *pCookie, XnCallbackHandle *phCallback)
Register to calibration callbacks.
XN_C_API XnStatus XN_C_DECL xnGetVersion(XnVersion *pVersion)
XN_C_API XnStatus XN_C_DECL xnSetGeneralIntValue(XnNodeHandle hNode, const XnChar *strCap, XnInt32 nValue)
Sets the current value of this capability.
XnStatus ConvertProjectiveToRealWorld(XnUInt32 nCount, const XnPoint3D aProjective[], XnPoint3D aRealWorld[]) const
Converts a list of points from projective coordinates to real world coordinates. For full details and...
Definition: XnCppWrapper.h:3080
SkeletonCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:4071
XN_C_API const void *XN_C_DECL xnNodeInfoGetAdditionalData(XnNodeInfo *pNodeInfo)
XnStatus SetData(const IRMetaData &irMD)
Definition: XnCppWrapper.h:3439
Definition: XnCppWrapper.h:2637
XnUInt32 GetSupportedWaveOutputModesCount() const
For full details and usage, see xnGetSupportedWaveOutputModesCount
Definition: XnCppWrapper.h:5135
XnNodeHandle GetHandle() const
Gets the underlying C handle.
Definition: XnCppWrapper.h:1050
XN_C_API XnUInt32 XN_C_DECL xnGetNumberOfPoses(XnNodeHandle hInstance)
Get the number of the supported poses.
AlternativeViewPointCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:2080
XN_C_API XnUInt32 XN_C_DECL xnGetFrameID(XnNodeHandle hInstance)
Gets the frame ID of current data.
XnBool IsValid() const
TRUE if the object points to an actual node, FALSE otherwise.
Definition: XnCppWrapper.h:1073
XnStatus SetData(const ImageMetaData &imageMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
Definition: XnCppWrapper.h:3331
XnStatus RegisterToFrameSyncChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to view point changes. For full details and usage, see xnRegisterToFram...
Definition: XnCppWrapper.h:2170
void Unregister(_XnUnregisterStateChangeFuncPtr xnFunc, XnNodeHandle hNode)
Definition: XnCppWrapper.h:6418
XN_C_API void XN_C_DECL xnUnregisterFromCalibrationStart(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from calibration start callback.
XN_C_API XnBool XN_C_DECL xnCanFrameSyncWith(XnNodeHandle hInstance, XnNodeHandle hOther)
Checks if this generator can frame sync to another node.
XnStatus SetWaveOutputMode(const XnWaveOutputMode &OutputMode)
For full details and usage, see xnSetWaveOutputMode
Definition: XnCppWrapper.h:5151
XN_C_API XnStatus XN_C_DECL xnGetAllActiveGestures(XnNodeHandle hInstance, XnChar **pstrGestures, XnUInt32 nNameLength, XnUInt16 *nGestures)
Get the names of the gestures that are currently active.
XN_C_API XnStatus XN_C_DECL xnRegisterToUserReEnter(XnNodeHandle hInstance, XnUserHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when a user re-enters the scene after exiting.
XN_C_API XnStatus XN_C_DECL xnLoadScriptFromFile(XnNodeHandle hScript, const XnChar *strFileName)
XnBool NeedPoseForCalibration() const
Check if a specific pose is required for calibration. For full details and usage, see xnNeedPoseForSk...
Definition: XnCppWrapper.h:4285
#define XN_CAPABILITY_BACKLIGHT_COMPENSATION
Definition: XnTypes.h:310
XnStatus RequestCalibration(XnUserID user, XnBool bForce)
Request calibration when possible. For full details and usage, see xnRequestSkeletonCalibration ...
Definition: XnCppWrapper.h:4197
Query()
Ctor.
Definition: XnCppWrapper.h:1290
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetCreationInfo(XnNodeQuery *pQuery, const XnChar *strCreationInfo)
void GetVersion(XnVersion &Version)
For full details and usage, see xnGetVersion
Definition: XnCppWrapper.h:6399
XN_C_API XnStatus XN_C_DECL xnLockedNodeStartChanges(XnNodeHandle hInstance, XnLockHandle hLock)
Start changes request on a locked node, without releasing that lock.
SceneAnalyzer(const NodeWrapper &other)
Definition: XnCppWrapper.h:3771
XN_C_API XnBool XN_C_DECL xnIsJointAvailable(XnNodeHandle hInstance, XnSkeletonJoint eJoint)
Check if generator supports a specific joint.
XN_C_API XnStatus XN_C_DECL xnRecord(XnNodeHandle hRecorder)
Records one frame of data from each node that was added to the recorder with xnAddNodeToRecording.
XnUInt32 XnUserID
Definition: XnTypes.h:525
MockRawGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5246
XN_C_API XnStatus XN_C_DECL xnWaitAnyUpdateAll(XnContext *pContext)
Updates all generators nodes in the context, once any of them have new data.
Definition: XnTypes.h:112
XnStatus GetGlobalErrorState()
Gets the global error state of the context. If one of the nodes in the context is in error state...
Definition: XnCppWrapper.h:5923
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:2461
XN_C_API XnStatus XN_C_DECL xnCreateMockNode(XnContext *pContext, XnProductionNodeType type, const XnChar *strName, XnNodeHandle *phNode)
Creates a production node which is only a mock. This node does not represent an actual node...
SceneAnalyzer(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3770
XnStatus ClearCalibrationData(XnUInt32 nSlot)
Clear the requested slot from any saved calibration data. For full details and usage, see xnClearSkeletonCalibrationData
Definition: XnCppWrapper.h:4245
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.
GeneralIntCapability GetHueCap()
Definition: XnCppWrapper.h:2797
XnStatus SetSmoothing(XnFloat fSmoothingFactor)
Change smoothing factor. For full details and usage, see xnSetTrackingSmoothing
Definition: XnCppWrapper.h:3994
XN_C_API XnInt32 XN_C_DECL xnVersionCompare(const XnVersion *pVersion1, const XnVersion *pVersion2)
void UnregisterHandCallbacks(XnCallbackHandle hCallback)
Unregister from hands callbacks. For full details and usage, see xnUnregisterHandCallbacks ...
Definition: XnCppWrapper.h:3960
XN_C_API XnUInt32 XN_C_DECL xnGetSupportedMapOutputModesCount(XnNodeHandle hInstance)
Gets the number of supported modes. This is useful for allocating an array that will be passed to xnG...
XN_C_API XnNodeInfoListIterator XN_C_DECL xnNodeInfoListGetPrevious(XnNodeInfoListIterator it)
Definition: XnCppWrapper.h:5345
XnStatus SetData(const ImageMetaData &imageMD)
Definition: XnCppWrapper.h:3341
CroppingCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2598
XnStatus SetData(const AudioMetaData &audioMD)
Definition: XnCppWrapper.h:5237
Definition: XnCppWrapper.h:2685
XN_C_API XnStatus XN_C_DECL xnGetSkeletonJoint(XnNodeHandle hInstance, XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointTransformation *pJoint)
Get a specific joint's full information.
XnStatus SetMaxVersion(const XnVersion &maxVersion)
For full details and usage, see xnNodeQuerySetMaxVersion
Definition: XnCppWrapper.h:1339
XnStatus GetCropping(XnCropping &Cropping) const
Gets current cropping configuration. For full details and usage, see xnGetCropping ...
Definition: XnCppWrapper.h:2611
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:5642
#define XN_IS_STATUS_OK(x)
Definition: XnMacros.h:60
XnStatus AddGesture(const XnChar *strGesture, XnBoundingBox3D *pArea)
Turn on gesture. The generator will now look for this gesture. For full details and usage...
Definition: XnCppWrapper.h:3468
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a user generator. For full details and usage, see xnCreateUserGenerator
Definition: XnCppWrapper.h:6322
NodeWrapper(XnNodeHandle hNode)
Definition: XnCppWrapper.h:1026
XN_C_API XnStatus XN_C_DECL xnStopPoseDetection(XnNodeHandle hInstance, XnUserID user)
Stop detection of poses for a specific user.
XnStatus GetSkeletonJointOrientation(XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointOrientation &Joint) const
Get a specific joint's orientation. For full details and usage, see xnGetSkeletonJointOrientation ...
Definition: XnCppWrapper.h:4165
XnStatus LockForChanges(XnLockHandle *phLock)
Locks a node, not allowing any changes (any "set" function). For full details and usage...
Definition: XnCppWrapper.h:1887
XN_C_API XnStatus XN_C_DECL xnRegisterToMirrorChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to mirror changes.
XN_C_API XnStatus XN_C_DECL xnSetPowerLineFrequency(XnNodeHandle hGenerator, XnPowerLineFrequency nFrequency)
Sets the power line frequency: 50 Hz, 60 Hz, or 0 to turn off anti-flicker.
#define XN_CAPABILITY_GAMMA
Definition: XnTypes.h:308
GeneralIntCapability GetFocusCap()
Definition: XnCppWrapper.h:2927
XnStatus FrameSyncWith(Generator &other)
Activates frame sync with the other node. For full details and usage, see xnFrameSyncWith ...
Definition: XnCppWrapper.h:6143
XN_C_API XnBool XN_C_DECL xnIsGestureAvailable(XnNodeHandle hInstance, const XnChar *strGesture)
Check if a specific gesture is available in this generator.
XN_C_API XnStatus XN_C_DECL xnGetNodeErrorState(XnNodeHandle hInstance)
Gets current error state of this node.
XnStatus Error()
Gets the failure error code of the failing node this iterator points to.
Definition: XnCppWrapper.h:5410
XN_C_API XnStatus XN_C_DECL xnEnumerateProductionTrees(XnContext *pContext, XnProductionNodeType Type, const XnNodeQuery *pQuery, XnNodeInfoList **ppTreesList, XnEnumerationErrors *pErrors)
Enumerates all available production trees for a specific node type. The trees populated in the list s...
GeneralIntCapability GetSaturationCap()
Definition: XnCppWrapper.h:2807
XnBool IsDataNew() const
Checks whether current data is new. Meaning, did the data change on the last call to xnWaitAndUpdateA...
Definition: XnCppWrapper.h:2274
void UnregisterFromErrorStateChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToNodeErrorStateChange(). For full details and usage, see xnUnregisterFromNodeErrorStateChange
Definition: XnCppWrapper.h:1709
struct XnEnumerationErrors XnEnumerationErrors
Definition: XnTypes.h:214
#define XN_VALIDATE_ALLOC_PTR(x)
Definition: XnOS.h:128
XnStatus GetCalibrationPose(XnChar *strPose) const
Get the pose that is required for calibration. For full details and usage, see xnGetSkeletonCalibrati...
Definition: XnCppWrapper.h:4293
XN_C_API void XN_C_DECL xnUnregisterFromPoseCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from pose events.
XnStatus RegisterToOutOfPose(PoseDetection handler, void *pCookie, XnCallbackHandle &hCallback)
Register to callback when a use is no longer in pose. For full details and usage, see xnRegisterToOut...
Definition: XnCppWrapper.h:4710
XnStatus StopTracking(XnUserID user)
Stop tracking a skeleton. For full details and usage, see xnStopSkeletonTracking
Definition: XnCppWrapper.h:4269
const AlternativeViewPointCapability GetAlternativeViewPointCap() const
Definition: XnCppWrapper.h:2336
Resolution(XnResolution res)
Definition: XnCppWrapper.h:6054
XN_C_API XnStatus XN_C_DECL xnRegisterToCalibrationInProgress(XnNodeHandle hInstance, XnCalibrationInProgress handler, void *pCookie, XnCallbackHandle *phCallback)
Register to calibration status while calibration is in progress.
const XnGrayscale8Pixel * GetGrayscale8ImageMap() const
Gets the current Grayscale8 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in Grayscale8 pixel format. For full details and usage, see xnGetGrayscale8ImageMap
Definition: XnCppWrapper.h:3223
XN_C_API XnBool XN_C_DECL xnIsSkeletonCalibrating(XnNodeHandle hInstance, XnUserID user)
Check if skeleton is being calibrated.
XN_C_API XnNodeInfo *XN_C_DECL xnGetNodeInfo(XnNodeHandle hNode)
Gets information about a specific node, like its description, and dependent nodes.
Definition: XnTypes.h:261
XN_C_API XnStatus XN_C_DECL xnCopyImageMetaData(XnImageMetaData *pDestination, const XnImageMetaData *pSource)
Shallow-Copies an Image Meta Data object. Note that the data buffer is not copied, and that both object will point to the same buffer.
XN_C_API XnUInt64 XN_C_DECL xnGetTimestamp(XnNodeHandle hInstance)
Gets the timestamp of current data, in microseconds.
const XnChar * GetSupportedFormat()
Definition: XnCppWrapper.h:5320
GeneralIntCapability GetBrightnessCap()
Definition: XnCppWrapper.h:2777
#define XN_CAPABILITY_SHARPNESS
Definition: XnTypes.h:307
XnUInt32 GetYResolution() const
Gets the Y resolution.
Definition: XnCppWrapper.h:6091
XN_C_API XnStatus XN_C_DECL xnCreateDepthGenerator(XnContext *pContext, XnNodeHandle *phDepthGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates a depth generator.
XN_C_API XnStatus XN_C_DECL xnCopySceneMetaData(XnSceneMetaData *pDestination, const XnSceneMetaData *pSource)
Shallow-Copies a Scene Meta Data object. Note that the data buffer is not copied, and that both objec...
XN_C_API XnStatus XN_C_DECL xnRegisterGestureCallbacks(XnNodeHandle hInstance, XnGestureRecognized RecognizedCB, XnGestureProgress ProgressCB, void *pCookie, XnCallbackHandle *phCallback)
Register to all gesture callbacks.
Definition: XnCppWrapper.h:4568
XnBool GetGlobalMirror()
Gets the global mirror flag. For full details and usage, see xnGetGlobalMirror
Definition: XnCppWrapper.h:5915
const XnNodeQuery * GetUnderlyingObject() const
Gets the underlying C object.
Definition: XnCppWrapper.h:1309
void Release()
Releases a context object, decreasing its ref count by 1. If reference count has reached 0...
Definition: XnCppWrapper.h:5698
XN_C_API XnUInt32 XN_C_DECL xnGetSupportedWaveOutputModesCount(XnNodeHandle hInstance)
XnUInt32 XnLockHandle
Definition: XnTypes.h:87
void(* XnFreeHandler)(const void *pData)
Definition: XnTypes.h:242
XN_C_API const void *XN_C_DECL xnGetData(XnNodeHandle hInstance)
Gets the current data.
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6245
XnStatus AddSupportedMapOutputMode(const XnMapOutputMode &MapOutputMode)
For full details and usage, see xnNodeQueryAddSupportedMapOutputMode
Definition: XnCppWrapper.h:1355
XN_C_API void XN_C_DECL xnUnregisterFromNewDataAvailable(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToNewDataAvailable().
XnStatus EnumerateExistingNodes(NodeInfoList &list, XnProductionNodeType type) const
Gets a list of all existing node in the context. Each node that was returned increases its ref count...
Definition: XnCppWrapper.h:5827
XnStatus StopTrackingAll()
Stop tracking all hands. For full details and usage, see xnStopTrackingAll
Definition: XnCppWrapper.h:3978
#define XN_CAPABILITY_SATURATION
Definition: XnTypes.h:306
XN_C_API XnStatus XN_C_DECL xnEnumerationErrorsToString(const XnEnumerationErrors *pErrors, XnChar *csBuffer, XnUInt32 nSize)
Definition: XnTypes.h:115
XN_C_API XnStatus XN_C_DECL xnGetAllAvailablePoses(XnNodeHandle hInstance, XnChar **pstrPoses, XnUInt32 nNameLength, XnUInt32 *pnPoses)
Get the names of the supported poses.
XnBool IsMirrored() const
Gets current mirroring configuration. For full details and usage, see xnIsMirrored ...
Definition: XnCppWrapper.h:2046
XN_C_API XnStatus XN_C_DECL xnRegisterToCroppingChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to cropping changes.
XnStatus EnumerateActiveJoints(XnSkeletonJoint *pJoints, XnUInt16 &nJoints) const
Get all active joints. For full details and usage, see xnEnumerateActiveJoints
Definition: XnCppWrapper.h:4141
Definition: XnTypes.h:492
XnStatus LoadScriptFromFile(const XnChar *strFileName)
Definition: XnCppWrapper.h:5325
bool operator==(const Version &other) const
Definition: XnCppWrapper.h:88
XN_C_API void XN_C_DECL xnUnregisterFromMapOutputModeChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToMapOutputModeChange.
XnBool operator!=(const Iterator &other) const
Definition: XnCppWrapper.h:1429
XN_C_API XnStatus XN_C_DECL xnMockIRSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnIRPixel *pData)
GeneralIntCapability GetGeneralIntCap(const XnChar *strCapability)
Definition: XnCppWrapper.h:1943
XnStatus SeekToFrame(const XnChar *strNodeName, XnInt32 nFrameOffset, XnPlayerSeekOrigin origin)
Seeks the player to a specific frame of a specific played node, so that playing will continue from th...
Definition: XnCppWrapper.h:2493
AntiFlickerCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2646
XN_C_API XnStatus XN_C_DECL xnSaveSkeletonCalibrationData(XnNodeHandle hInstance, XnUserID user, XnUInt32 nSlot)
Save the calibration data.
GeneralIntCapability GetTiltCap()
Definition: XnCppWrapper.h:2877
Definition: XnTypes.h:162
XnBool IsFrameSyncedWith(Generator &other) const
Checks if current view point is as if coming from the other node view point. For full details and usa...
Definition: XnCppWrapper.h:6153
void UnregisterFromOutOfPose(XnCallbackHandle hCallback)
Unregister from out of pose callback. For full details and usage, see xnUnregisterFromOutOfPose ...
Definition: XnCppWrapper.h:4739
XnStatus ReadNext()
Reads the next data element from the player. For full details and usage, see xnPlayerReadNext ...
Definition: XnCppWrapper.h:2477
MockImageGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3297
XnStatus ResetViewPoint()
Sets the view point of this generator to its normal one. For full details and usage, see xnResetViewPoint
Definition: XnCppWrapper.h:2102
XnStatus EncodeData(const void *pSrc, XnUInt32 nSrcSize, void *pDst, XnUInt32 nDstSize, XnUInt *pnBytesWritten) const
For full details and usage, see xnEncodeData
Definition: XnCppWrapper.h:5289
XnBool IsViewPointSupported(ProductionNode &otherNode) const
Checks if this generator can change its output to look like it was taken from a different location...
Definition: XnCppWrapper.h:2086
ErrorStateCapability GetErrorStateCap()
Definition: XnCppWrapper.h:1931
XN_C_API void XN_C_DECL xnNodeQueryFree(XnNodeQuery *pQuery)
HandTouchingFOVEdgeCapability GetHandTouchingFOVEdgeCap()
Definition: XnCppWrapper.h:4014
XN_C_API XnStatus XN_C_DECL xnRegisterToMapOutputModeChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to mode changes.
const FrameSyncCapability GetFrameSyncCap() const
Definition: XnCppWrapper.h:2356
PoseDetectionCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:4577
Definition: XnCppWrapper.h:2024
XnStatus GetVendorSpecificData(XnChar *strBuffer, XnUInt32 nBufferSize)
For full details and usage, see xnGetVendorSpecificData
Definition: XnCppWrapper.h:1975
XN_C_API XnStatus XN_C_DECL xnRegisterToUserPositionChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to user position changes.
void Free()
For full details and usage, see xnEnumerationErrorsFree
Definition: XnCppWrapper.h:5434
Definition: XnCppWrapper.h:1679
XN_C_API XnStatus XN_C_DECL xnGetDepthFieldOfView(XnNodeHandle hInstance, XnFieldOfView *pFOV)
Gets the Field-Of-View of the depth generator, in radians.
void GetMetaData(SceneMetaData &metaData) const
Gets the current scene meta data. For full details and usage, see xnGetSceneMetaData ...
Definition: XnCppWrapper.h:3781
XnStatus RemoveGesture(const XnChar *strGesture)
Turn off gesture. The generator will no longer look for this gesture. For full details and usage...
Definition: XnCppWrapper.h:3476
XnStatus GetMapOutputMode(XnMapOutputMode &OutputMode) const
Gets the current output mode. For full details and usage, see xnGetMapOutputMode
Definition: XnCppWrapper.h:2723
XN_C_API XnStatus XN_C_DECL xnCreateSceneAnalyzer(XnContext *pContext, XnNodeHandle *phSceneAnalyzer, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an scene analyzer.
XnStatus StopTracking(XnUserID user)
Stop tracking a specific hand. For full details and usage, see xnStopTracking
Definition: XnCppWrapper.h:3970
Iterator & operator++()
Definition: XnCppWrapper.h:1438
ImageGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3189
XnPlayerSeekOrigin
Definition: XnTypes.h:510
XN_C_API XnStatus XN_C_DECL xnRegisterToNewDataAvailable(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to be called when new data is available.
XnStatus Append(NodeInfoList &other)
For full details and usage, see xnNodeInfoListAppend
Definition: XnCppWrapper.h:1622
XnStatus Record()
Records one frame of data from each node that was added to the recorder with xnAddNodeToRecording. For full details and usage, see xnRecord
Definition: XnCppWrapper.h:2424
XN_C_API void XN_C_DECL xnUnregisterFromWaveOutputModeChanges(XnNodeHandle hInstance, XnCallbackHandle hCallback)
XN_C_API XnStatus XN_C_DECL xnSetPlaybackSpeed(XnNodeHandle hInstance, XnDouble dSpeed)
Sets the playback speed, as a ratio of the time passed in the recording. A value of 1...
XN_C_API XnStatus XN_C_DECL xnCreateCodec(XnContext *pContext, XnCodecID codecID, XnNodeHandle hInitializerNode, XnNodeHandle *phCodec)
XN_C_API XnStatus XN_C_DECL xnGetPlayerNumFrames(XnNodeHandle hPlayer, const XnChar *strNodeName, XnUInt32 *pnFrames)
Retrieves the number of frames of a specific node played by a player.
#define XN_STATUS_OK
Definition: XnStatus.h:37
void UnregisterFromGestureChange(XnCallbackHandle hCallback)
Unregister from when gestures are added or removed. For full details and usage, see xnUnregisterFromG...
Definition: XnCppWrapper.h:3604
XN_C_API void XN_C_DECL xnUnregisterFromViewPointChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToViewPointChange().
CroppingCapability GetCroppingCap()
Definition: XnCppWrapper.h:2767
XN_C_API XnStatus XN_C_DECL xnRegisterToGestureReadyForNextIntermediateStage(XnNodeHandle hInstance, XnGestureReadyForNextIntermediateStage handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when a gesture is ready for its next stage (specific to the gesture)
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetExistingNodeOnly(XnNodeQuery *pQuery, XnBool bExistingNode)
XN_C_API XnStatus XN_C_DECL xnCreateProductionTree(XnContext *pContext, XnNodeInfo *pTree, XnNodeHandle *phNode)
Creates a production node. If the tree specifies additional needed nodes, and those nodes do not exis...
XN_C_API XnBool XN_C_DECL xnIsPoseSupported(XnNodeHandle hInstance, const XnChar *strPose)
Tests if a pose is supported.
XnStatus AddSupportedCapability(const XnChar *strNeededCapability)
For full details and usage, see xnNodeQueryAddSupportedCapability
Definition: XnCppWrapper.h:1347
const XnUInt8 * GetImageMap() const
Gets the current image-map as a byte buffer. For full details, see xnGetImageMap().
Definition: XnCppWrapper.h:3239
XN_C_API XnStatus XN_C_DECL xnScriptNodeRun(XnNodeHandle hScript, XnEnumerationErrors *pErrors)
Device(const NodeWrapper &other)
Definition: XnCppWrapper.h:2002
Iterator RBegin() const
Gets an iterator to the last item in the list.
Definition: XnCppWrapper.h:1591
void UnregisterFromFieldOfViewChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToDepthFieldOfViewChange. For full details and usage, see xnUnregisterFromDepthFieldOfViewChange
Definition: XnCppWrapper.h:3072
XN_C_API void XN_C_DECL xnProductionNodeRelease(XnNodeHandle hNode)
Unreference a production node, decreasing its reference count by 1. If the reference count reaches ze...
void UnregisterUserCallbacks(XnCallbackHandle hCallback)
Unregister from user callbacks. For full details and usage, see xnUnregisterUserCallbacks ...
Definition: XnCppWrapper.h:4934
XN_C_API XnBool XN_C_DECL xnIsGenerating(XnNodeHandle hInstance)
Checks if this node is currently generating.
~EnumerationErrors()
Dtor.
Definition: XnCppWrapper.h:5360
Definition: XnTypes.h:151
XN_C_API XnStatus XN_C_DECL xnEnumerationErrorsAllocate(XnEnumerationErrors **ppErrors)
XN_C_API XnStatus XN_C_DECL xnGetMapOutputMode(XnNodeHandle hInstance, XnMapOutputMode *pOutputMode)
Gets the current output mode.
MockIRGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3396
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:5979
void UnregisterFromJointConfigurationChange(XnCallbackHandle hCallback)
Unregister from joint configuration changes. For full details and usage, see xnUnregisterFromJointCon...
Definition: XnCppWrapper.h:4133
XN_C_API XnStatus XN_C_DECL xnMockDepthSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnDepthPixel *pData)
XN_C_API void XN_C_DECL xnUnregisterFromUserReEnter(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from when a user re-enters the scene.
Definition: XnCppWrapper.h:6408
GeneralIntCapability GetExposureCap()
Definition: XnCppWrapper.h:2907
void SetHandle(XnNodeHandle hNode)
Replaces the object being pointed.
Definition: XnCppWrapper.h:1097
XnUInt8 XnGrayscale8Pixel
Definition: XnTypes.h:278
XnBool IsViewPointAs(ProductionNode &otherNode) const
Checks if current view point is as if coming from the other node view point. For full details and usa...
Definition: XnCppWrapper.h:2110
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6216
XnRecordMedium
Definition: XnTypes.h:811
XnStatus StopGeneratingAll()
Stop all generators from generating data. For full details and usage, see xnStopGeneratingAll ...
Definition: XnCppWrapper.h:5899
XnStatus RegisterToMirrorChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to mirror changes. For full details and usage, see xnRegisterToMirrorCh...
Definition: XnCppWrapper.h:2054
const CroppingCapability GetCroppingCap() const
Definition: XnCppWrapper.h:2757
Codec(const NodeWrapper &other)
Definition: XnCppWrapper.h:5271
XnStatus UnregisterFromCalibrationStart(XnCallbackHandle hCallback)
Unregister from calibration start callback. For full details and usage, see xnUnregisterFromCalibrati...
Definition: XnCppWrapper.h:4391
Definition: XnCppWrapper.h:5262
XN_C_API XnStatus XN_C_DECL xnEnumerationErrorsGetCurrentError(XnEnumerationErrorsIterator it)
GeneralIntCapability GetContrastCap()
Definition: XnCppWrapper.h:2787
XnStatus Reset(XnUserID user)
Reset the skeleton - discard calibration. For full details and usage, see xnResetSkeleton ...
Definition: XnCppWrapper.h:4277
XnEnumerationErrors * GetUnderlying()
Gets the underlying C object.
Definition: XnCppWrapper.h:5445
XN_C_API XnStatus XN_C_DECL xnStopTrackingAll(XnNodeHandle hInstance)
Stop tracking all hands.
#define XN_CAPABILITY_EXPOSURE
Definition: XnTypes.h:316
MirrorCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:2032
XnPoseDetectionStatus
Definition: XnTypes.h:642
XN_C_API XnStatus XN_C_DECL xnContextOpenFileRecording(XnContext *pContext, const XnChar *strFileName)
Opens a recording file, adding all nodes in it to the context. NOTE: when using this function...
XN_C_API XnStatus XN_C_DECL xnRegisterToPoseCallbacks(XnNodeHandle hInstance, XnPoseDetectionCallback PoseDetectionStartCB, XnPoseDetectionCallback PoseDetectionEndCB, void *pCookie, XnCallbackHandle *phCallback)
Register to callbacks for pose events.
XN_C_API XnPowerLineFrequency XN_C_DECL xnGetPowerLineFrequency(XnNodeHandle hGenerator)
Gets the power line frequency.
DeviceIdentificationCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:1962
XN_C_API XnUInt16 XN_C_DECL xnGetNumberOfUsers(XnNodeHandle hInstance)
Get current number of users.
#define XN_CAPABILITY_COLOR_TEMPERATURE
Definition: XnTypes.h:309
XnUInt16 GetNumberOfUsers() const
Get current number of users. For full details and usage, see xnGetNumberOfUsers
Definition: XnCppWrapper.h:4877
XN_C_API XnStatus XN_C_DECL xnInitFromXmlFileEx(const XnChar *strFileName, XnContext **ppContext, XnEnumerationErrors *pErrors, XnNodeHandle *phScriptNode)
Initializes OpenNI context, and then configures it using the given file.
XnUInt16 XnGrayscale16Pixel
Definition: XnTypes.h:281
XnUInt32 GetDataSize() const
Gets the size of current data, in bytes. For full details and usage, see xnGetDataSize ...
Definition: XnCppWrapper.h:2290
Iterator REnd() const
Gets an iterator marking the start of the list. This iterator does not point to a valid item...
Definition: XnCppWrapper.h:1597
Iterator Begin() const
Gets an iterator to the first item in the list.
Definition: XnCppWrapper.h:5419
Definition: XnTypes.h:192
XN_C_API void XN_C_DECL xnUnregisterFromGenerationRunningChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGenerationRunningChange().
XN_C_API XnStatus XN_C_DECL xnGetSkeletonCalibrationPose(XnNodeHandle hInstance, XnChar *strPose)
Get the pose that is required for calibration.
XN_C_API void XN_C_DECL xnGetDepthMetaData(XnNodeHandle hInstance, XnDepthMetaData *pMetaData)
Gets the current depth-map meta data.
XnUInt32 GetXResolution() const
Gets the X resolution.
Definition: XnCppWrapper.h:6089
XN_C_API void XN_C_DECL xnUnregisterFromCroppingChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToCroppingChange().
XN_C_API XnStatus XN_C_DECL xnStopSkeletonTracking(XnNodeHandle hInstance, XnUserID user)
Stop tracking a skeleton.
XnStatus EnumerateGestures(XnChar *&astrGestures, XnUInt16 &nGestures) const
Get the names of all gestures available. For full details and usage, see xnEnumerateGestures ...
Definition: XnCppWrapper.h:3500
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 XnStatus XN_C_DECL xnRegisterToCalibrationStart(XnNodeHandle hInstance, XnCalibrationStart handler, void *pCookie, XnCallbackHandle *phCallback)
Register to calibration start callback.
const XnChar * GetCreationInfo() const
For full details and usage, see xnNodeInfoGetCreationInfo
Definition: XnCppWrapper.h:1233
AntiFlickerCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:2645
XnStatus Set(XnInt32 nValue)
Sets the current value of this capability. For full details and usage, see xnSetGeneralIntValue ...
Definition: XnCppWrapper.h:1752
XnStatus RegisterToUserExit(UserHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when the user exits the scene (but not lost yet) For full details and usage...
Definition: XnCppWrapper.h:4984
~Context()
Dtor.
Definition: XnCppWrapper.h:5488
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnUInt8 *pImageMap)
For full details and usage, see xnMockImageSetData
Definition: XnCppWrapper.h:3319
XN_C_API XnStatus XN_C_DECL xnWaitOneUpdateAll(XnContext *pContext, XnNodeHandle hNode)
Updates all generators nodes in the context, waiting for a specific one to have new data...
XnStatus RegisterToHandTouchingFOVEdge(HandTouchingFOVEdge handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when a hand is approaching the edge of the FOV. For full details and usage, see xnRegisterToHandTouchingFOVEdge
Definition: XnCppWrapper.h:3832
XnStatus AbortCalibration(XnUserID user)
stop calibration For full details and usage, see xnAbortSkeletonCalibration
Definition: XnCppWrapper.h:4205
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const void *pData)
Definition: XnCppWrapper.h:5251
void GetContext(Context &context) const
For full details and usage, see xnGetContextFromNodeHandle
Definition: XnCppWrapper.h:6110
XnStatus GetInstance(ProductionNode &node) const
Definition: XnCppWrapper.h:6158
AlternativeViewPointCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2081
XnStatus SetData(const DepthMetaData &depthMD)
Definition: XnCppWrapper.h:3170
~NodeInfo()
Dtor.
Definition: XnCppWrapper.h:1184
XN_C_API XnStatus XN_C_DECL xnAddNeededNode(XnNodeHandle hInstance, XnNodeHandle hNeededNode)
Adds another node to the list of needed nodes for this node.
XN_C_API XnStatus XN_C_DECL xnSetGlobalMirror(XnContext *pContext, XnBool bMirror)
Sets the global mirror flag. This will set all current existing nodes' mirror state, and also affect future created nodes. The default mirror flag is FALSE.
XnStatus RegisterToWaveOutputModeChanges(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
For full details and usage, see xnRegisterToWaveOutputModeChanges
Definition: XnCppWrapper.h:5167
XN_C_API XnStatus XN_C_DECL xnFindExistingRefNodeByType(XnContext *pContext, XnProductionNodeType type, XnNodeHandle *phNode)
Returns the first found existing node of the specified type.
XnUInt16 GetNumberOfAvailableGestures() const
Get the number of all gestures available. For full details and usage, see xnGetNumberOfAvailableGestu...
Definition: XnCppWrapper.h:3508
XN_C_API XnStatus XN_C_DECL xnLockedNodeEndChanges(XnNodeHandle hInstance, XnLockHandle hLock)
Ends changes request on a locked node.
XnStatus RemoveNodeFromRecording(ProductionNode &Node)
Removes node from recording and stop recording it. This function can be called on a node that was add...
Definition: XnCppWrapper.h:2416
const SkeletonCapability GetSkeletonCap() const
Definition: XnCppWrapper.h:4946
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 XnStatus XN_C_DECL xnGetAvailablePoses(XnNodeHandle hInstance, XnChar **pstrPoses, XnUInt32 *pnPoses)
Get the names of the supported poses.
XN_C_API XnStatus XN_C_DECL xnAddGesture(XnNodeHandle hInstance, const XnChar *strGesture, XnBoundingBox3D *pArea)
Turn on gesture. The generator will now look for this gesture.
Definition: XnCppWrapper.h:3807
XnPowerLineFrequency
Definition: XnTypes.h:517
XnStatus ToString(XnChar *csBuffer, XnUInt32 nSize)
For full details and usage, see xnEnumerationErrorsToString
Definition: XnCppWrapper.h:5426
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:2651
GeneralIntCapability GetWhiteBalanceCap()
Definition: XnCppWrapper.h:2837
XN_C_API XnBool XN_C_DECL xnIsViewPointAs(XnNodeHandle hInstance, XnNodeHandle hOther)
Checks if current view point is as if coming from the other node view point.
XN_C_API XnYUV422DoublePixel *XN_C_DECL xnGetYUV422ImageMap(XnNodeHandle hInstance)
Gets the current YUV422 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in YUV422 pixel format.
SkeletonCapability GetSkeletonCap()
Definition: XnCppWrapper.h:4956
#define XN_CAPABILITY_FOCUS
Definition: XnTypes.h:318
XN_C_API XnStatus XN_C_DECL xnStopGeneratingAll(XnContext *pContext)
Stop all generators from generating data.
XN_C_API XnBool XN_C_DECL xnIsMirrored(XnNodeHandle hInstance)
Gets current mirroring configuration.
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates an hands generator. For full details and usage, see xnCreateHandsGenerator ...
Definition: XnCppWrapper.h:6313
XN_C_API XnStatus XN_C_DECL xnGetUserCoM(XnNodeHandle hInstance, XnUserID user, XnPoint3D *pCoM)
Get the center of mass of a user.
XN_C_API XnStatus XN_C_DECL xnAddLicense(XnContext *pContext, const XnLicense *pLicense)
XN_C_API XnUInt32 XN_C_DECL xnGetSupportedUserPositionsCount(XnNodeHandle hInstance)
Gets the number of user positions supported by this generator.
XnStatus StartPoseDetection(const XnChar *strPose, XnUserID user)
Start detection of a specific pose for a specific user. For full details and usage, see xnStartPoseDetection
Definition: XnCppWrapper.h:4625
#define XN_VALIDATE_NEW(ptr, type,...)
Definition: XnOS.h:168
XnStatus RegisterToCroppingChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to cropping changes. For full details and usage, see xnRegisterToCroppi...
Definition: XnCppWrapper.h:2619
const void * GetAdditionalData() const
For full details and usage, see xnNodeInfoGetAdditionalData
Definition: XnCppWrapper.h:1255
Definition: XnTypes.h:568
MockIRGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3397
XN_C_API XnUInt16 XN_C_DECL xnGetNumberOfAvailableGestures(XnNodeHandle hInstance)
Get the number of all gestures available.
XnBool operator==(const NodeWrapper &other)
Definition: XnCppWrapper.h:1057
XN_C_API XnStatus xnContextRunXmlScriptFromFile(XnContext *pContext, const XnChar *strFileName, XnEnumerationErrors *pErrors)
Runs an XML script in the given context. NOTE: when using this function, the context will be the owne...
XnStatus StartGeneratingAll()
Make sure all generators are generating data. For full details and usage, see xnStartGeneratingAll ...
Definition: XnCppWrapper.h:5891
HandsGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3893
AudioGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:5109
XnStatus SetMirror(XnBool bMirror)
Sets current mirror configuration. For full details and usage, see xnSetMirror
Definition: XnCppWrapper.h:2038
XN_C_API XnRGB24Pixel *XN_C_DECL xnGetRGB24ImageMap(XnNodeHandle hInstance)
Gets the current RGB24 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in RGB24 pixel format.
XN_C_API void XN_C_DECL xnUnregisterHandCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from hands callbacks.
XN_C_API XnStatus XN_C_DECL xnSetPlayerRepeat(XnNodeHandle hPlayer, XnBool bRepeat)
Determines whether the player will automatically rewind to the beginning of the recording when reachi...
void SetHandle(XnContext *pContext)
Replaces the underlying C object pointed to by this object.
Definition: XnCppWrapper.h:5985
Definition: XnTypes.h:465
XnStatus SetSupportedMinUserPositions(const XnUInt32 nCount)
For full details and usage, see xnNodeQuerySetSupportedMinUserPositions
Definition: XnCppWrapper.h:1363
MockAudioGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5193
XnStatus Create(Context &context, XnCodecID codecID, ProductionNode &initializerNode)
For full details and usage, see xnCreateCodec
Definition: XnCppWrapper.h:6369
XN_C_API XnStatus XN_C_DECL xnConvertProjectiveToRealWorld(XnNodeHandle hInstance, XnUInt32 nCount, const XnPoint3D *aProjective, XnPoint3D *aRealWorld)
Converts a list of points from projective coordinates to real world coordinates.
const void * GetData()
Gets the current data. For full details and usage, see xnGetData
Definition: XnCppWrapper.h:2282
XN_C_API XnStatus XN_C_DECL xnRegisterToGlobalErrorStateChange(XnContext *pContext, XnErrorStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to global error state changes.
XnStatus GetNumFrames(const XnChar *strNodeName, XnUInt32 &nFrames) const
Retrieves the number of frames of a specific node played by a player. For full details and usage...
Definition: XnCppWrapper.h:2517
XN_C_API XnStatus XN_C_DECL xnSetCropping(XnNodeHandle hInstance, const XnCropping *pCropping)
Sets the cropping.
XN_C_API void XN_C_DECL xnContextUnregisterFromShutdown(XnContext *pContext, XnCallbackHandle hCallback)
Unregisters from context shutting down event. This function is used for backwards compatibility and s...
XN_C_API XnStatus XN_C_DECL xnRegisterToWaveOutputModeChanges(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
XN_C_API XnStatus XN_C_DECL xnRegisterToNodeErrorStateChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to error state changes.
XnStatus GetDeviceName(XnChar *strBuffer, XnUInt32 nBufferSize)
For full details and usage, see xnGetDeviceName
Definition: XnCppWrapper.h:1967
XN_C_API const XnProductionNodeDescription *XN_C_DECL xnEnumerationErrorsGetCurrentDescription(XnEnumerationErrorsIterator it)
XnBool IsCalibrated(XnUserID user) const
Check if skeleton is being calibrated. For full details and usage, see xnIsSkeletonCalibrated ...
Definition: XnCppWrapper.h:4181
XN_C_API const XnChar *XN_C_DECL xnGetPlayerSupportedFormat(XnNodeHandle hPlayer)
Gets the name of the format supported by a player.
XnNodeQuery * GetUnderlyingObject()
Definition: XnCppWrapper.h:1310
XN_C_API XnStatus XN_C_DECL xnSetUserPosition(XnNodeHandle hInstance, XnUInt32 nIndex, const XnBoundingBox3D *pPosition)
Sets the current user position.
XN_C_API void XN_C_DECL xnGetIRMetaData(XnNodeHandle hInstance, XnIRMetaData *pMetaData)
Gets the current IR-map meta data.
XnUInt32 XnStatus
Definition: XnStatus.h:34
XN_C_API XnBool XN_C_DECL xnIsNewDataAvailable(XnNodeHandle hInstance, XnUInt64 *pnTimestamp)
Checks whether this node has new data (and so a call to xnWaitAndUpdateData() will not block)...
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a depth generator. For full details and usage, see xnCreateDepthGenerator ...
Definition: XnCppWrapper.h:6207
XN_C_API XnStatus XN_C_DECL xnRegisterToJointConfigurationChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Register to joint configuration changes - when joints are activated and deactivated.
Definition: XnCppWrapper.h:4856
void UnregisterFromValueChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGeneralIntValueChange(). For full details and usage, see xnUnregisterFromGeneralIntValueChange
Definition: XnCppWrapper.h:6501
void UnregisterFromUserExit(XnCallbackHandle hCallback)
Unregister from when a user exits the scene. For full details and usage, see xnUnregisterFromUserExit...
Definition: XnCppWrapper.h:5008
XN_C_API XnBool XN_C_DECL xnNodeInfoListIsEmpty(XnNodeInfoList *pList)
XnStatus StartTracking(const XnPoint3D &ptPosition)
Start tracking at a specific position. For full details and usage, see xnStartTracking ...
Definition: XnCppWrapper.h:3986
XN_C_API XnStatus XN_C_DECL xnRemoveNodeFromRecording(XnNodeHandle hRecorder, XnNodeHandle hNode)
Removes node from recording and stop recording it. This function can be called on a node that was add...
XN_C_API XnBool XN_C_DECL xnNodeInfoListIteratorIsValid(XnNodeInfoListIterator it)
XN_C_API XnStatus XN_C_DECL xnAbortSkeletonCalibration(XnNodeHandle hInstance, XnUserID user)
stop calibration
XnStatus RegisterToValueChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to values changes. For full details and usage, see xnRegisterToGeneralI...
Definition: XnCppWrapper.h:6482
PoseDetectionCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:4576
XnStatus GetProductionNodeInfoByName(const XnChar *strInstanceName, NodeInfo &nodeInfo) const
For full details and usage, see xnGetNodeHandleByName
Definition: XnCppWrapper.h:5873
XN_C_API XnStatus XN_C_DECL xnLoadSkeletonCalibrationDataFromFile(XnNodeHandle hInstance, XnUserID user, const XnChar *strFileName)
Load previously saved calibration data from file.
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAppend(XnNodeInfoList *pList, XnNodeInfoList *pOther)
Definition: XnTypes.h:495
FrameSyncCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2145
XN_C_API void XN_C_DECL xnOSFreeAligned(const void *pMemBlock)
const XnDepthPixel * GetDepthMap() const
Gets the current depth-map. This map is updated after a call to xnWaitAndUpdateData(). For full details and usage, see xnGetDepthMap
Definition: XnCppWrapper.h:3040
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6360
UserPositionCapability GetUserPositionCap()
Definition: XnCppWrapper.h:3108
XnStatus Create(Context &context, const XnChar *strFormatName)
Creates a player. For full details and usage, see xnCreatePlayer
Definition: XnCppWrapper.h:6198
XnStatus RegisterToPowerLineFrequencyChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to power line frequency changes. For full details and usage...
Definition: XnCppWrapper.h:2667
StateChangedCallbackTranslator(StateChangedHandler handler, void *pCookie)
Definition: XnCppWrapper.h:6411
MirrorCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2033
XnUInt32 GetSupportedMapOutputModesCount() const
Gets the number of supported modes. This is useful for allocating an array that will be passed to xnG...
Definition: XnCppWrapper.h:2699
XnStatus GetGeneralProperty(const XnChar *strName, XnUInt32 nBufferSize, void *pBuffer) const
Gets a buffer property. For full details and usage, see xnGetGeneralProperty
Definition: XnCppWrapper.h:1879
XN_C_API void XN_C_DECL xnEnumerationErrorsFree(const XnEnumerationErrors *pErrors)
const XnIRPixel * GetIRMap() const
Gets the current IR-map. This map is updated after a call to xnWaitAndUpdateData(). For full details and usage, see xnGetIRMap
Definition: XnCppWrapper.h:3378
XnStatus RegisterToPixelFormatChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to pixel format changes. For full details and usage, see xnRegisterToPixelFormatChange
Definition: XnCppWrapper.h:3271
#define XN_CAPABILITY_LOW_LIGHT_COMPENSATION
Definition: XnTypes.h:319
XnStatus LockedNodeStartChanges(XnLockHandle hLock)
Start changes request on a locked node, without releasing that lock. For full details and usage...
Definition: XnCppWrapper.h:1903
~NodeWrapper()
Definition: XnCppWrapper.h:1042
NodeInfo operator*()
Gets the NodeInfo object pointed by the iterator.
Definition: XnCppWrapper.h:1475
XN_C_API XnStatus XN_C_DECL xnNodeQueryFilterList(XnContext *pContext, const XnNodeQuery *pQuery, XnNodeInfoList *pList)
const XnChar * GetInstanceName() const
For full details and usage, see xnNodeInfoGetInstanceName()
Definition: XnCppWrapper.h:1225
XN_C_API void XN_C_DECL xnUnregisterFromGestureChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from when gestures are added or removed.
XN_C_API XnStatus XN_C_DECL xnRegisterToDepthFieldOfViewChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to field of view changes.
UserGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:4864
XN_C_API XnStatus XN_C_DECL xnGetIntProperty(XnNodeHandle hInstance, const XnChar *strName, XnUInt64 *pnValue)
Gets an integer property.
Iterator operator--(int)
Definition: XnCppWrapper.h:1467
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates an image generator. For full details and usage, see xnCreateImageGenerator ...
Definition: XnCppWrapper.h:6236
XnStatus SetIntProperty(const XnChar *strName, XnUInt64 nValue)
Sets an integer property. For full details and usage, see xnSetIntProperty
Definition: XnCppWrapper.h:1823
const XnChar * GetName() const
Gets the instance name of a node by its handle. For full details and usage, see xnGetNodeName() ...
Definition: XnCppWrapper.h:1078
XN_C_API XnStatus XN_C_DECL xnGetSupportedMapOutputModes(XnNodeHandle hInstance, XnMapOutputMode *aModes, XnUInt32 *pnCount)
Gets a list of all supported modes. The size of the array that should be passed can be obtained by ca...
XN_C_API XnStatus XN_C_DECL xnRegisterToPoseDetectionInProgress(XnNodeHandle hInstance, XnPoseDetectionInProgress handler, void *pCookie, XnCallbackHandle *phCallback)
Register to callback for status when pose is detected.
XN_C_API XnBool XN_C_DECL xnIsFrameSyncedWith(XnNodeHandle hInstance, XnNodeHandle hOther)
Checks if current view point is as if coming from the other node view point.
XnStatus GetUserPosition(XnUInt32 nIndex, XnBoundingBox3D &Position) const
Gets the current user position. For full details and usage, see xnGetUserPosition ...
Definition: XnCppWrapper.h:2987
XnStatus LoadCalibrationData(XnUserID user, XnUInt32 nSlot)
Load previously saved calibration data. For full details and usage, see xnLoadSkeletonCalibrationData...
Definition: XnCppWrapper.h:4237
XN_C_API XnStatus XN_C_DECL xnStopGenerating(XnNodeHandle hInstance)
Stops generation of the output.
XN_C_API XnStatus XN_C_DECL xnNodeInfoSetInstanceName(XnNodeInfo *pNodeInfo, const XnChar *strInstanceName)
Definition: XnCppWrapper.h:3762
XN_C_API XnPixelFormat XN_C_DECL xnGetPixelFormat(XnNodeHandle hInstance)
Gets current pixel format.
XnStatus GetUsers(XnUserID aUsers[], XnUInt16 &nUsers) const
Get the current users. For full details and usage, see xnGetUsers
Definition: XnCppWrapper.h:4885
XnUInt16 XnDepthPixel
Definition: XnTypes.h:255
XnStatus GetUserPixels(XnUserID user, SceneMetaData &smd) const
Get the pixels that belong to a user. For full details and usage, see xnGetUserPixels ...
Definition: XnCppWrapper.h:4901
XnStatus Register(_XnRegisterStateChangeFuncPtr xnFunc, XnNodeHandle hNode)
Definition: XnCppWrapper.h:6413
XN_C_API void XN_C_DECL xnUnregisterGestureCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from gesture callbacks.
XN_C_API XnStatus XN_C_DECL xnContextAddRef(XnContext *pContext)
Adds a reference to the context object.
Definition: XnCppWrapper.h:3885
#define XN_VALIDATE_ALLOC(x, y)
Definition: XnOS.h:131
XnInt32 Get()
Gets the current value of this capability. For full details and usage, see xnGetGeneralIntValue ...
Definition: XnCppWrapper.h:1742
XnStatus CreateCodec(XnCodecID codecID, ProductionNode &initializerNode, Codec &codec)
For full details and usage, see xnCreateCodec
Definition: XnCppWrapper.h:5674
XnUInt32 GetFrameID() const
Gets the frame ID of current data. For full details and usage, see xnGetFrameID
Definition: XnCppWrapper.h:2306
XN_C_API XnStatus XN_C_DECL xnGetSerialNumber(XnNodeHandle hInstance, XnChar *strBuffer, XnUInt32 *pnBufferSize)
XnBool IsNewDataAvailable(XnUInt64 *pnTimestamp=NULL) const
Checks whether this node has new data (and so a call to xnWaitAndUpdateData() will not block)...
Definition: XnCppWrapper.h:2258
XnStatus GetDestination(XnRecordMedium &destType, XnChar *strDest, XnUInt32 nBufSize)
Definition: XnCppWrapper.h:2400
XnStatus GetSkeletonJointPosition(XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointPosition &Joint) const
Get a specific joint's position. For full details and usage, see xnGetSkeletonJointPosition ...
Definition: XnCppWrapper.h:4157
XN_C_API XnBool XN_C_DECL xnIsPixelFormatSupported(XnNodeHandle hInstance, XnPixelFormat Format)
Checks if a specific pixel format is supported.
Definition: XnCppWrapper.h:3118
XN_C_API XnStatus XN_C_DECL xnAutoEnumerateOverSingleInput(XnContext *pContext, XnNodeInfoList *pList, XnProductionNodeDescription *pDescription, const XnChar *strCreationInfo, XnProductionNodeType InputType, XnEnumerationErrors *pErrors, XnNodeQuery *pQuery)
EnumerationErrors(XnEnumerationErrors *pErrors, XnBool bOwn=FALSE)
Definition: XnCppWrapper.h:5357
XN_C_API void XN_C_DECL xnUnregisterFromDepthFieldOfViewChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToDepthFieldOfViewChange.
XN_C_API XnCodecID XN_C_DECL xnGetCodecID(XnNodeHandle hCodec)
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnUInt8 *pAudioBuffer)
For full details and usage, see xnMockAudioSetData
Definition: XnCppWrapper.h:5215
XN_C_API XnStatus XN_C_DECL xnUnlockNodeForChanges(XnNodeHandle hInstance, XnLockHandle hLock)
Unlocks a previously locked node.
XnStatus CreateBasedOn(DepthGenerator &other, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6225
XN_C_API XnStatus XN_C_DECL xnSetMirror(XnNodeHandle hInstance, XnBool bMirror)
Sets current mirror configuration.
XnInt32 XnProductionNodeType
Definition: XnTypes.h:92
XnStatus SetPixelFormat(XnPixelFormat Format)
Sets the pixel format of the image map. For full details and usage, see xnSetPixelFormat ...
Definition: XnCppWrapper.h:3255
XnStatus GetSource(XnRecordMedium &sourceType, XnChar *strSource, XnUInt32 nBufSize) const
Gets the player's source, i.e where the played events come from. For full details and usage...
Definition: XnCppWrapper.h:2469
XnStatus ConvertRealWorldToProjective(XnUInt32 nCount, const XnPoint3D aRealWorld[], XnPoint3D aProjective[]) const
Converts a list of points from projective coordinates to real world coordinates. For full details and...
Definition: XnCppWrapper.h:3088
AntiFlickerCapability GetAntiFlickerCap()
Definition: XnCppWrapper.h:2947
XnStatus CreateProductionTree(NodeInfo &Tree, ProductionNode &node)
Creates a production node. If the tree specifies additional needed nodes, and those nodes do not exis...
Definition: XnCppWrapper.h:5797
XN_C_API XnStatus XN_C_DECL xnGetSkeletonJointOrientation(XnNodeHandle hInstance, XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointOrientation *pJoint)
Get a specific joint's orientation.
XN_C_API XnStatus XN_C_DECL xnSetMapOutputMode(XnNodeHandle hInstance, const XnMapOutputMode *pOutputMode)
Sets the output mode.
XN_C_API void XN_C_DECL xnUnregisterFromUserExit(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from when a user exits the scene.
XN_C_API XnStatus XN_C_DECL xnRegisterToEndOfFileReached(XnNodeHandle hPlayer, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to be called when end-of-file is reached.
XN_C_API XnStatus XN_C_DECL xnClearSkeletonCalibrationData(XnNodeHandle hInstance, XnUInt32 nSlot)
Clear the requested slot from any saved calibration data.
XN_C_API XnBool XN_C_DECL xnIsCapabilitySupported(XnNodeHandle hInstance, const XnChar *strCapabilityName)
Checks if a production node supports specific capability.
XN_C_API void XN_C_DECL xnGetAudioMetaData(XnNodeHandle hInstance, XnAudioMetaData *pMetaData)
Gets the current audio meta data.
MockAudioGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:5194
XN_C_API XnStatus XN_C_DECL xnRegisterToPowerLineFrequencyChange(XnNodeHandle hGenerator, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to power line frequency changes.
XnBool IsCapabilitySupported(const XnChar *strCapabilityName) const
Checks if a production node supports specific capability. For full details and usage, see xnIsCapabilitySupported
Definition: XnCppWrapper.h:1815
MockImageGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3298
XN_C_API XnIRPixel *XN_C_DECL xnGetIRMap(XnNodeHandle hInstance)
Gets the current IR-map. This map is updated after a call to xnWaitAndUpdateData().
Recorder(const NodeWrapper &other)
Definition: XnCppWrapper.h:2385
XnStatus WaitAndUpdateData()
Updates the data to the latest available one. If needed, the call will block until new data is availa...
Definition: XnCppWrapper.h:2266
GeneralIntCapability(XnNodeHandle hNode, const XnChar *strCap)
Definition: XnCppWrapper.h:1728
Definition: XnTypes.h:444
void(* XnErrorStateChangedHandler)(XnStatus errorState, void *pCookie)
Definition: XnTypes.h:235
struct XnInternalNodeData * XnNodeHandle
Definition: XnTypes.h:82
XnStatus RegisterToGestureChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when gestures are added or removed. For full details and usage, see xnRegisterToGestureCh...
Definition: XnCppWrapper.h:3596
void UnregisterFromEndOfFileReached(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToEndOfFileReached(). For full details and usage, see xnUnregisterFromEndOfFileReached
Definition: XnCppWrapper.h:2563
XN_C_API XnStatus XN_C_DECL xnMockRawSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const void *pData)
void UnregisterFromHandTouchingFOVEdge(XnCallbackHandle hCallback)
Unregister from hand approaching the edge of the FOV. For full details and usage, see xnUnregisterFro...
Definition: XnCppWrapper.h:3856
XnUInt32 GetBytesPerPixel() const
Gets the number of bytes per pixel for this map generator. For full details and usage, see xnGetBytesPerPixel
Definition: XnCppWrapper.h:2731
XN_C_API XnUInt8 *XN_C_DECL xnGetImageMap(XnNodeHandle hInstance)
Gets the current image-map as a byte buffer.
Definition: XnCppWrapper.h:5185
void UnregisterFromCalibrationInProgress(XnCallbackHandle hCallback)
Unregister from calibration status while in progress. For full details and usage, see xnUnregisterFro...
Definition: XnCppWrapper.h:4436
Definition: XnCppWrapper.h:1663
Capability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:1671
XN_C_API XnBool XN_C_DECL xnIsProfileAvailable(XnNodeHandle hInstance, XnSkeletonProfile eProfile)
Check if generator supports a specific profile.
XnStatus RegisterToErrorStateChange(XnErrorStateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to global error state changes. For full details and usage...
Definition: XnCppWrapper.h:5931
void(* XnStateChangedHandler)(XnNodeHandle hNode, void *pCookie)
Definition: XnTypes.h:227
XN_C_API XnStatus XN_C_DECL xnEnumerateActiveJoints(XnNodeHandle hInstance, XnSkeletonJoint *pJoints, XnUInt16 *pnJoints)
Get all active joints.
XN_C_API XnStatus XN_C_DECL xnCreateImageGenerator(XnContext *pContext, XnNodeHandle *phImageGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an image generator.
IRGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3359
NodeInfo & operator=(const NodeInfo &other)
Definition: XnCppWrapper.h:1194
XnNodeInfoList * GetUnderlyingObject() const
Gets the underlying C object.
Definition: XnCppWrapper.h:1528
XnStatus GetPoseStatus(XnUserID userID, const XnChar *poseName, XnUInt64 &poseTime, XnPoseDetectionStatus &eStatus, XnPoseDetectionState &eState)
Definition: XnCppWrapper.h:4617
MockDepthGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3127
XnUInt8 nMinor
Definition: XnTypes.h:154
XN_C_API XnBool XN_C_DECL xnIsPlayerAtEOF(XnNodeHandle hPlayer)
Checks whether the player is at the end-of-file marker.
XnStatus AddNodeToRecording(ProductionNode &Node, XnCodecID compression=XN_CODEC_NULL)
Adds a node to recording and start recording it. This function must be called on each node that is to...
Definition: XnCppWrapper.h:2408
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a device node. For full details and usage, see xnCreateDevice
Definition: XnCppWrapper.h:6180
XnStatus RegisterToFieldOfViewChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to field of view changes. For full details and usage, see xnRegisterToDepthFieldOfViewChange
Definition: XnCppWrapper.h:3064
Definition: XnCppWrapper.h:5307
XnBool operator==(const Iterator &other) const
Definition: XnCppWrapper.h:1419
XN_C_API void XN_C_DECL xnOSMemCopy(void *pDest, const void *pSource, XnSizeT nCount)
MockRawGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:5247
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:5658
struct XnYUV422DoublePixel XnYUV422DoublePixel
XN_C_API XnStatus XN_C_DECL xnConvertRealWorldToProjective(XnNodeHandle hInstance, XnUInt32 nCount, const XnPoint3D *aRealWorld, XnPoint3D *aProjective)
Converts a list of points from projective coordinates to real world coordinates.
XnUInt32 GetSupportedUserPositionsCount() const
Gets the number of user positions supported by this generator. For full details and usage...
Definition: XnCppWrapper.h:2971
bool operator>(const Version &other) const
Definition: XnCppWrapper.h:104
XN_C_API XnStatus XN_C_DECL xnGetPlayerSource(XnNodeHandle hPlayer, XnRecordMedium *pSourceType, XnChar *strSource, XnUInt32 nBufSize)
Gets the player's source, i.e where the played events come from.
XnStatus SeekToTimeStamp(XnInt64 nTimeOffset, XnPlayerSeekOrigin origin)
Seeks the player to a specific timestamp, so that playing will continue from that point onwards...
Definition: XnCppWrapper.h:2485
XN_C_API void XN_C_DECL xnUnregisterFromUserPositionChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToUserPositionChange.
XnContext * GetUnderlyingObject() const
Gets the underlying C object.
Definition: XnCppWrapper.h:5500
XN_C_API XnStatus XN_C_DECL xnNodeInfoListRemove(XnNodeInfoList *pList, XnNodeInfoListIterator it)
XN_C_API XnEnumerationErrorsIterator XN_C_DECL xnEnumerationErrorsGetNext(XnEnumerationErrorsIterator it)
Iterator End() const
Gets an iterator representing the end of the list. This iterator does not point to an actual item...
Definition: XnCppWrapper.h:5421
XnStatus RegisterToCalibrationComplete(CalibrationComplete handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when calibration is complete, with status. For full details and usage, see xnRegisterToCalibrationComplete
Definition: XnCppWrapper.h:4455
XN_C_API XnNodeInfo *XN_C_DECL xnNodeInfoListGetCurrent(XnNodeInfoListIterator it)
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetSupportedMinUserPositions(XnNodeQuery *pQuery, const XnUInt32 nCount)
struct XnNodeInfoList XnNodeInfoList
Definition: XnTypes.h:187
XnBool IsGenerating() const
Checks if this node is currently generating. For full details and usage, see xnIsGenerating ...
Definition: XnCppWrapper.h:2210
#define XN_CAPABILITY_HUE
Definition: XnTypes.h:305
XN_C_API XnStatus XN_C_DECL xnCreateDevice(XnContext *pContext, XnNodeHandle *phDevice, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates a device node.
XnStatus RegisterToCalibrationStart(CalibrationStart handler, void *pCookie, XnCallbackHandle &hCallback)
Register to calibration start callback. For full details and usage, see xnRegisterToCalibrationStart ...
Definition: XnCppWrapper.h:4368
XN_C_API void XN_C_DECL xnGetSceneMetaData(XnNodeHandle hInstance, XnSceneMetaData *pMetaData)
Gets the current scene meta data.
XN_C_API XnStatus XN_C_DECL xnContextRunXmlScript(XnContext *pContext, const XnChar *xmlScript, XnEnumerationErrors *pErrors)
Runs an XML script in the given context. NOTE: when using this function, the context will be the owne...
XN_C_API const XnChar *XN_C_DECL xnResolutionGetName(XnResolution resolution)
XN_C_API XnNodeInfoListIterator XN_C_DECL xnNodeInfoListGetLast(XnNodeInfoList *pList)
XnCodecID GetCodecID() const
For full details and usage, see xnGetCodecID
Definition: XnCppWrapper.h:5281
XnStatus RegisterToPoseDetected(PoseDetection handler, void *pCookie, XnCallbackHandle &hCallback)
Register to callback when a user is in pose. For full details and usage, see xnRegisterToPoseDetected...
Definition: XnCppWrapper.h:4690
XN_C_API XnStatus XN_C_DECL xnGetActiveGestures(XnNodeHandle hInstance, XnChar **pstrGestures, XnUInt16 *nGestures)
Get the names of the gestures that are currently active.
GeneralIntCapability GetPanCap()
Definition: XnCppWrapper.h:2867
XnStatus SetDestination(XnRecordMedium destType, const XnChar *strDest)
Tells the recorder where to record. For full details and usage, see xnSetRecorderDestination ...
Definition: XnCppWrapper.h:2395
XN_C_API XnStatus XN_C_DECL xnRegisterToPixelFormatChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to pixel format changes.
XnStatus EnumerateLicenses(XnLicense *&aLicenses, XnUInt32 &nCount) const
For full details and usage, see xnEnumerateLicenses
Definition: XnCppWrapper.h:5729
ImageGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3188
XnPoseDetectionState
Definition: XnTypes.h:654
~NodeInfoList()
Dtor.
Definition: XnCppWrapper.h:1522
XN_C_API XnStatus XN_C_DECL xnCopyAudioMetaData(XnAudioMetaData *pDestination, const XnAudioMetaData *pSource)
Shallow-Copies an Audio Meta Data object. Note that the data buffer is not copied, and that both object will point to the same buffer.
XnStatus GetSupportedWaveOutputModes(XnWaveOutputMode *aSupportedModes, XnUInt32 &nCount) const
For full details and usage, see xnGetSupportedWaveOutputModes
Definition: XnCppWrapper.h:5143
void UnregisterFromViewPointChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToViewPointChange(). For full details and usage, see xnUnregisterFromViewPointChange
Definition: XnCppWrapper.h:2126
XnStatus RegisterToCalibrationInProgress(CalibrationInProgress handler, void *pCookie, XnCallbackHandle &hCallback)
Register to calibration status while calibration is in progress. For full details and usage...
Definition: XnCppWrapper.h:4412
XN_C_API void XN_C_DECL xnUnregisterFromEndOfFileReached(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToEndOfFileReached().
XnStatus Clear()
For full details and usage, see xnNodeInfoListClear
Definition: XnCppWrapper.h:1614
XnPowerLineFrequency GetPowerLineFrequency()
Gets the power line frequency. For full details and usage, see xnGetPowerLineFrequency ...
Definition: XnCppWrapper.h:2659
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAdd(XnNodeInfoList *pList, const XnProductionNodeDescription *pDescription, const XnChar *strCreationInfo, XnNodeInfoList *pNeededNodes)
HandTouchingFOVEdgeCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:3816
XN_C_API void XN_C_DECL xnOSFree(const void *pMemBlock)
void UnregisterFromUserPositionChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToUserPositionChange. For full details and usage, see xnUnregisterFromUserPositionChange
Definition: XnCppWrapper.h:3003
XN_C_API XnResolution XN_C_DECL xnResolutionGetFromXYRes(XnUInt32 xRes, XnUInt32 yRes)
XnStatus RegisterUserCallbacks(UserHandler NewUserCB, UserHandler LostUserCB, void *pCookie, XnCallbackHandle &hCallback)
Register to user callbacks. For full details and usage, see xnRegisterUserCallbacks ...
Definition: XnCppWrapper.h:4909
Player(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2442
Definition: XnCppWrapper.h:1160
XN_C_API XnStatus XN_C_DECL xnGetRecorderDestination(XnNodeHandle hRecorder, XnRecordMedium *pDestType, XnChar *strDest, XnUInt32 nBufSize)
Returns the recoder's destination.
#define XN_NEW(type,...)
Definition: XnOS.h:326
XN_C_API XnStatus XN_C_DECL xnSeekPlayerToFrame(XnNodeHandle hPlayer, const XnChar *strNodeName, XnInt32 nFrameOffset, XnPlayerSeekOrigin origin)
Seeks the player to a specific frame of a specific played node, so that playing will continue from th...
Definition: XnTypes.h:411
XN_C_API XnStatus XN_C_DECL xnNodeQueryAllocate(XnNodeQuery **ppQuery)
DepthGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3022
XnStatus GetCoM(XnUserID user, XnPoint3D &com) const
Get the center of mass of a user. For full details and usage, see xnGetUserCoM
Definition: XnCppWrapper.h:4893
GeneralIntCapability GetZoomCap()
Definition: XnCppWrapper.h:2897
XN_C_API XnEnumerationErrorsIterator XN_C_DECL xnEnumerationErrorsGetFirst(const XnEnumerationErrors *pErrors)
XN_C_API XnStatus XN_C_DECL xnSetViewPoint(XnNodeHandle hInstance, XnNodeHandle hOther)
Sets the view point of this generator to look like as if placed at another generator location...
XN_C_API XnStatus XN_C_DECL xnCreateRecorder(XnContext *pContext, const XnChar *strFormatName, XnNodeHandle *phRecorder)
Creates a recorder.
XnUInt16 XnLabel
Definition: XnTypes.h:287
XnBool IsGestureAvailable(const XnChar *strGesture) const
Check if a specific gesture is available in this generator. For full details and usage, see xnIsGestureAvailable
Definition: XnCppWrapper.h:3524
void UnregisterFromNewDataAvailable(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToNewDataAvailable(). For full details and usage, see xnUnregisterFromNewDataAvailable
Definition: XnCppWrapper.h:2250
XN_C_API XnStatus XN_C_DECL xnStartPoseDetection(XnNodeHandle hInstance, const XnChar *strPose, XnUserID user)
Start detection of a specific pose for a specific user.
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAddEx(XnNodeInfoList *pList, const XnProductionNodeDescription *pDescription, const XnChar *strCreationInfo, XnNodeInfoList *pNeededNodes, const void *pAdditionalData, XnFreeHandler pFreeHandler)
XnStatus LoadCalibrationDataFromFile(XnUserID user, const XnChar *strFileName)
Load previously saved calibration data from file. For full details and usage, see xnLoadSkeletonCalib...
Definition: XnCppWrapper.h:4221
XnStatus SetRealProperty(const XnChar *strName, XnDouble dValue)
Sets a real property. For full details and usage, see xnSetRealProperty
Definition: XnCppWrapper.h:1831
XnBool IsEOF() const
Checks whether the player is at the end-of-file marker. For full details and usage, see xnIsPlayerAtEOF
Definition: XnCppWrapper.h:2547
XnStatus RemoveNeededNode(ProductionNode &needed)
Removes a needed node from the list of needed nodes. For full details and usage, see xnRemoveNeededNo...
Definition: XnCppWrapper.h:1802
XnStatus Add(XnProductionNodeDescription &description, const XnChar *strCreationInfo, NodeInfoList *pNeededNodes)
For full details and usage, see xnNodeInfoListAdd
Definition: XnCppWrapper.h:1546
Recorder(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2384
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates a Gesture Generator. For full details and usage, see xnCreateGestureGenerator ...
Definition: XnCppWrapper.h:6294
XnGrayscale16Pixel XnIRPixel
Definition: XnTypes.h:284
CroppingCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:2597
XnStatus RegisterToViewPointChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to view point changes. For full details and usage, see xnRegisterToView...
Definition: XnCppWrapper.h:2118
XN_C_API void XN_C_DECL xnUnregisterFromGlobalErrorStateChange(XnContext *pContext, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGlobalErrorStateChange().
XnStatus FilterList(Context &context, Query &query)
For full details and usage, see xnNodeQueryFilterList
Definition: XnCppWrapper.h:6105
XnStatus AddRef()
References a production node, increasing its reference count by 1. For full details and usage...
Definition: XnCppWrapper.h:1083
Definition: XnCppWrapper.h:5100
XN_C_API XnStatus XN_C_DECL xnSetRealProperty(XnNodeHandle hInstance, const XnChar *strName, XnDouble dValue)
Sets a real property.
Definition: XnTypes.h:269
bool operator<=(const Version &other) const
Definition: XnCppWrapper.h:100
XnStatus AddEx(XnProductionNodeDescription &description, const XnChar *strCreationInfo, NodeInfoList *pNeededNodes, const void *pAdditionalData, XnFreeHandler pFreeHandler)
For full details and usage, see xnNodeInfoListAddEx
Definition: XnCppWrapper.h:1555
XN_C_API XnStatus XN_C_DECL xnCopyIRMetaData(XnIRMetaData *pDestination, const XnIRMetaData *pSource)
Shallow-Copies an IR Meta Data object. Note that the data buffer is not copied, and that both object ...
XN_C_API XnStatus XN_C_DECL xnGetSkeletonJointPosition(XnNodeHandle hInstance, XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointPosition *pJoint)
Get a specific joint's position.
XnStatus InitFromXmlFile(const XnChar *strFileName, ScriptNode &scriptNode, EnumerationErrors *pErrors=NULL)
Initializes OpenNI context, and then configures it using the given file. NOTE: when using this functi...
Definition: XnCppWrapper.h:5596
GeneralIntCapability GetGammaCap()
Definition: XnCppWrapper.h:2827
XN_C_API XnStatus XN_C_DECL xnRegisterToGenerationRunningChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to be called when generation starts or stops.
Iterator & operator++()
Definition: XnCppWrapper.h:5392
XN_C_API XnStatus XN_C_DECL xnEncodeData(XnNodeHandle hCodec, const void *pSrc, XnUInt32 nSrcSize, void *pDst, XnUInt32 nDstSize, XnUInt *pnBytesWritten)
XnStatus GetAvailablePoses(XnChar **pstrPoses, XnUInt32 &nPoses) const
Get the names of the supported poses. For full details and usage, see xnGetAvailablePoses ...
Definition: XnCppWrapper.h:4600
XnStatus SetUserPosition(XnUInt32 nIndex, const XnBoundingBox3D &Position)
Sets the current user position. For full details and usage, see xnSetUserPosition ...
Definition: XnCppWrapper.h:2979
XN_C_API XnStatus XN_C_DECL xnSetPixelFormat(XnNodeHandle hInstance, XnPixelFormat Format)
Sets the pixel format of the image map.
void TakeOwnership(XnNodeHandle hNode)
Definition: XnCppWrapper.h:1131
XN_C_API XnStatus XN_C_DECL xnEnumerateAllGestures(XnNodeHandle hInstance, XnChar **pstrGestures, XnUInt32 nNameLength, XnUInt16 *nGestures)
Get the names of all gestures available.
XnStatus SetViewPoint(ProductionNode &otherNode)
Sets the view point of this generator to look like as if placed at another generator location...
Definition: XnCppWrapper.h:2094
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnIRPixel *pIRMap)
For full details and usage, see xnMockIRSetData
Definition: XnCppWrapper.h:3417
Definition: XnTypes.h:109
XN_C_API XnStatus XN_C_DECL xnStopTracking(XnNodeHandle hInstance, XnUserID user)
Stop tracking a specific hand.
XN_C_API XnStatus XN_C_DECL xnSetSkeletonProfile(XnNodeHandle hInstance, XnSkeletonProfile eProfile)
Set the profile. this will set some joints to be active, and others to be inactive.
ScriptNode(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5315
XnPixelFormat GetPixelFormat() const
Gets current pixel format. For full details and usage, see xnGetPixelFormat
Definition: XnCppWrapper.h:3263
XN_C_API XnGrayscale8Pixel *XN_C_DECL xnGetGrayscale8ImageMap(XnNodeHandle hInstance)
Gets the current Grayscale8 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in Grayscale8 pixel format.
XN_C_API XnStatus XN_C_DECL xnCreateGestureGenerator(XnContext *pContext, XnNodeHandle *phGestureGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates a Gesture Generator.
HandsGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3894
PoseDetectionCapability GetPoseDetectionCap()
Definition: XnCppWrapper.h:4976
#define XN_CAPABILITY_GAIN
Definition: XnTypes.h:311
XnNodeInfoListNode * pCurrent
Definition: XnTypes.h:194
XN_C_API XnStatus XN_C_DECL xnRegisterToGestureChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when gestures are added or removed.
XN_C_API XnStatus XN_C_DECL xnRegisterToHandTouchingFOVEdge(XnNodeHandle hInstance, XnHandTouchingFOVEdge handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when a hand is approaching the edge of the FOV.
XN_C_API void XN_C_DECL xnUnregisterFromPoseDetectionInProgress(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from pose status callback.
XN_C_API XnStatus XN_C_DECL xnInit(XnContext **ppContext)
Initializes the OpenNI library.
const XnRGB24Pixel * GetRGB24ImageMap() const
Gets the current RGB24 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in RGB24 pixel format. For full details and usage, see xnGetRGB24ImageMap
Definition: XnCppWrapper.h:3207
XN_C_API XnStatus XN_C_DECL xnCreateAudioGenerator(XnContext *pContext, XnNodeHandle *phAudioGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an audio generator.
Definition: XnCppWrapper.h:1286
XnUInt64 GetTimestamp() const
Gets the timestamp of current data, in microseconds. For full details and usage, see xnGetTimestamp ...
Definition: XnCppWrapper.h:2298
void UnregisterFromPixelFormatChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToPixelFormatChange. For full details and usage, see xnUnregisterFromPixelFormatChange
Definition: XnCppWrapper.h:3279
Definition: XnCppWrapper.h:3351
Definition: XnCppWrapper.h:5460
bool operator!=(const Version &other) const
Definition: XnCppWrapper.h:92
Definition: XnTypes.h:496
void * XnCallbackHandle
Definition: XnTypes.h:247
bool operator>=(const Version &other) const
Definition: XnCppWrapper.h:108
Generator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2196
XnStatus RunXmlScriptFromFile(const XnChar *strFileName, ScriptNode &scriptNode, EnumerationErrors *pErrors=NULL)
Runs an XML script in the given context. For full details and usage, see xnContextRunXmlScriptFromFil...
Definition: XnCppWrapper.h:5560
XnCalibrationStatus
Definition: XnTypes.h:661
XN_C_API void XN_C_DECL xnShutdown(XnContext *pContext)
Shuts down an OpenNI context, destroying all its nodes. Do not call any function of this context or a...
Definition: XnTypes.h:456
~Query()
Dtor.
Definition: XnCppWrapper.h:1300
XnStatus SaveCalibrationDataToFile(XnUserID user, const XnChar *strFileName)
Save the calibration data to file. For full details and usage, see xnSaveSkeletonCalibrationDataToFil...
Definition: XnCppWrapper.h:4213
XnStatus SetData(const DepthMetaData &depthMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
Definition: XnCppWrapper.h:3160
Iterator End() const
Gets an iterator marking the end of the list. This iterator does not point to a valid item...
Definition: XnCppWrapper.h:1584
XnStatus StartGenerating()
Starts generation of the output. This will also cause all dependencies to start generating. For full details and usage, see xnStartGenerating
Definition: XnCppWrapper.h:2202
XN_C_API XnBool XN_C_DECL xnIsDataNew(XnNodeHandle hInstance)
Checks whether current data is new. Meaning, did the data change on the last call to xnWaitAndUpdateA...
NodeInfo(XnNodeInfo *pInfo)
Definition: XnCppWrapper.h:1168
Context & operator=(const Context &other)
Definition: XnCppWrapper.h:5493
XN_C_API XnBool XN_C_DECL xnIsSkeletonCalibrated(XnNodeHandle hInstance, XnUserID user)
Check if skeleton is being calibrated.
XN_C_API const XnProductionNodeDescription *XN_C_DECL xnNodeInfoGetDescription(XnNodeInfo *pNodeInfo)
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates an scene analyzer. For full details and usage, see xnCreateSceneAnalyzer
Definition: XnCppWrapper.h:6303
XN_C_API XnStatus XN_C_DECL xnWaitAndUpdateData(XnNodeHandle hInstance)
Updates the data to the latest available one. If needed, the call will block until new data is availa...
XnStatus Init()
Initializes the OpenNI library. For full details and usage, see xnInit
Definition: XnCppWrapper.h:5505
XN_C_API XnStatus XN_C_DECL xnAddNodeToRecording(XnNodeHandle hRecorder, XnNodeHandle hNode, XnCodecID compression)
Adds a node to recording and start recording it. This function must be called on each node that is to...
XN_C_API void XN_C_DECL xnGetImageMetaData(XnNodeHandle hInstance, XnImageMetaData *pMetaData)
Gets the current image-map meta data.
Query(XnNodeQuery *pNodeQuery)
Definition: XnCppWrapper.h:1295
XnBool IsGestureProgressSupported(const XnChar *strGesture) const
Check if the specific gesture supports 'in progress' callbacks. For full details and usage...
Definition: XnCppWrapper.h:3532
DeviceIdentificationCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:1961
XN_C_API XnStatus XN_C_DECL xnEnumeratePlayerNodes(XnNodeHandle hPlayer, XnNodeInfoList **ppList)
Retrieves a list of the nodes played by a player.
struct XnNodeQuery XnNodeQuery
Definition: XnTypes.h:197
#define XN_CAPABILITY_ROLL
Definition: XnTypes.h:314
NodeInfoList & GetNeededNodes() const
For full details and usage, see xnNodeInfoGetNeededNodes
Definition: XnCppWrapper.h:6115
XnStatus SetName(const XnChar *strName)
For full details and usage, see xnNodeQuerySetName()
Definition: XnCppWrapper.h:1323
XnStatus RunXmlScript(const XnChar *strScript, ScriptNode &scriptNode, EnumerationErrors *pErrors=NULL)
Runs an XML script in the given context. NOTE: when using this function, the context will be the owne...
Definition: XnCppWrapper.h:5532
Definition: XnCppWrapper.h:2072
static XnStatus UnregisterFromUnderlying(_XnUnregisterStateChangeFuncPtr xnFunc, XnNodeHandle hNode, XnCallbackHandle hCallback)
Definition: XnCppWrapper.h:6442
XnStatus GetAllActiveGestures(XnChar **astrGestures, XnUInt32 nNameLength, XnUInt16 &nGestures) const
Get the names of the gestures that are currently active. For full details and usage, see xnGetActiveGestures
Definition: XnCppWrapper.h:3492
XN_C_API XnStatus XN_C_DECL xnSeekPlayerToTimeStamp(XnNodeHandle hPlayer, XnInt64 nTimeOffset, XnPlayerSeekOrigin origin)
Seeks the player to a specific timestamp, so that playing will continue from that point onwards...
XnUInt32 XnCodecID
Definition: XnTypes.h:818
XnStatus StopSinglePoseDetection(XnUserID user, const XnChar *strPose)
Stop detection of a specific pose for a specific user. For full details and usage, see xnStopSinglePoseDetection
Definition: XnCppWrapper.h:4641
XnDouble GetPlaybackSpeed() const
Gets the playback speed. see xnSetPlaybackSpeed() for more details. For full details and usage...
Definition: XnCppWrapper.h:2579
XnBool IsPixelFormatSupported(XnPixelFormat Format) const
Checks if a specific pixel format is supported. For full details and usage, see xnIsPixelFormatSuppor...
Definition: XnCppWrapper.h:3247
void UnregisterFromMapOutputModeChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToMapOutputModeChange. For full details and usage, see xnUnregisterFromMapOutputModeChange
Definition: XnCppWrapper.h:2747
struct XnNodeInfo XnNodeInfo
Definition: XnTypes.h:177
XN_C_API XnStatus XN_C_DECL xnRemoveNeededNode(XnNodeHandle hInstance, XnNodeHandle hNeededNode)
Removes a needed node from the list of needed nodes.
XN_C_API void XN_C_DECL xnUnregisterFromFrameSyncChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToFrameSyncChange().
XN_C_API XnStatus XN_C_DECL xnCreatePlayer(XnContext *pContext, const XnChar *strFormatName, XnNodeHandle *phPlayer)
Creates a player.
XnStatus SetCreationInfo(const XnChar *strCreationInfo)
For full details and usage, see xnNodeQuerySetCreationInfo
Definition: XnCppWrapper.h:1387
void UnregisterFromGestureReadyForNextIntermediateStageCallbacks(XnCallbackHandle hCallback)
Unregister from when a gesture is ready for its next stage. For full details and usage, see xnUnregisterFromGestureReadyForNextIntermediateStage
Definition: XnCppWrapper.h:3687
Definition: XnTypes.h:493
NodeWrapper & operator=(const NodeWrapper &other)
Definition: XnCppWrapper.h:1036
XN_C_API XnStatus XN_C_DECL xnNodeInfoGetTreeStringRepresentation(XnNodeInfo *pNodeInfo, XnChar *csResult, XnUInt32 nSize)
const ErrorStateCapability GetErrorStateCap() const
Definition: XnCppWrapper.h:1921
XN_C_API XnStatus XN_C_DECL xnEnumerateLicenses(XnContext *pContext, XnLicense **paLicenses, XnUInt32 *pnCount)
Definition: XnCppWrapper.h:3289
XnStatus SetVendor(const XnChar *strVendor)
For full details and usage, see xnNodeQuerySetVendor()
Definition: XnCppWrapper.h:1315
XN_C_API XnStatus XN_C_DECL xnStartSkeletonTracking(XnNodeHandle hInstance, XnUserID user)
Start tracking a skeleton.
XnStatus GetAllAvailablePoses(XnChar **pstrPoses, XnUInt32 nNameLength, XnUInt32 &nPoses) const
Get the names of the supported poses. For full details and usage, see xnGetAvailablePoses ...
Definition: XnCppWrapper.h:4607
XN_C_API XnStatus XN_C_DECL xnSaveSkeletonCalibrationDataToFile(XnNodeHandle hInstance, XnUserID user, const XnChar *strFileName)
Save the calibration data to file.
XN_C_API XnStatus XN_C_DECL xnStartGenerating(XnNodeHandle hInstance)
Starts generation of the output. This will also cause all dependencies to start generating.
XnStatus RegisterHandCallbacks(HandCreate CreateCB, HandUpdate UpdateCB, HandDestroy DestroyCB, void *pCookie, XnCallbackHandle &hCallback)
Register to hands callbacks. For full details and usage, see xnRegisterHandCallbacks ...
Definition: XnCppWrapper.h:3934
XN_C_API XnStatus XN_C_DECL xnCreateScriptNode(XnContext *pContext, const XnChar *strFormat, XnNodeHandle *phScript)
void UnregisterFromGestureIntermediateStageCompleted(XnCallbackHandle hCallback)
Unregister from when a gesture is in progress. For full details and usage, see xnUnregisterFromGestur...
Definition: XnCppWrapper.h:3644
XN_C_API XnStatus XN_C_DECL xnInitFromXmlFile(const XnChar *strFileName, XnContext **ppContext, XnEnumerationErrors *pErrors)
Initializes OpenNI context, and then configures it using the given file. NOTE: when using this functi...
XnBool IsJointAvailable(XnSkeletonJoint eJoint) const
Check if generator supports a specific joint. For full details and usage, see xnIsJointAvailable ...
Definition: XnCppWrapper.h:4076
XnStatus SetInstanceName(const XnChar *strName)
For full details and usage, see xnNodeInfoSetInstanceName
Definition: XnCppWrapper.h:1209
XN_C_API XnStatus XN_C_DECL xnGetRealProperty(XnNodeHandle hInstance, const XnChar *strName, XnDouble *pdValue)
Gets a real property.
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAddNode(XnNodeInfoList *pList, XnNodeInfo *pNode)
XN_C_API XnStatus XN_C_DECL xnGetVendorSpecificData(XnNodeHandle hInstance, XnChar *strBuffer, XnUInt32 *pnBufferSize)
XN_C_API XnStatus XN_C_DECL xnGetCropping(XnNodeHandle hInstance, XnCropping *pCropping)
Gets current cropping configuration.
XN_C_API XnStatus XN_C_DECL xnEnumerateExistingNodesByType(XnContext *pContext, XnProductionNodeType type, XnNodeInfoList **ppList)
Gets a list of all existing node in the context. Each node that was returned increases its ref count...
void UnregisterFromMirrorChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToMirrorChange(). For full details and usage, see xnUnregisterFromMirrorChange
Definition: XnCppWrapper.h:2062
XnStatus RegisterToErrorStateChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to error state changes. For full details and usage, see xnRegisterToNod...
Definition: XnCppWrapper.h:1701
XN_C_API void XN_C_DECL xnUnregisterFromMirrorChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToMirrorChange().
Definition: XnTypes.h:202
const XnProductionNodeDescription & Description()
Gets the description of the failing node this iterator points to.
Definition: XnCppWrapper.h:5408
XN_C_API XnDouble XN_C_DECL xnGetPlaybackSpeed(XnNodeHandle hInstance)
Gets the playback speed. see xnSetPlaybackSpeed() for more details.
XN_C_API XnStatus XN_C_DECL xnCreateHandsGenerator(XnContext *pContext, XnNodeHandle *phHandsGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an hands generator.
UserGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:4865
XN_C_API XnStatus XN_C_DECL xnFrameSyncWith(XnNodeHandle hInstance, XnNodeHandle hOther)
Activates frame sync with the other node.
static void FreeLicensesList(XnLicense aLicenses[])
For full details and usage, see xnFreeLicensesList
Definition: XnCppWrapper.h:5737
XN_C_API XnStatus XN_C_DECL xnWaitNoneUpdateAll(XnContext *pContext)
Updates all generator nodes in the context, without any waiting. If a node has new data...
XnStatus GetSerialNumber(XnChar *strBuffer, XnUInt32 nBufferSize)
For full details and usage, see xnGetSerialNumber
Definition: XnCppWrapper.h:1983
XN_C_API XnStatus XN_C_DECL xnSetPlayerSource(XnNodeHandle hPlayer, XnRecordMedium sourceType, const XnChar *strSource)
Sets the source for the player, i.e. where the played events will come from.
XnStatus AddNode(NodeInfo &info)
For full details and usage, see xnNodeInfoListAddNode
Definition: XnCppWrapper.h:1564
XN_C_API XnBool XN_C_DECL xnIsSkeletonTracking(XnNodeHandle hInstance, XnUserID user)
Check if skeleton is being tracked.
XN_C_API XnStatus xnRegisterToOutOfPose(XnNodeHandle hInstance, XnPoseDetectionCallback handler, void *pCookie, XnCallbackHandle *phCallback)
Register to callback when a use is no longer in pose.
XN_C_API XnStatus XN_C_DECL xnGetStringProperty(XnNodeHandle hInstance, const XnChar *strName, XnChar *csValue, XnUInt32 nBufSize)
Gets a string property.
XN_C_API XnStatus XN_C_DECL xnContextRegisterForShutdown(XnContext *pContext, XnContextShuttingDownHandler pHandler, void *pCookie, XnCallbackHandle *phCallback)
Registers for context shutting down event. This function is used for backwards compatibility and shou...
XN_C_API const XnChar *XN_C_DECL xnNodeInfoGetInstanceName(XnNodeInfo *pNodeInfo)
Definition: XnCppWrapper.h:1775
void GetMetaData(IRMetaData &metaData) const
Gets the current IR-map meta data. For full details and usage, see xnGetIRMetaData ...
Definition: XnCppWrapper.h:3370
XN_C_API XnUInt32 XN_C_DECL xnResolutionGetXRes(XnResolution resolution)
XN_C_API void XN_C_DECL xnUnregisterFromHandTouchingFOVEdge(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from hand approaching the edge of the FOV.
Resolution(XnUInt32 xRes, XnUInt32 yRes)
Definition: XnCppWrapper.h:6067
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAddNodeFromList(XnNodeInfoList *pList, XnNodeInfoListIterator otherListIt)
const UserPositionCapability GetUserPositionCap() const
Definition: XnCppWrapper.h:3098
XN_C_API void XN_C_DECL xnUnregisterFromCalibrationComplete(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from calibration complete with status.
XN_C_API XnStatus XN_C_DECL xnPlayerReadNext(XnNodeHandle hPlayer)
Reads the next data element from the player.
NodeInfo GetInfo() const
Gets information about a specific node, like its description, and dependent nodes. For full details and usage, see xnGetNodeInfo
Definition: XnCppWrapper.h:1789
XN_C_API XnStatus XN_C_DECL xnContextOpenFileRecordingEx(XnContext *pContext, const XnChar *strFileName, XnNodeHandle *phPlayerNode)
Opens a recording file, adding all nodes in it to the context.
XN_C_API void XN_C_DECL xnOSMemSet(void *pDest, XnUInt8 nValue, XnSizeT nCount)
Definition: XnCppWrapper.h:6046
XnStatus RegisterToJointConfigurationChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Register to joint configuration changes - when joints are activated and deactivated. For full details and usage, see xnRegisterToJointConfigurationChange
Definition: XnCppWrapper.h:4125
XN_C_API void XN_C_DECL xnUnregisterFromPixelFormatChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToPixelFormatChange.
FrameSyncCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:2144
XN_C_API void xnUnregisterFromPoseDetected(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from pose detected callback.
Definition: XnCppWrapper.h:76
Context()
Ctor.
Definition: XnCppWrapper.h:5464
Definition: XnCppWrapper.h:3180
NodeInfoList(XnNodeInfoList *pList)
Definition: XnCppWrapper.h:1519
EnumerationErrors()
Ctor.
Definition: XnCppWrapper.h:5349
XN_C_API XnDepthPixel XN_C_DECL xnGetDeviceMaxDepth(XnNodeHandle hInstance)
Gets the maximum depth the device can produce.
XnStatus WaitAndUpdateAll()
Updates all generators nodes in the context, waiting for all to have new data. For full details and u...
Definition: XnCppWrapper.h:5947
XnStatus SetSmoothing(XnFloat fSmoothingFactor)
Set the skeleton's smoothing factor. For full details and usage, see xnSetSkeletonSmoothing ...
Definition: XnCppWrapper.h:4301
const XnChar * GetSupportedFormat() const
Gets the name of the format supported by a player. For full details and usage, see xnGetPlayerSupport...
Definition: XnCppWrapper.h:2525
struct XnRGB24Pixel XnRGB24Pixel
XnStatus GetFieldOfView(XnFieldOfView &FOV) const
Gets the Field-Of-View of the depth generator, in radians. For full details and usage, see xnGetDepthFieldOfView
Definition: XnCppWrapper.h:3056
Definition: XnTypes.h:140
XnStatus SaveCalibrationData(XnUserID user, XnUInt32 nSlot)
Save the calibration data. For full details and usage, see xnSaveSkeletonCalibrationData ...
Definition: XnCppWrapper.h:4229
#define XN_DELETE(p)
Definition: XnOS.h:336
XnStatus DecodeData(const void *pSrc, XnUInt32 nSrcSize, void *pDst, XnUInt32 nDstSize, XnUInt *pnBytesWritten) const
For full details and usage, see xnDecodeData
Definition: XnCppWrapper.h:5297
XnBool IsPoseSupported(const XnChar *strPose)
Definition: XnCppWrapper.h:4612
XN_C_API XnNodeInfoList *XN_C_DECL xnNodeInfoGetNeededNodes(XnNodeInfo *pNodeInfo)
Definition: XnCppWrapper.h:2434
XN_C_API void XN_C_DECL xnUnregisterFromGeneralIntValueChange(XnNodeHandle hNode, const XnChar *strCap, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGeneralIntValueChange().
XnStatus AddLicense(const XnLicense &License)
For full details and usage, see xnAddLicense
Definition: XnCppWrapper.h:5721
XN_C_API XnStatus XN_C_DECL xnWaitAndUpdateAll(XnContext *pContext)
Updates all generators nodes in the context, waiting for all to have new data.
XnStatus EnumerateProductionTrees(XnProductionNodeType Type, const Query *pQuery, NodeInfoList &TreesList, EnumerationErrors *pErrors=NULL) const
Enumerates all available production trees for a specific node type. The trees populated in the list s...
Definition: XnCppWrapper.h:5745
XnStatus RegisterToGestureIntermediateStageCompleted(GestureIntermediateStageCompleted handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when a gesture is in progress. For full details and usage, see xnRegisterToGestureInterme...
Definition: XnCppWrapper.h:3621
XnStatus Run(EnumerationErrors *pErrors)
Definition: XnCppWrapper.h:6378
bool operator<(const Version &other) const
Definition: XnCppWrapper.h:96
XnUInt32 nBuild
Definition: XnTypes.h:156
XN_C_API XnStatus XN_C_DECL xnNodeQueryAddNeededNode(XnNodeQuery *pQuery, const XnChar *strInstanceName)
XN_C_API void *XN_C_DECL xnOSMallocAligned(const XnSizeT nAllocSize, const XnSizeT nAlignment)
XN_C_API XnStatus XN_C_DECL xnCreateMockNodeBasedOn(XnContext *pContext, XnNodeHandle hOriginalNode, const XnChar *strName, XnNodeHandle *phMockNode)
Creates a production node which is only a mock, base on the type and properties of another node...
XnStatus EnumerateNodes(NodeInfoList &list) const
Retrieves a list of the nodes played by a player. For full details and usage, see xnEnumeratePlayerNo...
Definition: XnCppWrapper.h:2533
Device(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2001
Definition: XnCppWrapper.h:1953
XN_C_API XnStatus XN_C_DECL xnStartGeneratingAll(XnContext *pContext)
Make sure all generators are generating data.
XN_C_API XnStatus XN_C_DECL xnStartTracking(XnNodeHandle hInstance, const XnPoint3D *pPosition)
Start tracking at a specific position.
XN_C_API XnStatus XN_C_DECL xnSetGeneralProperty(XnNodeHandle hInstance, const XnChar *strName, XnUInt32 nBufferSize, const void *pBuffer)
Sets a buffer property.
XnBool operator!=(const NodeWrapper &other)
Definition: XnCppWrapper.h:1067
Definition: XnCppWrapper.h:3449
void GetMetaData(ImageMetaData &metaData) const
Gets the current image-map meta data. For full details and usage, see xnGetImageMetaData ...
Definition: XnCppWrapper.h:3199
XN_C_API XnStatus XN_C_DECL xnRegisterToCalibrationComplete(XnNodeHandle hInstance, XnCalibrationComplete handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when calibration is complete, with status.
XnUInt8 nMajor
Definition: XnTypes.h:153
XnStatus EnumerateAllGestures(XnChar **astrGestures, XnUInt32 nNameLength, XnUInt16 &nGestures) const
Get the names of all gestures available. For full details and usage, see xnEnumerateAllGestures ...
Definition: XnCppWrapper.h:3516
XN_C_API XnStatus XN_C_DECL xnRegisterHandCallbacks(XnNodeHandle hInstance, XnHandCreate CreateCB, XnHandUpdate UpdateCB, XnHandDestroy DestroyCB, void *pCookie, XnCallbackHandle *phCallback)
Register to hands callbacks.
XnResolution GetResolution() const
Gets the resolution.
Definition: XnCppWrapper.h:6087
XN_C_API XnStatus XN_C_DECL xnContextRunXmlScriptFromFileEx(XnContext *pContext, const XnChar *strFileName, XnEnumerationErrors *pErrors, XnNodeHandle *phScriptNode)
Runs an XML script in the given context.
XnUInt16 nMaintenance
Definition: XnTypes.h:155
XN_C_API XnBool XN_C_DECL xnIsGestureProgressSupported(XnNodeHandle hInstance, const XnChar *strGesture)
Check if the specific gesture supports 'in progress' callbacks.
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetMaxVersion(XnNodeQuery *pQuery, const XnVersion *pMaxVersion)
const XnYUV422DoublePixel * GetYUV422ImageMap() const
Gets the current YUV422 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in YUV422 pixel format. For full details and usage, see xnGetYUV422ImageMap
Definition: XnCppWrapper.h:3215
XnStatus SetPlaybackSpeed(XnDouble dSpeed)
Sets the playback speed, as a ratio of the time passed in the recording. A value of 1...
Definition: XnCppWrapper.h:2571
XN_C_API XnStatus XN_C_DECL xnCreateIRGenerator(XnContext *pContext, XnNodeHandle *phIRGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates an IR generator.
XnSkeletonJoint
Definition: XnTypes.h:590
XnStatus TellTimestamp(XnUInt64 &nTimestamp) const
Reports the current timestamp of a player, i.e. the amount of time passed since the beginning of the ...
Definition: XnCppWrapper.h:2501
XnBool IsProfileAvailable(XnSkeletonProfile eProfile) const
Check if generator supports a specific profile. For full details and usage, see xnIsProfileAvailable ...
Definition: XnCppWrapper.h:4084
void Release()
Unreference a production node, decreasing its reference count by 1. If the reference count reaches ze...
Definition: XnCppWrapper.h:1088
void TakeOwnership(XnContext *pContext)
Definition: XnCppWrapper.h:6019
XN_C_API XnStatus XN_C_DECL xnNodeQueryAddSupportedCapability(XnNodeQuery *pQuery, const XnChar *strNeededCapability)
Definition: XnCppWrapper.h:2188
XnStatus Create(Context &context, const XnChar *strFormatName=NULL)
Creates a recorder. For full details and usage, see xnCreateRecorder
Definition: XnCppWrapper.h:6189
XnStatus SetRepeat(XnBool bRepeat)
Determines whether the player will automatically rewind to the beginning of the recording when reachi...
Definition: XnCppWrapper.h:2453
XN_C_API void XN_C_DECL xnUnregisterFromPowerLineFrequencyChange(XnNodeHandle hGenerator, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToPowerLineFrequencyChange().
XnStatus RegisterToUserReEnter(UserHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when a user re-enters the scene after exiting. For full details and usage, see xnRegisterToUserReEnter
Definition: XnCppWrapper.h:5018
XN_C_API XnNodeInfoListIterator XN_C_DECL xnNodeInfoListGetNext(XnNodeInfoListIterator it)
XnStatus SetStringProperty(const XnChar *strName, const XnChar *strValue)
Sets a string property. For full details and usage, see xnSetStringProperty
Definition: XnCppWrapper.h:1839
void UnregisterFromUserReEnter(XnCallbackHandle hCallback)
Unregister from when a user re-enters the scene. For full details and usage, see xnUnregisterFromUser...
Definition: XnCppWrapper.h:5042
XnStatus SetData(const AudioMetaData &audioMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
Definition: XnCppWrapper.h:5227
GestureGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3458
XN_C_API XnStatus XN_C_DECL xnGetUserPixels(XnNodeHandle hInstance, XnUserID user, XnSceneMetaData *pScene)
Get the pixels that belong to a user.
void UnregisterFromWaveOutputModeChanges(XnCallbackHandle hCallback)
For full details and usage, see xnUnregisterFromWaveOutputModeChanges
Definition: XnCppWrapper.h:5175
XnStatus GetStringProperty(const XnChar *strName, XnChar *csValue, XnUInt32 nBufSize) const
Gets a string property. For full details and usage, see xnGetStringProperty
Definition: XnCppWrapper.h:1871
Context(const Context &other)
Definition: XnCppWrapper.h:5482
XnStatus CreateBasedOn(IRGenerator &other, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6283
XnStatus CreateBasedOn(AudioGenerator &other, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6349
Definition: XnCppWrapper.h:5243
XN_C_API XnStatus XN_C_DECL xnRegisterToViewPointChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to view point changes.
XN_C_API XnBool XN_C_DECL xnIsSkeletonCalibrationData(XnNodeHandle hInstance, XnUInt32 nSlot)
Check if a specific slot already holds calibration data.
XN_C_API XnStatus XN_C_DECL xnGetUserPosition(XnNodeHandle hInstance, XnUInt32 nIndex, XnBoundingBox3D *pPosition)
Gets the current user position.
XN_C_API XnStatus XN_C_DECL xnSetStringProperty(XnNodeHandle hInstance, const XnChar *strName, const XnChar *strValue)
Sets a string property.
XN_C_API XnStatus xnGetPoseStatus(XnNodeHandle hInstance, XnUserID userID, const XnChar *poseName, XnUInt64 *poseTime, XnPoseDetectionStatus *eStatus, XnPoseDetectionState *eState)
Gets the current pose status.
Definition: XnTypes.h:552
XnStatus AddNeededNode(const XnChar *strInstanceName)
For full details and usage, see xnNodeQueryAddNeededNode
Definition: XnCppWrapper.h:1379
XN_C_API XnStatus XN_C_DECL xnCreateAnyProductionTree(XnContext *pContext, XnProductionNodeType type, XnNodeQuery *pQuery, XnNodeHandle *phNode, XnEnumerationErrors *pErrors)
Enumerates for production trees for a specific node type, and creates the first found tree...
NodeInfoList()
Definition: XnCppWrapper.h:1507
XN_C_API XnBool XN_C_DECL xnIsJointActive(XnNodeHandle hInstance, XnSkeletonJoint eJoint)
Check if joint is currently active.
FrameSyncCapability GetFrameSyncCap()
Definition: XnCppWrapper.h:2366
#define XN_CAPABILITY_IRIS
Definition: XnTypes.h:317
Definition: XnTypes.h:434
XN_C_API XnStatus XN_C_DECL xnSetWaveOutputMode(XnNodeHandle hInstance, const XnWaveOutputMode *OutputMode)
Definition: XnCppWrapper.h:2136
XN_C_API XnStatus XN_C_DECL xnSetSkeletonSmoothing(XnNodeHandle hInstance, XnFloat fFactor)
Set the skeleton's smoothing factor.
Iterator operator++(int)
Definition: XnCppWrapper.h:1448
const XnChar * GetName() const
Gets the name of the resolution.
Definition: XnCppWrapper.h:6093
XN_C_API XnStatus XN_C_DECL xnGetWaveOutputMode(XnNodeHandle hInstance, XnWaveOutputMode *OutputMode)
XN_C_API XnStatus XN_C_DECL xnSetIntProperty(XnNodeHandle hInstance, const XnChar *strName, XnUInt64 nValue)
Sets an integer property.
XnStatus WaitAnyUpdateAll()
Updates all generators nodes in the context, once any of them have new data. For full details and usa...
Definition: XnCppWrapper.h:5955
XnStatus RegisterToGestureReadyForNextIntermediateStage(GestureReadyForNextIntermediateStage handler, void *pCookie, XnCallbackHandle &hCallback)
Register to when a gesture is ready for its next stage (specific to the gesture) For full details and...
Definition: XnCppWrapper.h:3663
Definition: XnCppWrapper.h:4062
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetMinVersion(XnNodeQuery *pQuery, const XnVersion *pMinVersion)
XnSkeletonProfile
Definition: XnTypes.h:623
GeneralIntCapability GetLowLightCompensationCap()
Definition: XnCppWrapper.h:2937
XN_C_API XnGrayscale16Pixel *XN_C_DECL xnGetGrayscale16ImageMap(XnNodeHandle hInstance)
Gets the current Grayscale16 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in Grayscale16 pixel format.
XnBool IsJointActive(XnSkeletonJoint eJoint) const
Check if joint is currently active. For full details and usage, see xnIsJointActive ...
Definition: XnCppWrapper.h:4117
XnStatus GetFloor(XnPlane3D &Plane) const
Gets a description of the floor, if it was found. For full details and usage, see xnGetFloor ...
Definition: XnCppWrapper.h:3797
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates an IR generator. For full details and usage, see xnCreateIRGenerator
Definition: XnCppWrapper.h:6265
AudioGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5108
XN_C_API XnStatus XN_C_DECL xnRegisterUserCallbacks(XnNodeHandle hInstance, XnUserHandler NewUserCB, XnUserHandler LostUserCB, void *pCookie, XnCallbackHandle *phCallback)
Register to user callbacks.
XN_C_API XnStatus XN_C_DECL xnNodeQueryAddSupportedMapOutputMode(XnNodeQuery *pQuery, const XnMapOutputMode *pMapOutputMode)
Player(const NodeWrapper &other)
Definition: XnCppWrapper.h:2443
XN_C_API XnUChar *XN_C_DECL xnGetAudioBuffer(XnNodeHandle hInstance)
IRGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:3360
XN_C_API XnStatus XN_C_DECL xnLockNodeForChanges(XnNodeHandle hInstance, XnLockHandle *phLock)
Locks a node, not allowing any changes (any "set" function).
XnStatus RegisterToMapOutputModeChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to mode changes. For full details and usage, see xnRegisterToMapOutputM...
Definition: XnCppWrapper.h:2739
XN_C_API void XN_C_DECL xnUnregisterFromGestureIntermediateStageCompleted(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from when a gesture is in progress.
XnStatus AddRef()
Adds a reference to the context object. For full details and usage, see xnContextAddRef ...
Definition: XnCppWrapper.h:5690
XnStatus GetSkeletonJoint(XnUserID user, XnSkeletonJoint eJoint, XnSkeletonJointTransformation &Joint) const
Get a specific joint's full information. For full details and usage, see xnGetSkeletonJoint ...
Definition: XnCppWrapper.h:4149
XnStatus SetSkeletonProfile(XnSkeletonProfile eProfile)
Set the profile. this will set some joints to be active, and others to be inactive. For full details and usage, see xnSetSkeletonProfile
Definition: XnCppWrapper.h:4092
XN_C_API XnStatus XN_C_DECL xnRegisterToGestureIntermediateStageCompleted(XnNodeHandle hInstance, XnGestureIntermediateStageCompleted handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when a gesture is in progress.
Codec(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:5270
XnStatus FindExistingNode(XnProductionNodeType type, ProductionNode &node) const
For full details and usage, see xnFindExistingNodeByType
Definition: XnCppWrapper.h:5841
XN_C_API const XnChar *XN_C_DECL xnGetNodeName(XnNodeHandle hNode)
Gets the instance name of a node by its handle.
XN_C_API XnStatus XN_C_DECL xnProductionNodeAddRef(XnNodeHandle hNode)
References a production node, increasing its reference count by 1.
Definition: XnCppWrapper.h:2376
XN_C_API XnStatus XN_C_DECL xnResetSkeleton(XnNodeHandle hInstance, XnUserID user)
Reset the skeleton - discard calibration.
void UnregisterFromCalibrationComplete(XnCallbackHandle hCallback)
Unregister from calibration complete with status. For full details and usage, see xnUnregisterFromCal...
Definition: XnCppWrapper.h:4479
XnBool operator!=(const Iterator &other) const
Definition: XnCppWrapper.h:5383
XN_C_API XnStatus XN_C_DECL xnGetFloor(XnNodeHandle hInstance, XnPlane3D *pPlane)
Gets a description of the floor, if it was found.
Definition: XnCppWrapper.h:3388
AlternativeViewPointCapability GetAlternativeViewPointCap()
Definition: XnCppWrapper.h:2346
XN_C_API XnStatus XN_C_DECL xnCopyDepthMetaData(XnDepthMetaData *pDestination, const XnDepthMetaData *pSource)
Shallow-Copies a Depth Meta Data object. Note that the data buffer is not copied, and that both objec...
XN_C_API XnStatus XN_C_DECL xnResetViewPoint(XnNodeHandle hInstance)
Sets the view point of this generator to its normal one.
XnPixelFormat
Definition: XnTypes.h:490
#define XN_CAPABILITY_PAN
Definition: XnTypes.h:312
XN_C_API XnStatus XN_C_DECL xnMockAudioSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnUInt8 *pData)
const HandTouchingFOVEdgeCapability GetHandTouchingFOVEdgeCap() const
Definition: XnCppWrapper.h:4004
XnStatus GetErrorState() const
Gets current error state of this node. For full details and usage, see xnGetNodeErrorState ...
Definition: XnCppWrapper.h:1693
XN_C_API void XN_C_DECL xnUnregisterUserCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from user callbacks.
Iterator operator++(int)
Definition: XnCppWrapper.h:5402
XnStatus GetActiveGestures(XnChar *&astrGestures, XnUInt16 &nGestures) const
Get the names of the gestures that are currently active. For full details and usage, see xnGetActiveGestures
Definition: XnCppWrapper.h:3484
XnStatus LoadScriptFromString(const XnChar *strScript)
Definition: XnCppWrapper.h:5330
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6274
XN_C_API void XN_C_DECL xnFreeLicensesList(XnLicense *aLicenses)
XN_C_API XnStatus XN_C_DECL xnGetGeneralIntValue(XnNodeHandle hNode, const XnChar *strCap, XnInt32 *pnValue)
Gets the current value of this capability.
XnBool IsEmpty()
For full details and usage, see xnNodeInfoListIsEmpty
Definition: XnCppWrapper.h:1630
XnUInt32 GetNumberOfPoses() const
Get the number of the supported poses. For full details and usage, see xnGetNumberOfPoses ...
Definition: XnCppWrapper.h:4592
XN_C_API const XnChar *XN_C_DECL xnScriptNodeGetSupportedFormat(XnNodeHandle hScript)
XN_C_API const XnLabel *XN_C_DECL xnGetLabelMap(XnNodeHandle hInstance)
Gets the label map, describing the current segmentation of the scene.
void UnregisterFromFrameSyncChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToFrameSyncChange(). For full details and usage, see xnUnregisterFromFrameSyncChange
Definition: XnCppWrapper.h:2178
HandTouchingFOVEdgeCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:3815
Iterator Begin() const
Gets an iterator to the first item in the list.
Definition: XnCppWrapper.h:1578
ErrorStateCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:1687
XN_C_API void xnUnregisterFromOutOfPose(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from out of pose callback.
GeneralIntCapability GetGainCap()
Definition: XnCppWrapper.h:2857
Definition: XnTypes.h:539
XnStatus SetGeneralProperty(const XnChar *strName, XnUInt32 nBufferSize, const void *pBuffer)
Sets a buffer property. For full details and usage, see xnSetGeneralProperty
Definition: XnCppWrapper.h:1847
Context(XnContext *pContext)
Definition: XnCppWrapper.h:5471
XnBool CanFrameSyncWith(Generator &other) const
Checks if this generator can frame sync to another node. For full details and usage, see xnCanFrameSyncWith
Definition: XnCppWrapper.h:6138
void LockedNodeEndChanges(XnLockHandle hLock)
Ends changes request on a locked node. For full details and usage, see xnLockedNodeEndChanges ...
Definition: XnCppWrapper.h:1911
static XnStatus RegisterToUnderlying(_XnRegisterStateChangeFuncPtr xnFunc, XnNodeHandle hNode, StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Definition: XnCppWrapper.h:6423
MapGenerator(const NodeWrapper &other)
Definition: XnCppWrapper.h:2694
XnStatus GetProductionNodeByName(const XnChar *strInstanceName, ProductionNode &node) const
For full details and usage, see xnGetNodeHandleByName
Definition: XnCppWrapper.h:5857
XN_C_API XnNodeInfoListIterator XN_C_DECL xnNodeInfoListGetFirst(XnNodeInfoList *pList)
XN_C_API XnStatus XN_C_DECL xnTellPlayerTimestamp(XnNodeHandle hPlayer, XnUInt64 *pnTimestamp)
Reports the current timestamp of a player, i.e. the amount of time passed since the beginning of the ...
void UnregisterFromErrorStateChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGlobalErrorStateChange(). For full details and usage, see xnUnregisterFromGlobalErrorStateChange
Definition: XnCppWrapper.h:5939
void GetMetaData(AudioMetaData &metaData) const
Gets the current audio meta data. For full details and usage, see xnGetAudioMetaData ...
Definition: XnCppWrapper.h:5119
GestureGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3457
XnStatus SetJointActive(XnSkeletonJoint eJoint, XnBool bState)
Change the state of a specific joint, to be active or inactive. For full details and usage...
Definition: XnCppWrapper.h:4100
XN_C_API XnStatus XN_C_DECL xnSetJointActive(XnNodeHandle hInstance, XnSkeletonJoint eJoint, XnBool bState)
Change the state of a specific joint, to be active or inactive.
XnStatus Create(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
Creates an audio generator. For full details and usage, see xnCreateAudioGenerator ...
Definition: XnCppWrapper.h:6331
Definition: XnCppWrapper.h:1405
XN_C_API XnStatus XN_C_DECL xnGetGeneralIntRange(XnNodeHandle hNode, const XnChar *strCap, XnInt32 *pnMin, XnInt32 *pnMax, XnInt32 *pnStep, XnInt32 *pnDefault, XnBool *pbIsAutoSupported)
Gets the range of this capability values.
GeneralIntCapability GetBacklightCompensationCap()
Definition: XnCppWrapper.h:2847
XN_C_API XnStatus XN_C_DECL xnStopFrameSyncWith(XnNodeHandle hInstance, XnNodeHandle hOther)
Stops frame sync with the other node.
ErrorStateCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:1688
GeneralIntCapability GetSharpnessCap()
Definition: XnCppWrapper.h:2817
SkeletonCapability(XnNodeHandle hNode)
Definition: XnCppWrapper.h:4070
XN_C_API XnStatus XN_C_DECL xnEnumerateGestures(XnNodeHandle hInstance, XnChar **pstrGestures, XnUInt16 *nGestures)
Get the names of all gestures available.
XnStatus TellFrame(const XnChar *strNodeName, XnUInt32 &nFrame) const
Reports the current frame number of a specific node played by a player. For full details and usage...
Definition: XnCppWrapper.h:2509
void UnregisterFromCroppingChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToCroppingChange(). For full details and usage, see xnUnregisterFromCroppingChange
Definition: XnCppWrapper.h:2627
XN_C_API XnStatus XN_C_DECL xnGetGlobalErrorState(XnContext *pContext)
Gets the global error state of the context. If one of the nodes in the context is in error state...
XnDirection
Definition: XnTypes.h:677
Iterator & operator--()
Definition: XnCppWrapper.h:1458
XN_C_API XnStatus XN_C_DECL xnGetSupportedWaveOutputModes(XnNodeHandle hInstance, XnWaveOutputMode *aSupportedModes, XnUInt32 *pnCount)
Definition: XnCppWrapper.h:2589
XN_C_API XnStatus XN_C_DECL xnNodeInfoListClear(XnNodeInfoList *pList)
XnStatus StartTracking(XnUserID user)
Start tracking a skeleton. For full details and usage, see xnStartSkeletonTracking ...
Definition: XnCppWrapper.h:4261
XN_C_API XnStatus XN_C_DECL xnMockImageSetData(XnNodeHandle hInstance, XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnUInt8 *pData)
XN_C_API XnStatus XN_C_DECL xnEnumerateExistingNodes(XnContext *pContext, XnNodeInfoList **ppList)
Gets a list of all existing node in the context. Each node that was returned increases its ref count...
XN_C_API XnStatus xnRegisterToPoseDetected(XnNodeHandle hInstance, XnPoseDetectionCallback handler, void *pCookie, XnCallbackHandle *phCallback)
Register to callback when a user is in pose.
XnStatus RegisterGestureCallbacks(GestureRecognized RecognizedCB, GestureProgress ProgressCB, void *pCookie, XnCallbackHandle &hCallback)
For full details and usage, see RegisterGestureCallbacks For full details and usage, see RegisterGestureCallbacks
Definition: XnCppWrapper.h:3561
ScriptNode(const NodeWrapper &other)
Definition: XnCppWrapper.h:5316
XnStatus GetWaveOutputMode(XnWaveOutputMode &OutputMode) const
For full details and usage, see xnGetWaveOutputMode
Definition: XnCppWrapper.h:5159
XnStatus SetData(XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnDepthPixel *pDepthMap)
For full details and usage, see xnMockDepthSetData
Definition: XnCppWrapper.h:3148
Definition: XnTypes.h:494
Resolution(const XnChar *strName)
Definition: XnCppWrapper.h:6078
Generator(const NodeWrapper &other)
Definition: XnCppWrapper.h:2197
GeneralIntCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:1729
XnStatus RegisterToUserPositionChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to user position changes. For full details and usage, see xnRegisterToUserPositionChange
Definition: XnCppWrapper.h:2995
XnStatus SetCropping(const XnCropping &Cropping)
Sets the cropping. For full details and usage, see xnSetCropping
Definition: XnCppWrapper.h:2603
const MirrorCapability GetMirrorCap() const
Definition: XnCppWrapper.h:2316
struct XnContext XnContext
Definition: XnTypes.h:77
NodeWrapper(const NodeWrapper &other)
Definition: XnCppWrapper.h:1031
UserPositionCapability(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2965
DeviceIdentificationCapability GetIdentificationCap()
Definition: XnCppWrapper.h:2014
#define XN_CODEC_NULL
Definition: XnCodecIDs.h:27
XnStatus Remove(Iterator &it)
For full details and usage, see xnNodeInfoListRemove
Definition: XnCppWrapper.h:1606
XN_C_API const XnChar *XN_C_DECL xnNodeInfoGetCreationInfo(XnNodeInfo *pNodeInfo)
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetName(XnNodeQuery *pQuery, const XnChar *strName)
XN_C_API XnBool XN_C_DECL xnNeedPoseForSkeletonCalibration(XnNodeHandle hInstance)
Check if a specific pose is required for calibration.
XN_C_API XnUInt32 XN_C_DECL xnGetDataSize(XnNodeHandle hInstance)
Gets the size of current data, in bytes.
XnStatus SetMinVersion(const XnVersion &minVersion)
For full details and usage, see xnNodeQuerySetMinVersion
Definition: XnCppWrapper.h:1331
XN_C_API void XN_C_DECL xnUnregisterCalibrationCallbacks(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from calibration callbacks.
const XnGrayscale16Pixel * GetGrayscale16ImageMap() const
Gets the current Grayscale16 image-map. This map is updated after a call to xnWaitAndUpdateData(). It is assumed that the node is currently in Grayscale16 pixel format. For full details and usage, see xnGetGrayscale16ImageMap
Definition: XnCppWrapper.h:3231
Definition: XnTypes.h:106
Definition: XnCppWrapper.h:3013
XnStatus OpenFileRecording(const XnChar *strFileName, ProductionNode &playerNode)
Opens a recording file, adding all nodes in it to the context. NOTE: when using this function...
Definition: XnCppWrapper.h:5626
XnBool operator==(const Iterator &other) const
Definition: XnCppWrapper.h:5373
XnStatus AddNeededNode(ProductionNode &needed)
Adds another node to the list of needed nodes for this node. For full details and usage...
Definition: XnCppWrapper.h:1794
struct XnModuleError * XnEnumerationErrorsIterator
Definition: XnEnumerationErrors.h:57
XN_C_API XnStatus XN_C_DECL xnGetGeneralProperty(XnNodeHandle hInstance, const XnChar *strName, XnUInt32 nBufferSize, void *pBuffer)
Gets a buffer property.
Version(const XnVersion &version)
Definition: XnCppWrapper.h:79
GeneralIntCapability GetIrisCap()
Definition: XnCppWrapper.h:2917
XnStatus Create(Context &context, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6340
XN_C_API XnBool XN_C_DECL xnIsViewPointSupported(XnNodeHandle hInstance, XnNodeHandle hOther)
Checks if this generator can change its output to look like it was taken from a different location...
#define XN_CAPABILITY_CONTRAST
Definition: XnTypes.h:304
XnStatus GetIntProperty(const XnChar *strName, XnUInt64 &nValue) const
Gets an integer property. For full details and usage, see xnGetIntProperty
Definition: XnCppWrapper.h:1855
XnStatus SetMapOutputMode(const XnMapOutputMode &OutputMode)
Sets the output mode. For full details and usage, see xnSetMapOutputMode
Definition: XnCppWrapper.h:2715
XnStatus RegisterToPoseInProgress(PoseInProgress handler, void *pCookie, XnCallbackHandle &hCallback)
Register to callback for status when pose is detected. For full details and usage, see xnRegisterToPoseDetectionInProgress
Definition: XnCppWrapper.h:4759
XN_C_API XnStatus XN_C_DECL xnGetUsers(XnNodeHandle hInstance, XnUserID *pUsers, XnUInt16 *pnUsers)
Get the current users.
Definition: XnCppWrapper.h:2957
Definition: XnCppWrapper.h:1016
XN_C_API XnStatus XN_C_DECL xnSetTrackingSmoothing(XnNodeHandle hInstance, XnFloat fFactor)
Change smoothing factor.
void UnregisterGestureCallbacks(XnCallbackHandle hCallback)
Unregister from gesture callbacks. For full details and usage, see xnUnregisterGestureCallbacks ...
Definition: XnCppWrapper.h:3586
XN_C_API XnResolution XN_C_DECL xnResolutionGetFromName(const XnChar *strName)
#define XN_CAPABILITY_BRIGHTNESS
Definition: XnTypes.h:303
Definition: XnCppWrapper.h:1993
XN_C_API void XN_C_DECL xnUnregisterFromGestureReadyForNextIntermediateStage(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from when a gesture is ready for its next stage.
Definition: XnCppWrapper.h:34
XN_C_API void XN_C_DECL xnUnregisterFromJointConfigurationChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from joint configuration changes.
XnResolution
Definition: XnTypes.h:386
Version(XnUInt8 nMajor, XnUInt8 nMinor, XnUInt16 nMaintenance, XnUInt32 nBuild)
Definition: XnCppWrapper.h:80
void UnregisterFromPoseInProgress(XnCallbackHandle hCallback)
Unregister from pose status callback. For full details and usage, see xnUnregisterFromPoseDetectionIn...
Definition: XnCppWrapper.h:4783
XnBool IsTracking(XnUserID user) const
Check if skeleton is being tracked. For full details and usage, see xnIsSkeletonTracking ...
Definition: XnCppWrapper.h:4173
Definition: XnCppWrapper.h:1719
XnStatus SetExistingNodeOnly(XnBool bExistingNode)
For full details and usage, see xnNodeQuerySetExistingNodeOnly
Definition: XnCppWrapper.h:1371
ProductionNode(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:1783
An iterator over enumeration errors.
Definition: XnCppWrapper.h:5363
XnBool IsCalibrating(XnUserID user) const
Check if skeleton is being calibrated. For full details and usage, see xnIsSkeletonCalibrating ...
Definition: XnCppWrapper.h:4189
const XnLabel * GetLabelMap() const
Gets the label map, describing the current segmentation of the scene. For full details and usage...
Definition: XnCppWrapper.h:3789
UserPositionCapability(const NodeWrapper &node)
Definition: XnCppWrapper.h:2966
XN_C_API XnStatus XN_C_DECL xnGetRefNodeHandleByName(XnContext *pContext, const XnChar *strInstanceName, XnNodeHandle *phNode)
Gets a handle to an existing production node instance using that instance name.
XN_C_API XnStatus XN_C_DECL xnNodeQuerySetVendor(XnNodeQuery *pQuery, const XnChar *strVendor)
void UnregisterFromPowerLineFrequencyChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToPowerLineFrequencyChange(). For full details and usage, see xnUnregisterFromPowerLineFrequencyChange
Definition: XnCppWrapper.h:2675
XN_C_API XnStatus XN_C_DECL xnDecodeData(XnNodeHandle hCodec, const void *pSrc, XnUInt32 nSrcSize, void *pDst, XnUInt32 nDstSize, XnUInt *pnBytesWritten)
XnStatus RegisterToNewDataAvailable(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to be called when new data is available. For full details and usage...
Definition: XnCppWrapper.h:2242
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:1734
ProductionNode(const NodeWrapper &other)
Definition: XnCppWrapper.h:1784
void UnregisterFromGenerationRunningChange(XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToGenerationRunningChange(). For full details and usage, see xnUnregisterFromGenerationRunningChange
Definition: XnCppWrapper.h:2234
void ReplaceUnderlyingObject(XnNodeInfoList *pList)
Definition: XnCppWrapper.h:1536
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...
void(* StateChangedHandler)(ProductionNode &node, void *pCookie)
Definition: XnCppWrapper.h:62
XN_C_API XnStatus XN_C_DECL xnNodeInfoListAllocate(XnNodeInfoList **ppList)
NodeInfo(const NodeInfo &other)
Definition: XnCppWrapper.h:1178
XN_C_API XnUInt32 XN_C_DECL xnGetBytesPerPixel(XnNodeHandle hInstance)
Gets the number of bytes per pixel for this map generator.
XN_C_API XnStatus XN_C_DECL xnRemoveGesture(XnNodeHandle hInstance, const XnChar *strGesture)
Turn off gesture. The generator will no longer look for this gesture.
const XnUChar * GetAudioBuffer() const
For full details and usage, see xnGetAudioBuffer
Definition: XnCppWrapper.h:5127
XnBool IsCalibrationData(XnUInt32 nSlot) const
Check if a specific slot already holds calibration data. For full details and usage, see xnIsSkeletonCalibrationData
Definition: XnCppWrapper.h:4253
XnStatus GetTreeStringRepresentation(XnChar *csResultBuffer, XnUInt32 nBufferSize) const
For full details and usage, see xnNodeInfoGetTreeStringRepresentation
Definition: XnCppWrapper.h:1263
void UnlockForChanges(XnLockHandle hLock)
Unlocks a previously locked node. For full details and usage, see xnUnlockNodeForChanges ...
Definition: XnCppWrapper.h:1895
XN_C_API XnUInt32 XN_C_DECL xnResolutionGetYRes(XnResolution resolution)
MapGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:2693
Capability(const NodeWrapper &node)
Definition: XnCppWrapper.h:1672
DepthGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3021
XN_C_API XnStatus XN_C_DECL xnLoadSkeletonCalibrationData(XnNodeHandle hInstance, XnUserID user, XnUInt32 nSlot)
Load previously saved calibration data.
GeneralIntCapability GetRollCap()
Definition: XnCppWrapper.h:2887
XnStatus GetRealProperty(const XnChar *strName, XnDouble &dValue) const
Gets a real property. For full details and usage, see xnGetRealProperty
Definition: XnCppWrapper.h:1863
XN_C_API XnStatus XN_C_DECL xnRegisterToFrameSyncChange(XnNodeHandle hInstance, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to view point changes.
#define XN_CAPABILITY_TILT
Definition: XnTypes.h:313
const XnProductionNodeDescription & GetDescription() const
For full details and usage, see xnNodeInfoGetDescription()
Definition: XnCppWrapper.h:1217
XnStatus CreateBasedOn(ImageGenerator &other, const XnChar *strName=NULL)
Definition: XnCppWrapper.h:6254
XnDepthPixel GetDeviceMaxDepth() const
Gets the maximum depth the device can produce. For full details and usage, see xnGetDeviceMaxDepth ...
Definition: XnCppWrapper.h:3048
XN_C_API XnStatus XN_C_DECL xnRequestSkeletonCalibration(XnNodeHandle hInstance, XnUserID user, XnBool bForce)
Request calibration when possible.
XnStatus GetSupportedMapOutputModes(XnMapOutputMode *aModes, XnUInt32 &nCount) const
Gets a list of all supported modes. The size of the array that should be passed can be obtained by ca...
Definition: XnCppWrapper.h:2707
XnStatus RegisterToGenerationRunningChange(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to be called when generation starts or stops. For full details and usag...
Definition: XnCppWrapper.h:2226
XnStatus Create(Context &context, const XnChar *strFormat)
Definition: XnCppWrapper.h:6383
XN_C_API XnStatus XN_C_DECL xnSetRecorderDestination(XnNodeHandle hRecorder, XnRecordMedium destType, const XnChar *strDest)
Tells the recorder where to record.
XnStatus RegisterToEndOfFileReached(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
Registers a callback function to be called when end-of-file is reached. For full details and usage...
Definition: XnCppWrapper.h:2555
void UnregisterFromPoseDetected(XnCallbackHandle hCallback)
Unregister from pose detected callback. For full details and usage, see xnUnregisterFromPoseDetected ...
Definition: XnCppWrapper.h:4730
XnStatus WaitOneUpdateAll(ProductionNode &node)
Updates all generators nodes in the context, waiting for a specific one to have new data...
Definition: XnCppWrapper.h:5963
XN_C_API XnBool XN_C_DECL xnGetGlobalMirror(XnContext *pContext)
Gets the global mirror flag.
XN_C_API void XN_C_DECL xnUnregisterFromCalibrationInProgress(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregister from calibration status while in progress.
XN_C_API XnStatus XN_C_DECL xnLoadScriptFromString(XnNodeHandle hScript, const XnChar *strScript)
#define XN_CAPABILITY_ZOOM
Definition: XnTypes.h:315
XN_C_API XnStatus XN_C_DECL xnGetDeviceName(XnNodeHandle hInstance, XnChar *strBuffer, XnUInt32 *pnBufferSize)
XN_C_API XnStatus XN_C_DECL xnRegisterToGeneralIntValueChange(XnNodeHandle hNode, const XnChar *strCap, XnStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Registers a callback function to values changes.
XnStatus StopPoseDetection(XnUserID user)
Stop detection of poses for a specific user. For full details and usage, see xnStopPoseDetection ...
Definition: XnCppWrapper.h:4633
XnStatus CreateAnyProductionTree(XnProductionNodeType type, Query *pQuery, ProductionNode &node, EnumerationErrors *pErrors=NULL)
Enumerates for production trees for a specific node type, and creates the first found tree...
Definition: XnCppWrapper.h:5763
XN_C_API void XN_C_DECL xnForceShutdown(XnContext *pContext)
Forces a context to shutdown, destroying all nodes. This function is used for backwards compatibility...
XnStatus SetGlobalMirror(XnBool bMirror)
Sets the global mirror flag. This will set all current existing nodes' mirror state, and also affect future created nodes. The default mirror flag is FALSE. For full details and usage, see xnSetGlobalMirror
Definition: XnCppWrapper.h:5907
MockDepthGenerator(XnNodeHandle hNode=NULL)
Definition: XnCppWrapper.h:3126
XnStatus AddNodeFromAnotherList(Iterator &it)
For full details and usage, see xnNodeInfoListAddNodeFromList
Definition: XnCppWrapper.h:1572
MirrorCapability GetMirrorCap()
Definition: XnCppWrapper.h:2326
XnStatus StopGenerating()
Stops generation of the output. For full details and usage, see xnStopGenerating
Definition: XnCppWrapper.h:2218
XN_C_API XnStatus XN_C_DECL xnRegisterToUserExit(XnNodeHandle hInstance, XnUserHandler handler, void *pCookie, XnCallbackHandle *phCallback)
Register to when the user exits the scene (but not lost yet)
XnStatus EnumerateExistingNodes(NodeInfoList &list) const
Gets a list of all existing node in the context. Each node that was returned increases its ref count...
Definition: XnCppWrapper.h:5813
XN_C_API XnStatus XN_C_DECL xnCreateUserGenerator(XnContext *pContext, XnNodeHandle *phUserGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
Creates a user generator.
XnStatus SetData(const IRMetaData &irMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
Definition: XnCppWrapper.h:3429
XN_C_API void XN_C_DECL xnContextRelease(XnContext *pContext)
Releases a context object, decreasing its ref count by 1. If reference count has reached 0...
XN_C_API void XN_C_DECL xnUnregisterFromNodeErrorStateChange(XnNodeHandle hInstance, XnCallbackHandle hCallback)
Unregisters a callback function which was registered using xnRegisterToNodeErrorStateChange().
void GetMetaData(DepthMetaData &metaData) const
Gets the current depth-map meta data. For full details and usage, see xnGetDepthMetaData ...
Definition: XnCppWrapper.h:3032
XnStatus StopFrameSyncWith(Generator &other)
Stops frame sync with the other node. For full details and usage, see xnStopFrameSyncWith ...
Definition: XnCppWrapper.h:6148
XnStatus WaitNoneUpdateAll()
Updates all generator nodes in the context, without any waiting. If a node has new data...
Definition: XnCppWrapper.h:5971