[vtk-developers] Hinting proposal

David Gobbi david.gobbi at gmail.com
Wed Apr 27 16:15:28 EDT 2011


As a follow up to the recent discussion on wrapping factory methods,
I'd like to put forth a proposal for adding wrapping hints to VTK:
Hints could be placed inside the method descriptions, as html-style
comments:

// Description:
// Return a new object instance.
// <!--- hint newref='true' -->
vtkObjectBase *NewInstance();

Size hints could replace the hints file currently used by the wrappers.
I'm also keen to provide size hints for operator[] methods, since
these operators cannot be properly wrapped in python until there
is a hint to tell python what method to call to get the index range.

 - David



More information about the vtk-developers mailing list