[vtkusers] Interacting with 2 QVtkWidgets at the same time

David Doria daviddoria at gmail.com
Tue Sep 27 08:39:19 EDT 2011


On Tue, Sep 27, 2011 at 7:13 AM, HansAusBremen <hansausbremen at gmx.net> wrote:
> Anybody got an idea how to solve the problem?

The first problem (error on AddObserver) probably means you are using
too old of a version of VTK - someone added the capability of
observing an event from a class member only in the last year or so.
I'd recommend building git master.

For the second problem of making the interaction update both ways -
the cameras are already shared, so that is a good first step. The
infinitely loop would be caused by the way I showed to handle
"AnyEvent". You could probably choose a smarter specif event to handle
that may prevent the loop. You would of course also need a second
observer to update the correct alternate renderer.

David



More information about the vtkusers mailing list