Introduce osgDB::PropetyInterface class that provided a generic interface for get/setting properties on scene graph objects, utilizing the osgDB serializers to do

the actual interface query and set/gets.
This commit is contained in:
Robert Osfield
2013-09-19 16:19:32 +00:00
parent f42481b60f
commit 250d9f2ed7
9 changed files with 909 additions and 18 deletions

View File

@@ -615,7 +615,7 @@ void OutputStream::writeObjectFields( const osg::Object* obj )
if ( _inbuiltSchemaMap.find(assocName)==_inbuiltSchemaMap.end() )
{
StringList properties;
std::vector<int> types;
ObjectWrapper::TypeList types;
assocWrapper->writeSchema( properties, types );
unsigned int size = osg::minimum( properties.size(), types.size() );
@@ -798,7 +798,7 @@ void OutputStream::writeSchema( std::ostream& fout )
fout << itr->first << " =";
StringList properties;
std::vector<int> types;
ObjectWrapper::TypeList types;
wrapper->writeSchema( properties, types );
std::string propertiesString;