[vtkusers] gtkglext is unnecessary for GtkGLExtVTKRenderWindowInteractor

Valerie R Coffman valerie.coffman at nist.gov
Tue Apr 15 16:04:24 EDT 2008


Zeev,

I really don't know the details of what gtkglext does.  I do know that there is
a long, ongoing discussion in the gtk bug list where someone suggests that you
can use a regular gtk DrawingArea and somehow pass the needed window information
from gtk to OpenGL and/or vice versa (
http://bugzilla.gnome.org/show_bug.cgi?id=119189#c6 ).  This seems to be
accomplished in GtkGLExtVTKRenderWindowInteractor.py by the lines:

   win_id = str(self.get_window().xid)
   self._RenderWindow.SetWindowInfo(win_id)

in the OnRealize function.

Valerie


Quoting z.pekar at gmail.com:

> strange thing... how can it be?
> I also use gtk and vtk with c/c++ and have experienced some problems
> with window resizing under windows (linux works well) - the
> DrawingArea jumps out of its borders(see attachment; did you see smth.
> like that in your programs?)
> I thought(but I'm not sure anymore) it were caused by gtkglext - so if
> we can remove it would be cool...
> 
> zeev
> 
> On Tue, Apr 15, 2008 at 10:24 PM, Valerie R Coffman
> <valerie.coffman at nist.gov> wrote:
> > Hi,
> >
> >  In GtkGLExtRenderWindowInteractor.py, I have replaced references to
> >  gtk.gtkgl.DrawingArea with regular gtk.DrawingArea, and it still works on
> the
> >  systems I've tested (mac leopard with python 2.5, gtk 2.6.10, and pygtk
> 2.6.3;
> >  and debian etch with python 2.4, gtk 2.8.20, and pygtk 2.8.6).  Since the
> >  maintenance status of gtkglext is unsteady (see mailing list archives
> from
> >  August 2007 on http://mail.gnome.org/archives/gtkglext-list/ ), this
> should be
> >  good news for anyone who wants to use python, gtk, and vtk.
> >
> >  Valerie
> >  _______________________________________________
> >  This is the private VTK discussion list.
> >  Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >  Follow this link to subscribe/unsubscribe:
> >  http://www.vtk.org/mailman/listinfo/vtkusers
> >
> 





More information about the vtkusers mailing list