Hi Matt
The osgIntrospection framework allow you to call a function or create an
instance of a class in a generic way.
ex : osgIntrospection::Value v =
osgIntrospection::Reflection::getType("osg::Vec3f")->createInstance();
v.getType().invokeMethod("normalize", v);
All of this work well because somewhere, there are information on the
class osg::Vec3f. Some Meta-Data, like a pointer to function or factory to
create instance of osg::Vec3f. All this Meta-Data are in the Wrapper.
So when you use osgIntrospection, you must reflecte the code that you
want have acces by introspection (generate a wrapper), then you link your
application with osgIntrospection (and not with the wrapper), then at
rune-time you load a wrapper and you have access to the reflected code.
Give a look to the osgIntrospection example, osgPython for binding language
example, or
osgDesigner<http://osgdesigner.sourceforge.net/wiki/index.php/Main_Page>for
editor example.
Cheers
David Callu
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/