[vtkusers] Deleting / Hiding all the objects in a window

Baliki baliki balikivtk at gmail.com
Fri Nov 20 04:02:14 EST 2009


I had the same problem! Calling Render() on the Renderer should work...

>From Documentation:

********
virtual void vtkRenderer::Render (
 )  [virtual]

Create an image. This is a superclass method which will in turn call the
DeviceRender method of Subclasses of
vtkRenderer<http://www.vtk.org/doc/nightly/html/classvtkRenderer.html>


virtual void vtkRenderWindow::Render (
 )  [virtual]

Ask each renderer owned by this RenderWindow to render its image and
synchronize this process.

Implements vtkWindow<http://www.vtk.org/doc/nightly/html/classvtkWindow.html#acb783e66948656035da1bc0bf747c13a>
.

Reimplemented in
vtkXMesaRenderWindow<http://www.vtk.org/doc/nightly/html/classvtkXMesaRenderWindow.html#abb3258748e55ad41f3d6a6c4b145814c>,
and vtkXOpenGLRenderWindow<http://www.vtk.org/doc/nightly/html/classvtkXOpenGLRenderWindow.html#a33183ba56fc43126a34d2d82b1289988>
.

 ********

My RenderWindow has only one Renderer.
So, RenderWindow->Render() should be the same as Renderer->Render(),
according to the documentation...




> I was calling Render() on the Renderer - I changed to calling Render()
> on the RenderWindow and it behaves as I would expect.
>
> This is the kind of thing that seems very confusing...
>
> Thanks,
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091120/20e1631a/attachment.htm>


More information about the vtkusers mailing list