[vtkusers] Determining Actor type
David Gobbi
david.gobbi at gmail.com
Sat Feb 20 08:27:13 EST 2010
On Fri, Feb 19, 2010 at 11:43 PM, Kenneth Porter <shiva at sewingwitch.com> wrote:
> --On Friday, February 19, 2010 10:18 PM -0700 David Gobbi
> <david.gobbi at gmail.com> wrote:
>
>> All VTK classes also have a casting method called SafeDownCast() that
>> should be used instead of dynamic_cast<>().
>
> 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.
Both IsA() and SafeDownCast() have the appropriate machinery and they
just fine for intermediate classes. Can you give an example where
they don't work?
David G
More information about the vtkusers
mailing list