diff --git a/src/osgPlugins/osgVolume/CMakeLists.txt b/src/osgPlugins/osgVolume/CMakeLists.txt index 3a56fefd4..7e7e922f0 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 + TransferFunctionProperty.cpp PropertyAdjustmentCallback.cpp ) diff --git a/src/osgPlugins/osgVolume/TransferFunctionProperty.cpp b/src/osgPlugins/osgVolume/TransferFunctionProperty.cpp new file mode 100644 index 000000000..68f389052 --- /dev/null +++ b/src/osgPlugins/osgVolume/TransferFunctionProperty.cpp @@ -0,0 +1,43 @@ +#include + +#include +#include + +#include +#include +#include + +#include +#include +#include +#include +#include + +bool TransferFunctionProperty_readLocalData(osg::Object &obj, osgDB::Input &fr); +bool TransferFunctionProperty_writeLocalData(const osg::Object &obj, osgDB::Output &fw); + +osgDB::RegisterDotOsgWrapperProxy TransferFunctionProperty_Proxy +( + new osgVolume::TransferFunctionProperty, + "TransferFunctionProperty", + "Object TransferFunctionProperty", + TransferFunctionProperty_readLocalData, + TransferFunctionProperty_writeLocalData +); + + +bool TransferFunctionProperty_readLocalData(osg::Object& obj, osgDB::Input &fr) +{ + osgVolume::TransferFunctionProperty& tfp = static_cast(obj); + + bool itrAdvanced = false; + + return itrAdvanced; +} + +bool TransferFunctionProperty_writeLocalData(const osg::Object& obj, osgDB::Output& fw) +{ + const osgVolume::TransferFunctionProperty& tfp = static_cast(obj); + + return true; +}