[vtk-developers] Wrapping templated types

David Gobbi david.gobbi at gmail.com
Thu May 19 13:10:52 EDT 2011


On Thu, May 19, 2011 at 10:30 AM, Shead, Timothy <tshead at sandia.gov> wrote:
>
> I'd be very interested in how this could work with vtkArray and its
> subclasses, which are templated.  Currently, if you create an instance
> of vtkArray, you don't have access to any of its templated subclass
> methods from Python - would your work help in this case?

I've done some work on those but they aren't quite ready yet... I'm
trying to do something special with them.  When I wrapped vtkVector
et al., I hard-coded the list of types over which to specialize, but for
vtkTypeTemplate, I want vtkWrapPython to use vtkCommonHierarchy.txt
to automatically figure out what specializations of vtkTypeTemplate are
needed.

 - David



More information about the vtk-developers mailing list