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

Re: Open Inventor with Gtk+

To: "Lars J. Aas" <larsa@xxxxxx>
Subject: Re: Open Inventor with Gtk+
From: Ang Bodhi <angbodhi@xxxxxxxxxxxxxx>
Date: Tue, 27 Feb 2001 08:56:00 +0800
Cc: "J . A . Magallon" <jamagallon@xxxxxxx>, info-inventor-dev@xxxxxxxxxxx
References: <3A989E3A.3A7A8684@xxxxxxxxxxxxxx> <20010226171434.A7708@xxxxxx> <20010226203424.A2354@xxxxxxxxxxxxxxxx> <20010226213131.A10082@xxxxxx>
Sender: owner-info-inventor-dev@xxxxxxxxxxx
"Lars J. Aas" wrote:

> I'm therefore using kind of the opposite approach for GUI-agnostic
> applications - writing "Autoconf-templatized" code with substitution
> keywords in the code (I write e.g. @Gui@ instead of Xt/Gtk/Qt).  It's an
> extra effort to set up, more cludgy to write, but then I don't have to
> worry about using a lowest common denominator interface that doesn't
> really fully support inheritance with virtual method overloading like it
> ought to do and which is always less advanced than the least developed
> supported toolkit, and since there isn't an interface that has to
> support the toolkit I don't have to worry about that either.

Just to point out the difference. I've noticed Coin's SoGtk source which
as Lars J.Aas say, is partially templatized, and is an independent effort
to write an So@Gui@ before OI source is available. But after looking
at SGI's SoXt's source, I think it is not very difficult to write a SoGtk
basing on it. So I experimented with this approach and it work. The
new libSoGtk is the result. The disadvantage is this becomes an
independent branch and has to be maintained separately. I figure that
SGI's SoXt is quite mature now, and it should be possible to use cvs
to track delta changes to SoXt tree so similar changes can be applied
to the SoGtk code. The SoGtk actually mirror SoXt quite closely.

I've also been thinking of writing native OI gtk widgets, eg.
GtkExaminerViewer  widget which can be created with function
gtk_examiner_viewer_new(). But this will mix C with C++, and it
require more work.

> Anyways, if you still want to try, you have SoQt, SoGtk, SoXt and an
> almost functional SoWin at www.coin3d.org.  You have SGI's SoXt (which
> TGS probably have worked further on and should be considered a separate
> branch), TGS' SoWin, Ang Bodhi's SoGtk, and there is also an SoXt
> implementation for another Inventor clone called Scene (but I think it's
> safe to consider that project dead now).  There are probably more, and
> the family will expand even further in the future...

Scene is my previous effort to clone OI, well, it is now stopped. There
were an SoXt and SoGtk lib then, but there is no point to use them now.
The experience of wrting an SoGtk for Scene is used to write this
current SoGtk lib, with a little code reuse too :-)

Besides the libSoGtk, the sample and demos are also converted to
Gtk, I think these sample apps should be usable with any SoGtk
(perhaps with a little tweak).

Cheers,



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