[vtk-developers] Tcl wrapping and output array arguments

David Gobbi david.gobbi at gmail.com
Mon Mar 23 17:13:35 EDT 2015


On Mon, Mar 23, 2015 at 2:46 PM, Jorge Perez <josp.jorge at gmail.com> wrote:

> Hello, we are developing some applications based on VTK + Tcl. For our
> requirements, we think this a very productive multi-platform solution and
> we would like to provide support to solve the issue here raised with the
> aim to continue the development of the Tcl Wrapping capabilities in VTK. In
> order to help in this issue we appreciate any guide to understand the
> arguments that vtkWrapTcl is processing.
>

Rough guide to understanding vtkWrapTcl.c:

1) Look for the main() function, which is at around line 1100.  It uses a
few
important data structures: OptionInfo, FileInfo, ClassInfo.

2) Read vtkParseMain.h, vtkParseData.h, vtkParseType.h, vtkParseHierarchy.h
to understand the data structures that are involved in VTK wrapping

3) Most of vtkWrapTcl.c is a bunch of fprintf() statements that produce C++
code
for the wrappers.  I don't have much advice here except to trace through the
code, starting at the first "fprintf(fp, ..." at line 1132 in main().  This
is the place
where vtkWrapTcl starts writing the wrapper code.

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


More information about the vtk-developers mailing list