William Kyngesburye wrote:
I was recently thinking about various GRASS requirements, what with
all the GUI discussion. And, I saw Markus' comment on the users list
that r3.showdspf funtionality is in NVIZ.
If r3.showdspf is removed, that eliminates the last use of the GLw
library.
One other one I'm wondering about - xganim.
This is the only thing in GRASS (that I can see) that requires Motif/
Lesstif. On Mac OS X at least, this is the only reason for
installing mo/lesstif, as everything else is TclTk/X11/GL.
So, could xganim be changed to not use motif? Or, like r3.showdspf,
is the funtionality included elsewhere now so it's not even needed.
I see that NVIZ has some animation capabilities, but they look quite
different than simply animating a series of rasters. Maybe with the
right options it could do the same?
I've attached a quick re-implementation of xganim in Tcl/Tk. To use
it, you will need to set imgdir at the top of xganim.tcl to a
directory containing the bitmaps from visualization/xganim/bitmaps.
It probably has a few bugs, but right now I'm interested in whether or
not it's fast enough to be used. It's quite a lot slower than xganim.
If it's too slow, then any re-implementation would need to be in C,
which gets us back to the issue of which toolkit we require. There
isn't any toolkit which is standard on all platforms (some commercial
Unices don't include Athena as part of X11, Windows doesn't include
any of the Unix/X11 toolkits and vice-versa).
FWIW, changing xganim to use Athena instead of Motif would be quite
simple, as they are both Xt-based widget sets. The main difference is
that Athena doesn't include a canvas widget (analogous to
XmDrawingArea) as standard, but it's not hard to write one (you just
need to add resize and expose handlers to the Core widget class).
--
Glynn Clements <glynn@gclements.plus.com>
(attachments)
xganim.tcl (9.43 KB)