[vtk-developers] Wrapping templated types

Marcus D. Hanwell marcus.hanwell at kitware.com
Thu May 19 11:05:51 EDT 2011


On Thu, May 19, 2011 at 10:02 AM, David Gobbi <david.gobbi at gmail.com> wrote:
> Hi All,
>
> I've put an experimental branch on Gerrit that wraps templated
> types in python:
> http://review.source.kitware.com/#change,1680
>
> The templated types that it wraps are vtkVector, vtkRect, and
> vtkColor.  It allows these (and their subclasses) to be used as
> interface types in the Charts classes.

That is great news - I will take a look.
>
> As an aside, I noticed some issues with these classes:
> - vtkRect should have its own header file

Quite right - I will take care of that.

> - they do not define "<<" operators for printability

That would be a great addition, let me see about adding it in too.

> - they are used from Rendering, but their headers are in Charts
>
Yes, they should quite probably be in Common, does that seem reasonable?

Marcus



More information about the vtk-developers mailing list