[vtkusers] Python wrapped custom classes missing inherited methods

Eric E. Monson emonson at cs.duke.edu
Wed Aug 4 16:19:56 EDT 2010


Hello,

I just pulled the latest git head this afternoon (last time was maybe a few weeks ago?), and now I'm missing inherited methods in custom VTK classes which are wrapped in Python.

I tested this with the vtkMy examples, and I see it there, too. An example would be the vtkImageFoo class, which inherits from vtkThreadedImageAlgorithm: I only get the methods defined in vtkImageFoo.h, and not all the ones from its parent class. So, things like SetNumberOfThreads() and SplitExtent() are missing, while SetFoo() is there. All of the "standard" classes inheriting from vtkThreadedImageAlgorithm look fine (e.g. vtkImageAppend still has SetNumberOfThreads()).

Is this something that got broken with the recent changes in the wrapping code, or is there something new we should be doing to wrap custom classes?

Thanks,
-Eric




More information about the vtkusers mailing list