[vtkusers] control two vtkRenderWindows using one vtkRenderWindowInteractor
Charl P. Botha
cpbotha at cpbotha.net
Fri Aug 10 03:16:55 EDT 2007
On 8/10/07, Martin Baumann <mailsgetlost at web.de> wrote:
> is there a simple way to control two render windows with only one
> vtkRenderWindowInteractor object?
> I am using two different visualizations of the same data set in two
> render windows and would like the
> perspective in both windows to be the same.
vtkRenderWindowInteractor supports one vtkRenderWindow per instance.
Don't even try this. :)
What you could try is attaching an observer to the InteractionEvent of
a vtkRenderWindowInteractor (IIRC), and then in the observer
explicitly synchronise another vtkRenderWindowInteractor by
transferring vtkCamera parameters for the Renderer in question.
Good luck,
Charl
More information about the vtkusers
mailing list