<div dir="ltr">Hi David & David,<div> I'm happy to volunteer to convert TestSetGet and TestEmptyInput to python.</div><div> The code looks pretty arcane! Looks like Ken Martin originally wrote it in 2001!</div><div>Regards</div><div> Andrew<br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">---------- Forwarded message ----------<br>From: David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>To: David Lonie <<a href="mailto:david.lonie@kitware.com">david.lonie@kitware.com</a>><br>Cc: VTK Developers <<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>><br>Date: Thu, 19 Mar 2015 15:54:22 -0600<br>Subject: Re: [vtk-developers] Tcl wrapping and output array arguments<br><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 19, 2015 at 2:28 PM, David Lonie <span dir="ltr"><<a href="mailto:david.lonie@kitware.com" target="_blank">david.lonie@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>My questions:</div><div><br></div><div>1) Is the concept of an "output array argument" even supported by Tcl?</div></div></blockquote><div><br></div><div>Yes. I imagine something like this could create a new array called "bounds":</div><div><br></div><div> % mapper GetBounds renderer bounds</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>2) If so, how can I teach the wrappers about it?</div></div></blockquote><div><br></div><div>Adding things like this to Tcl is easier than for Java or Python, but it's more than an afternoon's work. I believe that Tcl will already wrap this method, but the wrapped method will expect 6 values as input, instead of expecting one name for an output array that it should create. Because the wrappers can't really tell whether "double[6]" is meant to be used for input or output, the method will actually have to be wrapped twice, once for input, and once for output. There are undoubtedly some tricky complications that I haven't though of, however.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>3) If not, is there some way to add a suitable implementation to Tcl, but not C++?</div><div><br></div><div>And perhaps the most curious question from my point of view,</div><div><br></div><div>4) Why do we still provide Tcl bindings in 2015?</div></div></blockquote><div><br></div><div>Because they're cool! Actually, at this point I'm fine with them going away, but I'd still like to keep Tkinter (which works just fine without the Tcl wrappers).</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>But seriously, can we deprecate them for 6.3?</div></div></blockquote><div><br></div><div>Any volunteers to convert TestSetGet and TestEmptyInput to python?</div><div><br></div><div> - David</div></div></div></div>
<br><br></blockquote></div><div><br></div>-- <br><div class="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div></div></div>