[vtkusers] Clearing out vtkRenderer

Cory Quammen cquammen at cs.unc.edu
Fri Aug 24 08:07:45 EDT 2007


Mark,

You should usel vtkRenderer::RemoveAllViewProps() to accomplish what you want.

Cory

On 8/24/07, Mark Kobine <mark at bugless.co.uk> wrote:
> Hi,
>
> I'm trying to clear out all the actors in my vtkRenderer - basically
> to reset it so I can load up new actors. I have called
> vtkRenderer::GetActors() and Delete()'d all the actors in the
> vtkActorCollection that's returned. After that I call
> vtkRenderer::Clear().
>
> But the actors still appear in view. Can anyone tell me where I'm
> going wrong?
>
> Many thanks,
> Mark
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>


-- 
Cory Quammen
Department of Computer Science
University of North Carolina at Chapel Hill
http://www.cs.unc.edu/~cquammen



More information about the vtkusers mailing list