[vtk-developers] Python wrapper change summary

David Gobbi david.gobbi at gmail.com
Fri Aug 6 15:26:25 EDT 2010


On Fri, Aug 6, 2010 at 1:08 PM, Marcus D. Hanwell
<marcus.hanwell at kitware.com> wrote:
> On Fri, Aug 6, 2010 at 3:01 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>>
>> 2) Constants are automatically wrapped
>
> This is great news, and I am very pleased we can start using the enum
> values. Can we start using the enum types in our API too, i.e. go from void
> SetType(int enumValue) to void SetType(enumType enumValue)?

Yeah, I was sure that you'd ask about that.  Unfortunately, it would
be a lot of work to make the python wrappers support this.  Also,
python isn't the only wrapper language.  You should avoid using enum
types like that until enum types are wrapped in all three languages.

>> 3) The vtkDataArray GetTuple() and SetTuple() methods are wrapped.  So
>> python users don't have to use the SetTuple2(), GetTuple3() methods
>> anymore.
>
> Does this mean we could deprecate some of this API, or is it still very much
> required for the Tcl and Java wrappers?

Definitely still required for Tcl and Java until someone takes the
time to work on those language wrappers.

  David



More information about the vtk-developers mailing list