[vtkusers] QVTKWidget design question

Steve M. Robbins steve at sumost.ca
Mon Jun 18 15:42:36 EDT 2007


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#3213ceb69794244133169493e89b39e6

So what is the advantage of using the interactor rather than the
render window?


Thanks,
-Steve

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070618/0cca4903/attachment.pgp>


More information about the vtkusers mailing list