Hi,<br><br>I never used it, but maybe you can try to execute one thread per rendering. I think there is a vtkMultiThread object, or something like that, that allows several function calls in different threads. That&#39;s the first idea.<br>
<br>Second idea : You can use several renderer in a renderwindow. Just set the viewports (size of the renderer). Finally, you won&#39;t have 2 windows, but only one with 2 areas. But in this case, you have to implement the whole rendering pipeline.<br>
<br>HTH.<br><br>Jerome<br><br><div class="gmail_quote">2009/8/20 Maxima Mustermann <span dir="ltr">&lt;<a href="mailto:Maxima.M@gmx.de">Maxima.M@gmx.de</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I want to show 2 images at once in 2 separate windows but that does not seem to be possible.<br>
When I open the first viewer, the interactor takes control over the program and the other viewer opens only when I have closed the first one.<br>
To be true, I don&#39;t really need an interactor (I only want to show the image), but without interactor the window disappears immediately.<br>
<br>
My code:<br>
<br>
vtkImageViewer2* viewerA = vtkImageViewer2::New();<br>
vtkRenderWindowInteractor* interactorA = vtkRenderWindowInteractor::New();<br>
viewerA-&gt;SetupInteractor(interactorA);<br>
<br>
vtkImageViewer2* viewerB = vtkImageViewer2::New();<br>
vtkRenderWindowInteractor* interactorB = vtkRenderWindowInteractor::New();<br>
viewerB-&gt;SetupInteractor(interactorB);<br>
<br>
viewerA-&gt;SetInput(imageA);<br>
viewerB-&gt;SetInput(imageB);<br>
<br>
viewerA-&gt;Render();<br>
interactorA-&gt;Start();<br>
<br>
viewerB-&gt;Render();<br>
interactorB-&gt;Start();<br>
<br>
This is a *very* simple problem, but I did not found a corresponding topic in the FAQ or the mailing list.<br>
I want to keep my code as simple as possible, so if there is a way I would prefer to do it without the use of additional GUI toolkits.<br>
<br>
Thank you very much.<br>
--<br>
Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate<br>
für nur 19,99 Euro/mtl.!* <a href="http://portal.gmx.net/de/go/dsl02" target="_blank">http://portal.gmx.net/de/go/dsl02</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>