info-inventor-dev
[Top] [All Lists]

Re: Open Inventor with Gtk+

To: Spack Wad <spack_wad@xxxxxxxxxxx>
Subject: Re: Open Inventor with Gtk+
From: Ang Bodhi <angbodhi@xxxxxxxxxxxxxx>
Date: Sat, 03 Mar 2001 16:40:16 +0800
Cc: info-inventor-dev@xxxxxxxxxxx
References: <F288Jv3zOdnjQ8vjque0001c677@hotmail.com>
Sender: owner-info-inventor-dev@xxxxxxxxxxx
No, not without more work. I think this apply to either choice.

However, I think its possible to add Open Inventor SoGtk widgets
to glade. Looking at internal of glade, a widget's creation, set
property, get property, etc are done through "user" provided
functions (as oppose to functions internal to Gtk+), so its
technically possible to create SoGtk components and send back the
component's top level widget via getWidget(). One problem is
signal connection will not work with the SoGtk components because
glade sees only the top level container widget. An alternative way
is to provide Gtk wrappers to SoGtk components. Glade is designed
to allow additional modules of Gtk widgets to be plugin, but as of
0.5.11, this loading of plugin is still a dummy implementation. So
it should be possible to add a SoGtk module in future.
A quick hack to glade here  ;-)

Another consideration is whether libglade will be able to
dynamically create SoGtk widgets on loading the XML file generated
by glade. But similar mechanism seems to be used, so it appears
possible.

Spack Wad wrote:

Hi. I'm a new to the list and new to linux development, but not
new to OI development.  I just ported a bunch of SGI ViewKit GUI
code to straight lesstif/Motif on my home system.  Arg! - and now
just seeing this group and this thread I realize that I won't be
posting many questions to comp.graphics.api.inventor any more. I
had asked about whether I could get OI components working with
Glade - the stock GUI builder that came w/ RH7.0.  There was no
response.  I *did* manage to get Glade to generate c++, but only
after working through several layers of lib dependencies...

So - I'll pose the question to the gurus -

  Of the two options mentioned in this thread -

- http://www.geocities.com/angbodhi/download/

- http://www.coin3d.org/

Will either of these work with Glade/Gtk+?  ...and if so, is either
a "better" choice?

Thanks -

Bruce

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

<Prev in Thread] Current Thread [Next in Thread>