Actually, nevermind about genwrapper.

I've managed to use the latest svn version to create custom wrappers for my classes (yay). Now what I would like to do, is to build a scene-graph editor GUI to edit my class properties.

Details:

   * I particularly like wxWidgets and gtk.
   * The editor doesn't need to render the scene in the same process
     (for now). All I need is a tree-view of the scene, with panels
     that open when a particular node is clicked.
   * I would like to be able to choose what types of nodes appear in
     the tree-view. Only my custom nodes and a small subset of osg
     nodes (eg, osg::Group, osg::PositionAttitudeTransform, and a
     couple others) should appear.
   * Must rely on osgIntrospection and osgWrappers generated by
     genwrapper... I was excited about osgedit, until I realized that
     it uses some other (custom) reflection mechanism.


Does anyone have some simple examples? Are there any libraries that use osgWrappers & osgIntrospection to provide a GUI?

Thanks in advance for any pointers,
-Mike


Robert Osfield wrote:
HI Mike,

I'll have to defer to the osgInttrospection/genwrapper author Marco
Jez for low level questions about the wrappers.  Hopefully he'll spot
this this thread and comment.

Robert.

On Thu, Aug 21, 2008 at 4:10 PM, Mike Wozniewski <[EMAIL PROTECTED]> wrote:
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

_______________________________________________
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

Reply via email to