[vtk-developers] Casting vtkIntArray vs vtkIdTypeArray

David Gobbi david.gobbi at gmail.com
Sat Sep 18 13:44:49 EDT 2010


Just to make it clear to everyone on the list about SafeDownCast:

SafeDownCast() allows or disallows casts based on the hierarchy and
nothing else.

It refuses to cast a "vtkIdTypeArray *" to a "vtkIntArray *" is
because vtkIntArray is not a subclass of vtkIdTypeArray.  Also, as I
said before, it does not "convert" anything.  It merely reinterprets
one object pointer type as a different object pointer type.

  David



More information about the vtk-developers mailing list