<div dir="ltr">Building this example might help, seems like it was made partly to address the issue of multiple render windows.<div><br></div><div><a href="https://github.com/Kitware/VTK/blob/master/Examples/GUI/Qt/Events/GUI4.cxx">https://github.com/Kitware/VTK/blob/master/Examples/GUI/Qt/Events/GUI4.cxx</a><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 17, 2013 at 5:27 AM, Mathieu Moigner <span dir="ltr"><<a href="mailto:mmoigner@phenix-systems.com" target="_blank">mmoigner@phenix-systems.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I have a problem trying to use 3d space navigator with several vtkRenderWindows.<br>
<br>
What i did in my first render windows works fine :<br>
<br>
vtkRenderWindowInteractor *firstIren = vtkRenderWindowInteractor::<u></u>New();<br>
firstIren->SetUseTDx(true);<br>
MyFirstRenderWindow-><u></u>SetInteractor(iren);<br>
<br>
Then, when a new window is openned, i want the 3d space navigator to work in this second window, but i found no way to disconnect it from the first window.<br>
<br>
What I tryed :<br>
<br>
<br>
MyFirstRenderWindow-><u></u>GetInteractor()->setUseTDx(<u></u>false);<br>
<br>
vtkRenderWindowInteractor *secondIren = vtkRenderWindowInteractor::<u></u>New();<br>
secondIren->SetUseTDx(true);<br>
MySecondRenderWindow-><u></u>setInteractor(secondIren);<br>
<br>
<br>
But it doesn't work, the 3d space navigator is still connected to the First render window.<br>
<br>
Should I delete the firstInteractor (i'd rather not to do that) or something else ?<br>
<br>
Thanks for your help.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<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/<u></u>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_<u></u>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/<u></u>listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Christopher Mullins<div>R&D Engineer</div><div>Kitware Inc.,</div><div>919.869.8871</div>
</div>