26
26
#include < XnOpenNI.h>
27
27
#include < XnOS.h>
28
28
#include < XnPsVersion.h>
29
- #include < XnCommon/XnCommon .h>
29
+ #include < XnCommon.h>
30
30
#include < math.h>
31
31
32
32
// ---------------------------------------------------------------------------
@@ -50,11 +50,11 @@ XnSensorDepthGenerator::~XnSensorDepthGenerator()
50
50
XnStatus XnSensorDepthGenerator::Init ()
51
51
{
52
52
XnStatus nRetVal = XN_STATUS_OK;
53
-
53
+
54
54
nRetVal = XnSensorMapGenerator::Init ();
55
55
XN_IS_STATUS_OK (nRetVal);
56
56
57
- const XnChar* aProps[] =
57
+ const XnChar* aProps[] =
58
58
{
59
59
XN_STREAM_PROPERTY_ZERO_PLANE_DISTANCE,
60
60
XN_STREAM_PROPERTY_ZERO_PLANE_PIXEL_SIZE,
@@ -103,7 +103,7 @@ void XnSensorDepthGenerator::GetFieldOfView(XnFieldOfView& FOV)
103
103
104
104
XnStatus XnSensorDepthGenerator::RegisterToFieldOfViewChange (XnModuleStateChangedHandler handler, void * pCookie, XnCallbackHandle& hCallback)
105
105
{
106
- return m_fovChangedEvent.Register (handler, pCookie, & hCallback);
106
+ return m_fovChangedEvent.Register (handler, pCookie, hCallback);
107
107
}
108
108
109
109
void XnSensorDepthGenerator::UnregisterFromFieldOfViewChange (XnCallbackHandle hCallback)
@@ -180,7 +180,7 @@ XnStatus XnSensorDepthGenerator::GetUserPosition(XnUInt32 nIndex, XnBoundingBox3
180
180
181
181
XnStatus XnSensorDepthGenerator::RegisterToUserPositionChange (XnModuleStateChangedHandler handler, void * pCookie, XnCallbackHandle& hCallback)
182
182
{
183
- const XnChar* aProps[] =
183
+ const XnChar* aProps[] =
184
184
{
185
185
XN_STREAM_PROPERTY_AGC_BIN,
186
186
NULL
@@ -244,6 +244,11 @@ XnStatus XnSensorDepthGenerator::SetViewPoint(xn::ProductionNode& OtherNode)
244
244
}
245
245
}
246
246
247
+ XnStatus XnSensorDepthGenerator::GetPixelCoordinatesInViewPoint (xn::ProductionNode& other, XnUInt32 x, XnUInt32 y, XnUInt32& altX, XnUInt32& altY)
248
+ {
249
+ return 0 ;
250
+ }
251
+
247
252
XnStatus XnSensorDepthGenerator::ResetViewPoint ()
248
253
{
249
254
return SetIntProperty (XN_STREAM_PROPERTY_REGISTRATION, FALSE );
@@ -259,7 +264,7 @@ XnBool XnSensorDepthGenerator::IsViewPointAs(xn::ProductionNode& OtherNode)
259
264
260
265
XnStatus XnSensorDepthGenerator::RegisterToViewPointChange (XnModuleStateChangedHandler handler, void * pCookie, XnCallbackHandle& hCallback)
261
266
{
262
- const XnChar* aProps[] =
267
+ const XnChar* aProps[] =
263
268
{
264
269
XN_STREAM_PROPERTY_REGISTRATION,
265
270
NULL
@@ -306,7 +311,7 @@ XnBool XnSensorDepthGenerator::IsFrameSyncedWith(xn::ProductionNode& OtherNode)
306
311
307
312
XnStatus XnSensorDepthGenerator::RegisterToFrameSyncChange (XnModuleStateChangedHandler handler, void * pCookie, XnCallbackHandle& hCallback)
308
313
{
309
- const XnChar* aProps[] =
314
+ const XnChar* aProps[] =
310
315
{
311
316
XN_MODULE_PROPERTY_FRAME_SYNC,
312
317
NULL
0 commit comments