#include #include #include #include #include #include #include #include #include #include #include bool Volume_readLocalData(osg::Object &obj, osgDB::Input &fr); bool Volume_writeLocalData(const osg::Object &obj, osgDB::Output &fw); osgDB::RegisterDotOsgWrapperProxy Volume_Proxy ( new osgVolume::Volume, "Volume", "Object Node Volume Group", Volume_readLocalData, Volume_writeLocalData ); bool Volume_readLocalData(osg::Object& obj, osgDB::Input &fr) { osgVolume::Volume& volume = static_cast(obj); bool itrAdvanced = false; osg::ref_ptr readObject = fr.readObjectOfType(osgDB::type_wrapper()); if (readObject.valid()) { volume.setVolumeTechniquePrototype(dynamic_cast(readObject.get())); itrAdvanced = true; } return itrAdvanced; } bool Volume_writeLocalData(const osg::Object& obj, osgDB::Output& fw) { const osgVolume::Volume& volume = static_cast(obj); osg::notify(osg::NOTICE)<<"Volume write"<