I would like to display some graphical content, then when the user presses 'q' for quit, the code execution continues after closing the window.<br><br> vtkRenderWindow* renWin = vtkRenderWindow::New();<br> renWin->AddRenderer( ren );<br>
renWin->SetSize( 800, 600);<br><br> // Create an interactor<br> vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::New();<br> renWin->SetInteractor( iren );<br><br> vtkInteractorStyleTrackballCamera* style = vtkInteractorStyleTrackballCamera::New();<br>
iren->SetInteractorStyle( style );<br><br> // Initialize and enter interactive mode<br> iren->Initialize();<br> iren->Start();<br><br>//CLOSE THE WINDOW<br><br>//continue with non-graphical code <br>
for(unsigned int i = 0; i < 1e5; i++)<br> {<br> std::cout << i << std::endl;<br> }<br><br><br>I didn't see any methods for closing the window in vtkRenderWindowInteractor or vtkRenderWindow - did I miss them? Or is this not a common thing to do?<br>
<br clear="all">Thanks,<br><br>David<br>