Remove Actor2D

Dr Tian-Qing Ye at
Mon Aug 23 13:11:25 EDT 1999

Dear All

I have added several Actor2Ds into my

Later I want to remove some of them, say the last two. How can I do
I tried using the following codes to retrieve the 2D Actors, but it
didn't work.
... ...
    vtkActor2DCollection *actCol = vtkActor2DCollection::New();
        actCol = renderer->GetActors2D();
    int act_num = actCol->GetNumberOfItems();
    printf("act_num = %d\n", act_num);

 here I got output 0 !! Why?

Any helps are highly appreciated!



This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.

More information about the vtkusers mailing list