[vtkusers] Multiple renderes and interactors in single window?

Clinton Stimpson clinton at elemtech.com
Fri Dec 17 22:38:38 EST 2010


On Dec 17, 2010, at 8:00 PM, David Doria wrote:

> On Fri, Dec 17, 2010 at 9:45 PM, Jafari, Kourosh <kjafari at rad.hfh.edu> wrote:
>> Dear VTK users,
>> 
>> I have a single render window and 4 renderes, 3 of them showing 2D images and one showing 3D object. Currently, I can only assign one interactor to the whole render window.  But I need to use different interactors for the renderers: vtkInteractorStyleImage for images and vtkInteractorStyleTrackballCamera for the 3D object. How do I do that?
>> 
>> I highly appreciate your help.
>> 
>> Regards,
>> Kourosh
> 
> I believe the only way to do this is to use multiple QVTKWidgets in a
> Qt application:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/SideBySideRenderWindows
> 
> It may seem like overkill, but your application will definitely turn
> out better using Qt anyway :)


I'm sure you can still do it with one interactor and one render window.
You'll probably need your own custom interactor style that chooses which interactor style to delegate to based on the renderer under the mouse.

Clint


More information about the vtkusers mailing list