#include #include #include #include #include #include #include #include #include #include #include bool SwitchProperty_readLocalData(osg::Object &obj, osgDB::Input &fr); bool SwitchProperty_writeLocalData(const osg::Object &obj, osgDB::Output &fw); osgDB::RegisterDotOsgWrapperProxy SwitchProperty_Proxy ( new osgVolume::SwitchProperty, "SwitchProperty", "Object SwitchProperty CompositeProperty", SwitchProperty_readLocalData, SwitchProperty_writeLocalData ); bool SwitchProperty_readLocalData(osg::Object& obj, osgDB::Input &fr) { osgVolume::SwitchProperty& sp = static_cast(obj); bool itrAdvanced = false; int value=0; if (fr.read("activeProperty",value)) { itrAdvanced = true; sp.setActiveProperty(value); } return itrAdvanced; } bool SwitchProperty_writeLocalData(const osg::Object& obj, osgDB::Output& fw) { const osgVolume::SwitchProperty& sp = static_cast(obj); fw.indent()<<"activeProperty "<