[vtkusers] Re: [vtk-developers] Gtk/wx and VTK - more issues: need help!
David Gobbi
dgobbi at irus.rri.on.ca
Sat Mar 10 13:13:23 EST 2001
On Sat, 10 Mar 2001, Prabhu Ramachandran wrote:
> (2) While embedding a vtk window into a gtk widget I first tried
> with a vtkRenderWindow() and I was able to embed the window
> properly. However, when I tried to use a vtkRenderWindowInteractor
> and use that instead, the vtkRenderWindow simply refuses to become
> embedded in the Gtk Widget. I suspect that this happens because
> Render() is called before the Gtk window is realized. Is there a
> way out of this?
This is probably because the event handler in vtkRenderWindowInteractor
and the one in Gtk aren't cooperating with one another. There is a
special vtkXRenderWindowTclInteractor that cooperates with Tk, so
I'm guessing that if you wanted to use an Interactor with Gtk you
would need a special vtkXRenderWindowGtkInteractor. My advice
would be to do all the event handling (including the redraws) through
Gtk, and not use the Interactor at all.
- David
More information about the vtkusers
mailing list