[vtkusers] vtkRenderWindowInteractor::Initialize has a different behavior on windows and linux

Charl P. Botha cpbotha at cpbotha.net
Thu Jun 21 10:32:33 EDT 2007


On 6/14/07, Joël Schaerer <joel.schaerer at creatis.insa-lyon.fr> wrote:
> I am creating a vtkRenderWindow from a wxWidgets application. I don't
> want vtk handling the main loop, so I only do Initialize() on the
> Interactor and don't call Start(). On Windows, this has the desired
> behavior: the interactor doesn't block program flow but still handles
> events. On linux, the interactor doesn't seem to handle events and the
> vtkRenderWindow never repaints.
>
> Is this normal? Is there a workaround?

Yes, don't try and do this yourself. :)  Use the
wxVTKRenderWindowInteractor (by Mathieu Malaterre, who used to work in
your lab!!) which was designed for this purpose.

good luck,
charl



More information about the vtkusers mailing list