Hi,<br><br>The PCL community uses VTK as their visualization engine. They are interested in using VTK render windows that can enter, leave, and restart interaction loops. They've encountered an inconsistent behavior OSX, and I tracked it down to an issue in vtkCocoaRenderWindowInteractor.<br>
<br>Attached is a test program that makes repeated calls to interactor
Start() and TerminateApp(). The test creates a render window and calls
interactor Start(). You can press 'Q' to trigger TerminateApp(),
causing the interactor to return from Start() and begin a new loop. The
test exhibits different behavior on Linux vs. OSX. On Linux, it
successfully restarts the interaction loop, but on OSX the render window
is destroyed after the first loop. I'm told the behavior on Windows is consistent with Linux, but I did not test there.<br>
<br>I attached a patch for vtkCocoaRenderWindowInteractor. In
this patch, TerminateApp() will break the NSApplication run loop, but
not destroy the NSWindow. I think this makes OSX behave similarly
to the Xt implementation on Linux. Can someone who is familiar with
vtkCocoaRenderWindowInteractor take a look at the patch? Thanks!<br>
<br>
Pat