diff --git a/Source/XnDeviceSensorV2/XnSensorDepthGenerator.cpp b/Source/XnDeviceSensorV2/XnSensorDepthGenerator.cpp index eaff6f1..4c35941 100644 --- a/Source/XnDeviceSensorV2/XnSensorDepthGenerator.cpp +++ b/Source/XnDeviceSensorV2/XnSensorDepthGenerator.cpp @@ -244,6 +244,12 @@ XnStatus XnSensorDepthGenerator::SetViewPoint(xn::ProductionNode& OtherNode) } } +XnStatus +XnSensorDepthGenerator::GetPixelCoordinatesInViewPoint(xn::ProductionNode& other, XnUInt32 x, XnUInt32 y, XnUInt32& altX, XnUInt32& altY) +{ + return 0; +} + XnStatus XnSensorDepthGenerator::ResetViewPoint() { return SetIntProperty(XN_STREAM_PROPERTY_REGISTRATION, FALSE); diff --git a/Source/XnDeviceSensorV2/XnSensorDepthGenerator.h b/Source/XnDeviceSensorV2/XnSensorDepthGenerator.h index 2e7aaf0..67d7b17 100644 --- a/Source/XnDeviceSensorV2/XnSensorDepthGenerator.h +++ b/Source/XnDeviceSensorV2/XnSensorDepthGenerator.h @@ -67,6 +67,7 @@ class XnSensorDepthGenerator : xn::ModuleAlternativeViewPointInterface* GetAlternativeViewPointInterface() { return this; } XnBool IsViewPointSupported(xn::ProductionNode& OtherNode); XnStatus SetViewPoint(xn::ProductionNode& OtherNode); + XnStatus GetPixelCoordinatesInViewPoint(xn::ProductionNode& other, XnUInt32 x, XnUInt32 y, XnUInt32& altX, XnUInt32& altY); XnStatus ResetViewPoint(); XnBool IsViewPointAs(xn::ProductionNode& OtherNode); XnStatus RegisterToViewPointChange(XnModuleStateChangedHandler handler, void* pCookie, XnCallbackHandle& hCallback); @@ -106,4 +107,4 @@ class XnExportedSensorDepthGenerator : public XnExportedSensorGenerator #pragma warning (pop) -#endif // __XN_SENSOR_DEPTH_GENERATOR_H__ \ No newline at end of file +#endif // __XN_SENSOR_DEPTH_GENERATOR_H__