2626#include < XnOpenNI.h>
2727#include < XnOS.h>
2828#include < XnPsVersion.h>
29- #include < XnCommon/XnCommon .h>
29+ #include < XnCommon.h>
3030#include < math.h>
3131
3232// ---------------------------------------------------------------------------
@@ -50,11 +50,11 @@ XnSensorDepthGenerator::~XnSensorDepthGenerator()
5050XnStatus XnSensorDepthGenerator::Init ()
5151{
5252 XnStatus nRetVal = XN_STATUS_OK;
53-
53+
5454 nRetVal = XnSensorMapGenerator::Init ();
5555 XN_IS_STATUS_OK (nRetVal);
5656
57- const XnChar* aProps[] =
57+ const XnChar* aProps[] =
5858 {
5959 XN_STREAM_PROPERTY_ZERO_PLANE_DISTANCE,
6060 XN_STREAM_PROPERTY_ZERO_PLANE_PIXEL_SIZE,
@@ -103,7 +103,7 @@ void XnSensorDepthGenerator::GetFieldOfView(XnFieldOfView& FOV)
103103
104104XnStatus XnSensorDepthGenerator::RegisterToFieldOfViewChange (XnModuleStateChangedHandler handler, void * pCookie, XnCallbackHandle& hCallback)
105105{
106- return m_fovChangedEvent.Register (handler, pCookie, & hCallback);
106+ return m_fovChangedEvent.Register (handler, pCookie, hCallback);
107107}
108108
109109void XnSensorDepthGenerator::UnregisterFromFieldOfViewChange (XnCallbackHandle hCallback)
@@ -180,7 +180,7 @@ XnStatus XnSensorDepthGenerator::GetUserPosition(XnUInt32 nIndex, XnBoundingBox3
180180
181181XnStatus XnSensorDepthGenerator::RegisterToUserPositionChange (XnModuleStateChangedHandler handler, void * pCookie, XnCallbackHandle& hCallback)
182182{
183- const XnChar* aProps[] =
183+ const XnChar* aProps[] =
184184 {
185185 XN_STREAM_PROPERTY_AGC_BIN,
186186 NULL
@@ -244,6 +244,11 @@ XnStatus XnSensorDepthGenerator::SetViewPoint(xn::ProductionNode& OtherNode)
244244 }
245245}
246246
247+ XnStatus XnSensorDepthGenerator::GetPixelCoordinatesInViewPoint (xn::ProductionNode& other, XnUInt32 x, XnUInt32 y, XnUInt32& altX, XnUInt32& altY)
248+ {
249+ return 0 ;
250+ }
251+
247252XnStatus XnSensorDepthGenerator::ResetViewPoint ()
248253{
249254 return SetIntProperty (XN_STREAM_PROPERTY_REGISTRATION, FALSE );
@@ -259,7 +264,7 @@ XnBool XnSensorDepthGenerator::IsViewPointAs(xn::ProductionNode& OtherNode)
259264
260265XnStatus XnSensorDepthGenerator::RegisterToViewPointChange (XnModuleStateChangedHandler handler, void * pCookie, XnCallbackHandle& hCallback)
261266{
262- const XnChar* aProps[] =
267+ const XnChar* aProps[] =
263268 {
264269 XN_STREAM_PROPERTY_REGISTRATION,
265270 NULL
@@ -306,7 +311,7 @@ XnBool XnSensorDepthGenerator::IsFrameSyncedWith(xn::ProductionNode& OtherNode)
306311
307312XnStatus XnSensorDepthGenerator::RegisterToFrameSyncChange (XnModuleStateChangedHandler handler, void * pCookie, XnCallbackHandle& hCallback)
308313{
309- const XnChar* aProps[] =
314+ const XnChar* aProps[] =
310315 {
311316 XN_MODULE_PROPERTY_FRAME_SYNC,
312317 NULL
0 commit comments