[vtkusers] Determining Actor type
David Doria
daviddoria+vtk at gmail.com
Sat Feb 20 08:21:21 EST 2010
>
>
> Again, this only works for leaf classes. It doesn't have any machinery for
> matching an intermediate class. Leaf classes are the most common case, so
> this will work in most cases.
>
> But suppose you wanted to find all 2D actors. For that you'd need a
> dynamic_cast.
>
Here are 4 methods that all work in this case:
http://www.vtk.org/Wiki/VTK/Examples/DetermineActorType
Ken - if you want to change it / add a case where nothing but the
dynamic_cast works, please feel free.
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100220/2ccc50b4/attachment.htm>
More information about the vtkusers
mailing list