[vtkusers] Determining Actor type

David Gobbi david.gobbi at gmail.com
Sat Feb 20 00:18:30 EST 2010


The method "IsA()" is the VTK method for type checking.  See the
vtkObjectBase documentation for more info.

if (actor->IsA("vtkCubeAxisActor") { ... }

All VTK classes also have a casting method called SafeDownCast() that
should be used instead of dynamic_cast<>().

   David



More information about the vtkusers mailing list