[vtk-developers] New header file Wrapping/vtkParseType.h

Marcus D. Hanwell marcus.hanwell at kitware.com
Wed Apr 28 11:35:31 EDT 2010


On Wed, Apr 28, 2010 at 11:30 AM, David Gobbi <david.gobbi at gmail.com> wrote:

> There were no comments about my changes to the wrappers so I went
> ahead and pushed them.  So if anyone found vtkWrapPython.c to be
> completely incomprehensible before, they should find the code to be a
> little bit friendlier now.
>
> In the longer term, I'm looking at how the wrappers can be made to
> handle special types (with vtkVariant being the favorite).  The
> wrappers used to handle special types fairly well, many years ago, but
> support for special types fell by the wayside when vtkObjectBase was
> introduced.  Last night I did some work to resurrect the old
> special-type handling code with good results.
>

I would love to see handling for vtkVariant, along with vtkStdString, and
the unicode variant. It would also be great to have a way to wrap some C++
data structures so that they could be used from the wrapped languages. Is
there a document on how this is/could be achieved?

Marcus

>
> On Tue, Apr 27, 2010 at 8:23 AM, David Gobbi <david.gobbi at gmail.com>
> wrote:
> > Hi All,
> >
> > I've made a header file called vtkParseType.h that defines all of the
> > type constants used by vtkParse.  The type constants are as follows:
> >
> > #define VTK_PARSE_FLOAT               0x01
> > #define VTK_PARSE_VOID                0x02
> > #define VTK_PARSE_CHAR                0x03
> > #define VTK_PARSE_UNSIGNED_CHAR       0x13
> >
> > etcetera.  I've also modified vtkWrapPython.c to use these constants.
> > Any objections if I drop this new header file into VTK/Wrapping?
> >
> >   David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100428/d66fc706/attachment.html>


More information about the vtk-developers mailing list