I would like to display some graphical content, then when the user presses &#39;q&#39; for quit, the code execution continues after closing the window.<br><br>    vtkRenderWindow* renWin = vtkRenderWindow::New();<br>    renWin-&gt;AddRenderer( ren );<br>
    renWin-&gt;SetSize( 800, 600);<br><br>    // Create an interactor<br>    vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::New();<br>    renWin-&gt;SetInteractor( iren );<br><br>    vtkInteractorStyleTrackballCamera* style = vtkInteractorStyleTrackballCamera::New();<br>
    iren-&gt;SetInteractorStyle( style );<br><br>    // Initialize and enter interactive mode<br>    iren-&gt;Initialize();<br>    iren-&gt;Start();<br><br>//CLOSE THE WINDOW<br><br>//continue with non-graphical code    <br>
    for(unsigned int i = 0; i &lt; 1e5; i++)<br>    {<br>        std::cout &lt;&lt; i &lt;&lt; std::endl;<br>    }<br><br><br>I didn&#39;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>