[vtkusers] 3Dconnexion with several RenderWindows
Christopher Mullins
christopher.mullins at kitware.com
Fri May 17 08:59:28 EDT 2013
Building this example might help, seems like it was made partly to address
the issue of multiple render windows.
https://github.com/Kitware/VTK/blob/master/Examples/GUI/Qt/Events/GUI4.cxx
On Fri, May 17, 2013 at 5:27 AM, Mathieu Moigner <
mmoigner at phenix-systems.com> wrote:
> Hello,
>
> I have a problem trying to use 3d space navigator with several
> vtkRenderWindows.
>
> What i did in my first render windows works fine :
>
> vtkRenderWindowInteractor *firstIren = vtkRenderWindowInteractor::**New();
> firstIren->SetUseTDx(true);
> MyFirstRenderWindow->**SetInteractor(iren);
>
> 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.
>
> What I tryed :
>
>
> MyFirstRenderWindow->**GetInteractor()->setUseTDx(**false);
>
> vtkRenderWindowInteractor *secondIren = vtkRenderWindowInteractor::**
> New();
> secondIren->SetUseTDx(true);
> MySecondRenderWindow->**setInteractor(secondIren);
>
>
> But it doesn't work, the 3d space navigator is still connected to the
> First render window.
>
> Should I delete the firstInteractor (i'd rather not to do that) or
> something else ?
>
> Thanks for your help.
>
>
>
>
>
>
>
> ______________________________**_________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_**FAQ <http://www.vtk.org/Wiki/VTK_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/**listinfo/vtkusers<http://www.vtk.org/mailman/listinfo/vtkusers>
>
--
Christopher Mullins
R&D Engineer
Kitware Inc.,
919.869.8871
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130517/7a5287de/attachment.htm>
More information about the vtkusers
mailing list