Remove Actor2D

Dr Tian-Qing Ye tianqing.ye at bruker.co.uk
Mon Aug 23 13:11:25 EDT 1999


Dear All

I have added several Actor2Ds into my
Renderer(renderer->AddActor2D(act1)...).

Later I want to remove some of them, say the last two. How can I do
that?
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!

Regards

TQ Ye


-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list