[vtk-developers] Changes to vtkRenderViewBase && derived classes - interactors and render windows

Marcus D. Hanwell marcus.hanwell at kitware.com
Thu Oct 7 11:18:17 EDT 2010


Hi,

I wanted to let you know that I just merged a small topic branch that
changes the behavior of vtkRenderViewBase (and the derived vtkRenderView,
vtkContextView, etc). This is the result of some time Utkarsh and I spent
looking at the window popping out problem yesterday afternoon, and I am
pleased to report that you can now set the window and interactor in whatever
order you want!

I would appreciate feedback from any users of these classes, especially if
it broke any existing behavior. In order to get interaction working
correctly with a QVTKWidget it is still necessary to set window/interactor,
but the sequence is no longer important. A simple view invocation in the
tests still works as expected, but we have shifted responsibility for
instantiating an interactor style to the subclasses.

This does raise the question of whether a vtkRenderView3D, or something
general like that might be appropriate. It would be quite similar to the
vtkContextView, but would set up more appropriate interactors for a general
3D scene, possibly with an enum as in the vtkRenderView case. Lots of thanks
to Utkarsh and Jeff Baumes for working on this with me - I think we have a
good general solution now.

Marcus
--
Marcus D. Hanwell, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4937
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20101007/db9163cc/attachment.html>


More information about the vtk-developers mailing list