[vtkusers] Determining Actor type
David Doria
daviddoria+vtk at gmail.com
Fri Feb 19 22:04:33 EST 2010
>
> My instinct would be to iterate over the list and
> dynamic_cast<vtkCubeAxesActor*> each entry until one returned non-NULL.
>
>
What Ken said would probably work. You could also use GetClassName and do a
string comparison, like this:
http://www.vtk.org/Wiki/VTK/Examples/DetermineActorType
You've got to be careful though - in this case I would have expected the
first actor to be a "vtkActor", but it is really a vtkOpenGLActor.
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100219/f8f7e434/attachment.htm>
More information about the vtkusers
mailing list