Render() breaks interactor
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
It seems that calling the Render() method on a vtkRenderWindow before starting an interactor on a the same window breaks the interactor. Here is a minimal example:
---- begin code ----- #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h>
int main() { vtkRenderWindow * renwin = vtkRenderWindow::New(); //renwin->Render(); /*If line is not commented, interactor doesn't work!!! */ vtkRenderWindowInteractor * i = vtkRenderWindowInteractor::New(); i->SetRenderWindow(renwin); i->Start(); } ---- end code -----
without the call to Render(), the interactor works, ie. the 'q' key works, for example. If I uncomment the line, the interactor doesn't work at all. I'm using vtk-4.5.0-0.cvs20040114.2 (creatis version), on a linux machine.