[vtkusers] Re: QVTKWidget design question

clinton at elemtech.com clinton at elemtech.com
Mon Jun 18 15:52:14 EDT 2007


The interactor does a copule things extra than simply calling 
vtkRenderWindow::Render.

You can disable renders with the interactor, and it invokes an event if you 
ever wanted to put another hook in there at that time.

Clint

On Monday 18 June 2007 1:42:36 pm Steve M. Robbins wrote:
> Hello,
>
> While reading through the code for QVTKWidget, I noticed that the
> widget contains a vtkRenderWindow object for drawing.  However the
> QVTKWidget's paintEvent() method obtains the vtkRenderWindowInteractor
> and calls Render() on it, rather than directly using
> vtkRenderWindow::Render().  The documentation for
> vtkRenderWindowInteractor::Render() says:
>
>   Render the scene. Just pass the render call on to the associated
>   vtkRenderWindow.
>
>  
> http://www.vtk.org/doc/nightly/html/classvtkRenderWindowInteractor.html#321
>3ceb69794244133169493e89b39e6
>
> So what is the advantage of using the interactor rather than the
> render window?
>
>
> Thanks,
> -Steve





More information about the vtkusers mailing list