Moved osgDB::MethodObject from lua plugin into osgDB, added support for running methods via the osgDB::PropertyInterface class.

Updated lua plugin to use new osgDB::PropertyInterface to run methods.

Added addChild/removeChild() etc to Group.cpp, and addDrawable/removeDrawable() etc. to Geode.cpp serializers.
This commit is contained in:
Robert Osfield
2014-01-06 15:45:46 +00:00
parent 534d21dffd
commit 6490f1b6a5
10 changed files with 262 additions and 11 deletions

View File

@@ -308,6 +308,13 @@ void ObjectWrapper::writeSchema( StringList& properties, TypeList& types )
}
}
void ObjectWrapper::addMethodObject(const std::string& methodName, MethodObject* mo)
{
OSG_NOTICE<<"Inserting MethodObject "<<methodName<<std::endl;
_methodObjectMap.insert(MethodObjectMap::value_type(methodName, mo));
}
////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// RegisterWrapperProxy