[vtkusers] Get Individual Actor
John Hunter
jdhunter at ace.bsd.uchicago.edu
Mon Apr 12 11:13:20 EDT 2004
>>>>> "Hamp" == Hamp Donald <hampdonald at yahoo.com> writes:
Hamp> Hi Suppose I have a collection of actors.
Hamp> ren1=importer->GetRenderer(); vtkActorCollection *actorcol =
Hamp> vtkActorCollection::New(); actorcol = ren1->GetActors();
actorcol-> Print(cout);
Hamp> I want to acess them one by one. Please help me in this
Hamp> regard. The following line is working only. GetNextActor()
Hamp> is not working. May be something have to be
Hamp> initialized.
Yes, you need to call
actorcol->InitTraversal()
before doing the traversal.
JDH
More information about the vtkusers
mailing list