I have a program that has a GUI written in gtk+2 and uses vtk for 3D graphics. Currently we handle all mouse and keyboard events in gtk+2, and don’t use a vtkRenderWindowInteractor at all. We call vtk methods in response to mouse events in the gtk event loop. This is a bit cumbersome, and think life would be easier if we could use a vtkRenderWindowInteractor and vtkInteractorStyle instead. However, it would be very difficult to give up the gtk event loop. I’d rather hook into the vtk interactor from an idle callback or event handler in the gtk event loop. It looks like this is possible – the documentation for vtkRenderWindowInteractor::Start() says that it’s possible to use ones own event loop. How do I do that? I can’t find an example or instructions…
Thanks.