[vtkusers] interactor with one renwin and multiple renderers
spir.robert at gmail.com
Thu Dec 8 23:49:10 EST 2016
I'm doing similar task. You can derive your own interactorstyle class from
one of the vtkInteractorStyle classes. There you can override mouse and key
event functions and using this->Interactor->FindPokedRenderer(mouseX,
mouseY); you can detect to which of the multiple renderers the user clicked
and handle the interaction according to your needs.
From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Miroslav
Sent: Thursday, December 8, 2016 10:44 PM
To: vtkusers at vtk.org
Subject: [vtkusers] interactor with one renwin and multiple renderers
Hi VTK folks,
I am trying to optimize my application, and am thinking to replace multiple
QVTKWidget2 instances with only one widget + multiple viewports/renderers.
Then I could issue only one expensive call to vtkRenderWindow::Render() and
I saw the example for multiple viewports
and it all looks very straightforward, but...
How do I handle interaction? Let's say in a typical quad view setup of a
medical application, with 3 orthogonal slices and one 3D view there are
different interactor styles needed. But it is the renderwindow that provides
interactor, so in the tiled version I would end up with only one common
Any advice is greatly appreciated!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers