[Fwd: [vtk-developers] Modification to vtkPythonUtil to support passing of void *callData]

David Gobbi dgobbi at imaging.robarts.ca
Sun Mar 23 16:23:02 EST 2003


On Sun, 23 Mar 2003, Charl P. Botha wrote:

> On Fri, Mar 21, 2003 at 04:59:20PM -0500, David Gobbi wrote:
> > I like the idea, but I don't really like the use of "string0" as a
> > data type descriptor.  Maybe the use of a python 'type' object would
> > be better, i.e. types.StringType would signify a string.  Also I
>
> The reason why I chose "string0" is because it refers to the C++ type and
> NOT the Python type.  The calldata could be a null-terminated string
> ("string0") or a C++ string ("string").  Both would however map to a Python
> StringType, so it would seem that using a types.StringType is not the best
> option.  Your thoughts?

True enough, the CallData is indeed C/C++ data.

I've also thought that, since any particular type of 'Event' is going to
have a particular type of 'CallData' (or at least this _should_ be
the case) maybe eventually the CallDataType can be set automatically.

 - David




More information about the vtk-developers mailing list