#include #include #include #include #include #include #include #include #include #include bool ShadowedScene_readLocalData(osg::Object &obj, osgDB::Input &fr); bool ShadowedScene_writeLocalData(const osg::Object &obj, osgDB::Output &fw); osgDB::RegisterDotOsgWrapperProxy ShadowedScene_Proxy ( new osgShadow::ShadowedScene, "ShadowedScene", "Object ShadowedScene Group ", ShadowedScene_readLocalData, ShadowedScene_writeLocalData ); bool ShadowedScene_readLocalData(osg::Object& obj, osgDB::Input &fr) { osgShadow::ShadowedScene& ss = static_cast(obj); bool iteratorAdvanced = false; osg::ref_ptr object=0; while((object=fr.readObject())!=0) { osgShadow::ShadowTechnique* st = dynamic_cast(object.get()); if (st) ss.setShadowTechnique(st); iteratorAdvanced = true; } return iteratorAdvanced; } bool ShadowedScene_writeLocalData(const osg::Object& obj, osgDB::Output& fw) { const osgShadow::ShadowedScene& ss = static_cast(obj); if (ss.getShadowTechnique()) { fw.writeObject(*ss.getShadowTechnique()); } return true; }