[vtkusers] Select/Deselect actors

David Doria daviddoria at gmail.com
Tue Sep 21 07:39:24 EDT 2010


>> Does anyone knows if there's a method to select/deselect all actors
>> associated to an interactor?

#include <vtkRendererCollection.h>
#include <vtkActorCollection.h>
vtkActorCollection* allActors =
interactor->GetRenderWindow()->GetRenderers()->GetFirstRenderer()->GetActors()

Then use VisibleOff() that Jothy selected on each actor in the
collection. Read more here:

http://www.vtk.org/doc/nightly/html/classvtkActorCollection.html
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/DetermineActorType

David



More information about the vtkusers mailing list