[vtkusers] Determining Actor type

Kenneth Porter shiva at sewingwitch.com
Fri Feb 19 21:56:28 EST 2010


--On Friday, February 19, 2010 6:26 PM -0800 "Banks, Robert" 
<banks at wai.com> wrote:

> If I have a number of actors in a Renderer, i.e. lookup table, source
> data, axis actor, etc
>
> How can I cast back the list of Actors and determine which one is a
> vtkCubeAxesActor and grab its pointer??

My instinct would be to iterate over the list and 
dynamic_cast<vtkCubeAxesActor*> each entry until one returned non-NULL.





More information about the vtkusers mailing list