diff --git a/src/osgPlugins/osgVolume/CMakeLists.txt b/src/osgPlugins/osgVolume/CMakeLists.txt index f757445d5..3a56fefd4 100644 --- a/src/osgPlugins/osgVolume/CMakeLists.txt +++ b/src/osgPlugins/osgVolume/CMakeLists.txt @@ -10,6 +10,7 @@ SET(TARGET_SRC CompositeProperty.cpp SwitchProperty.cpp ScalarProperty.cpp + PropertyAdjustmentCallback.cpp ) SET(TARGET_ADDED_LIBRARIES osgVolume ) diff --git a/src/osgPlugins/osgVolume/PropertyAdjustmentCallback.cpp b/src/osgPlugins/osgVolume/PropertyAdjustmentCallback.cpp new file mode 100644 index 000000000..226f54771 --- /dev/null +++ b/src/osgPlugins/osgVolume/PropertyAdjustmentCallback.cpp @@ -0,0 +1,37 @@ +#include + +#include +#include + +#include +#include +#include + +#include +#include +#include +#include +#include + +bool PropertyAdjustmentCallback_readLocalData(osg::Object &obj, osgDB::Input &fr); +bool PropertyAdjustmentCallback_writeLocalData(const osg::Object &obj, osgDB::Output &fw); + +osgDB::RegisterDotOsgWrapperProxy PropertyAdjustmentCallback_Proxy +( + new osgVolume::PropertyAdjustmentCallback, + "PropertyAdjustmentCallback", + "Object NodeCallback PropertyAdjustmentCallback", + PropertyAdjustmentCallback_readLocalData, + PropertyAdjustmentCallback_writeLocalData +); + + +bool PropertyAdjustmentCallback_readLocalData(osg::Object& obj, osgDB::Input &fr) +{ + return false; +} + +bool PropertyAdjustmentCallback_writeLocalData(const osg::Object& obj, osgDB::Output& fw) +{ + return true; +}