[vtkusers] Interacting with 2 QVtkWidgets at the same time

David Doria daviddoria at gmail.com
Thu Sep 22 07:57:42 EDT 2011


On Thu, Sep 22, 2011 at 6:49 AM, HansAusBremen <hansausbremen at gmx.net> wrote:
> Thanks for the example,
> but I dont know how to use it to solve my problem since I have two datasets
> instead of one. Therefore I need the same view on different data instead of
> different views on the same data. :)
>
> I also thought about using two cameras and moving them in exactly the same
> way, but I dont know how to do this in vtk and especially with the
> QVtkWidget.

Just add different data to the other renderer. It is also the same in
QVTKWidgets, they are just two renderers. The point was that you can
just set the active camera of one renderer to the other one's camera
and they will move together.

David



More information about the vtkusers mailing list