[vtkusers] interactor with one renwin and multiple renderers

Miroslav Drahos mdrahos at aurisrobotics.com
Thu Dec 8 16:43:55 EST 2016


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 re-draw everything.

I saw the example for multiple viewports (http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/MultipleViewports) 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 interactor/interactor style.

Any advice is greatly appreciated!

Miro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161208/31259b76/attachment.html>


More information about the vtkusers mailing list