Thanks Robert.
However, I think that genwrapper is not going to work for me. My source
tree does not look enough like OSG, and I also have some custom types in
my classes that genwrapper doesn't know about.
I'm wondering if I can call introspection macros by hand? (I don't have
too many to do).
For example, I'd like to reflect my class asReferenced, so I've come up
with something like this:
BEGIN_OBJECT_REFLECTOR(asReferenced)
I_BaseType(osg::Referenced);
I_Constructor1(IN, t_symbol *, initID, Properties::NON_EXPLICIT,
signature0, "", "");
I_Method1(void, setParent, IN, t_symbol *, parent,
Properties::NON_VIRTUAL, signatureA, "", "");
I_Method0(t_symbol *, getParent, Properties::NON_VIRTUAL,
signatureB, "", "");
.
.
END_REFLECTOR
But what to put for signatures? Is there a way to automatically generate
these?
Thanks again,
-Mike
Robert Osfield wrote:
Hi Mike,
I've been updating the svn version of genwrapper, so grab svn/trunk if
you want the latest. I'll will update the tarball as well.
Robert.
On Wed, Aug 20, 2008 at 9:06 PM, Mike Wozniewski <[EMAIL PROTECTED]> wrote:
Hi,
I have custom classes which extend OSG classes, and I'd like to create
wrapper libraries for use with osgIntrospection. Particularly, I'd like to
use these wrappers to call my custom methods from a GUI that doesn't need to
know a lot about the classes.
I've found something called GenWrapper
(http://www.openscenegraph.org/projects/osg/wiki/GenWrapper), but it seems
to be quite old, pre-dating OSG 2.x.
Does anyone have some sample code that creates wrapper libraries?
Furthermore, does anyone have examples of custom classes which use
osgIntrospection? ... I'm having a hard time understanding the reflection
mechanism in OSG. Any examples would be appreciated.
Also, I'd like to be compatible with both Linux and OSX.
Thanks in advance,
Mike Wozniewski
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org