[vtkusers] interaction of two interactors

Darshan Pai darshanpai at gmail.com
Thu May 13 11:42:45 EDT 2010


Is the RenderWindow common between the two renderers? If so you can try
setting the interactor to the RnderWindow and see if it does the trick

On Wed, May 12, 2010 at 8:34 AM, Jinyoung Hwang <hwangjinyoung at gmail.com>wrote:

> Hi all vtkusers,
>
> I'm now trying to generate stereo views using vtk.
> First, I created two vtkMFCwindow instances, and two views (for left and
> right eye) were displayed; each translated a little bit as follows.
>
>  renderer->SetBackground(1, 0, 0);
>  maincamera->SetPosition(-5, 0, 300);
>  renderer->SetActiveCamera(maincamera);
>
>  renderer2->SetBackground(0, 0, 1);
>  maincamera2->SetPosition(5, 0, 300);
>  renderer2->SetActiveCamera(maincamera2);
> In this case, the interactor of each window cannot be duplicated.
> When I control (rotate or translate) the window (#1) using mouse, another
> window (#2) should consequentially be rotated or translated.
>
> Is there any function or something to interact two interactions of
> vtkMFCwindow.
> Thanks in advance.
>
> JY
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100513/d4551bf6/attachment.htm>


More information about the vtkusers mailing list