[vtkusers] Re: how to clear the screen...

Goodwin Lawlor goodwin.lawlor at ucd.ie
Fri Oct 7 02:56:27 EDT 2005


Erick Rodríguez Ordóñez wrote:
> Hi all...
>  
> how can I clear a vtkRenderWindow's scene, I didn´t find a function like 
> "clear" or erase or reset... or... I have to do it in the active 
> vtkRenderer??? remove all the actor, lights and cameras??
>  
> thanks in advance to everybody

Hi Erick,

I think you're looking for:

void vtkRenderer::Clear(void)

It "Clear[s] the image to the background color."

Just tried it out with 4.5 and it didn't work though- I think it used to.

Try it yourself,

hth

Goodwin





More information about the vtkusers mailing list