From 6710fbc78ad73837bf6ef978a0b5eb0c8a3b22aa Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 29 Jan 2009 20:40:56 +0000 Subject: [PATCH] Added support for osgVolume::ProperyAdjustmentCallback --- src/osgPlugins/osgVolume/CMakeLists.txt | 1 + .../osgVolume/PropertyAdjustmentCallback.cpp | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/osgPlugins/osgVolume/PropertyAdjustmentCallback.cpp diff --git a/src/osgPlugins/osgVolume/CMakeLists.txt b/src/osgPlugins/osgVolume/CMakeLists.txt index f757445d5b3..3a56fefd426 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 00000000000..226f547718c --- /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; +}