[vtk-developers] Tcl wrapping and output array arguments

David Gobbi david.gobbi at gmail.com
Fri Mar 20 09:42:39 EDT 2015


On Fri, Mar 20, 2015 at 7:17 AM, David Lonie <david.lonie at kitware.com>
wrote:

> On Thu, Mar 19, 2015 at 5:54 PM, David Gobbi <david.gobbi at gmail.com>
> wrote:
>
>> On Thu, Mar 19, 2015 at 2:28 PM, David Lonie <david.lonie at kitware.com>
>> wrote:
>>
>>> 2) If so, how can I teach the wrappers about it?
>>>
>>
>> Adding things like this to Tcl is easier than for Java or Python, but
>> it's more than an afternoon's work.
>>
>
> One more thing:
>
> If you know offhand, can you briefly outline the steps that are needed to
> do this? That might help clarify whether the maintenance burden is
> excessive or not. Would it be a one-time deal that would teach Tcl how to
> wrap all similar methods, or would it need to be repeated for every similar
> method that gets added?
>

My brief outline is this: find the code in vtkWrapTcl.c that builds arrays
to be used as return values, and then do something similar for this new
kind of method signature, except have it assign a global name (whatever
name was passed as a parameter) to the new array instead of returning it.
If it is done for this method, it should work for all similar methods.

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150320/dc95d194/attachment.html>


More information about the vtk-developers mailing list