New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed missing virtual function #5

Open
wants to merge 1 commit into
base: unstable
from
Jump to file or symbol
Failed to load files and symbols.
+15 −9
Diff settings

Always

Just for now

@@ -50,11 +50,11 @@ XnSensorDepthGenerator::~XnSensorDepthGenerator()
XnStatus XnSensorDepthGenerator::Init() XnStatus XnSensorDepthGenerator::Init()
{ {
XnStatus nRetVal = XN_STATUS_OK; XnStatus nRetVal = XN_STATUS_OK;
nRetVal = XnSensorMapGenerator::Init(); nRetVal = XnSensorMapGenerator::Init();
XN_IS_STATUS_OK(nRetVal); XN_IS_STATUS_OK(nRetVal);
const XnChar* aProps[] = const XnChar* aProps[] =
{ {
XN_STREAM_PROPERTY_ZERO_PLANE_DISTANCE, XN_STREAM_PROPERTY_ZERO_PLANE_DISTANCE,
XN_STREAM_PROPERTY_ZERO_PLANE_PIXEL_SIZE, XN_STREAM_PROPERTY_ZERO_PLANE_PIXEL_SIZE,
@@ -180,7 +180,7 @@ XnStatus XnSensorDepthGenerator::GetUserPosition(XnUInt32 nIndex, XnBoundingBox3
XnStatus XnSensorDepthGenerator::RegisterToUserPositionChange(XnModuleStateChangedHandler handler, void* pCookie, XnCallbackHandle& hCallback) XnStatus XnSensorDepthGenerator::RegisterToUserPositionChange(XnModuleStateChangedHandler handler, void* pCookie, XnCallbackHandle& hCallback)
{ {
const XnChar* aProps[] = const XnChar* aProps[] =
{ {
XN_STREAM_PROPERTY_AGC_BIN, XN_STREAM_PROPERTY_AGC_BIN,
NULL NULL
@@ -244,6 +244,11 @@ 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() XnStatus XnSensorDepthGenerator::ResetViewPoint()
{ {
return SetIntProperty(XN_STREAM_PROPERTY_REGISTRATION, FALSE); return SetIntProperty(XN_STREAM_PROPERTY_REGISTRATION, FALSE);
@@ -259,7 +264,7 @@ XnBool XnSensorDepthGenerator::IsViewPointAs(xn::ProductionNode& OtherNode)
XnStatus XnSensorDepthGenerator::RegisterToViewPointChange(XnModuleStateChangedHandler handler, void* pCookie, XnCallbackHandle& hCallback) XnStatus XnSensorDepthGenerator::RegisterToViewPointChange(XnModuleStateChangedHandler handler, void* pCookie, XnCallbackHandle& hCallback)
{ {
const XnChar* aProps[] = const XnChar* aProps[] =
{ {
XN_STREAM_PROPERTY_REGISTRATION, XN_STREAM_PROPERTY_REGISTRATION,
NULL NULL
@@ -306,7 +311,7 @@ XnBool XnSensorDepthGenerator::IsFrameSyncedWith(xn::ProductionNode& OtherNode)
XnStatus XnSensorDepthGenerator::RegisterToFrameSyncChange(XnModuleStateChangedHandler handler, void* pCookie, XnCallbackHandle& hCallback) XnStatus XnSensorDepthGenerator::RegisterToFrameSyncChange(XnModuleStateChangedHandler handler, void* pCookie, XnCallbackHandle& hCallback)
{ {
const XnChar* aProps[] = const XnChar* aProps[] =
{ {
XN_MODULE_PROPERTY_FRAME_SYNC, XN_MODULE_PROPERTY_FRAME_SYNC,
NULL NULL
@@ -36,8 +36,8 @@
#pragma warning (push) #pragma warning (push)
#pragma warning (disable: 4250) #pragma warning (disable: 4250)
class XnSensorDepthGenerator : class XnSensorDepthGenerator :
public XnSensorMapGenerator, public XnSensorMapGenerator,
virtual public xn::ModuleDepthGenerator, virtual public xn::ModuleDepthGenerator,
virtual public xn::ModuleUserPositionInterface, virtual public xn::ModuleUserPositionInterface,
virtual public xn::ModuleAlternativeViewPointInterface, virtual public xn::ModuleAlternativeViewPointInterface,
@@ -68,6 +68,7 @@ class XnSensorDepthGenerator :
xn::ModuleAlternativeViewPointInterface* GetAlternativeViewPointInterface() { return this; } xn::ModuleAlternativeViewPointInterface* GetAlternativeViewPointInterface() { return this; }
XnBool IsViewPointSupported(xn::ProductionNode& OtherNode); XnBool IsViewPointSupported(xn::ProductionNode& OtherNode);
XnStatus SetViewPoint(xn::ProductionNode& OtherNode); XnStatus SetViewPoint(xn::ProductionNode& OtherNode);
XnStatus GetPixelCoordinatesInViewPoint(xn::ProductionNode& other, XnUInt32 x, XnUInt32 y, XnUInt32& altX, XnUInt32& altY);
XnStatus ResetViewPoint(); XnStatus ResetViewPoint();
XnBool IsViewPointAs(xn::ProductionNode& OtherNode); XnBool IsViewPointAs(xn::ProductionNode& OtherNode);
XnStatus RegisterToViewPointChange(XnModuleStateChangedHandler handler, void* pCookie, XnCallbackHandle& hCallback); XnStatus RegisterToViewPointChange(XnModuleStateChangedHandler handler, void* pCookie, XnCallbackHandle& hCallback);
@@ -83,7 +84,7 @@ class XnSensorDepthGenerator :
protected: protected:
virtual void FilterProperties(XnActualPropertiesHash* pHash); virtual void FilterProperties(XnActualPropertiesHash* pHash);
private: private:
XnStatus UpdateRealWorldTranslationData(); XnStatus UpdateRealWorldTranslationData();
XnBool IsSensorImageNode(xn::ProductionNode& Other); XnBool IsSensorImageNode(xn::ProductionNode& Other);
@@ -106,4 +107,4 @@ class XnExportedSensorDepthGenerator : public XnExportedSensorGenerator
#pragma warning (pop) #pragma warning (pop)
#endif // __XN_SENSOR_DEPTH_GENERATOR_H__ #endif // __XN_SENSOR_DEPTH_GENERATOR_H__