<div dir="ltr">No, neither the Tcl wrappers or the the Java wrappers can wrap<div>vtkBoundingBox as an "object".  But they could convert it into an</div><div>array of six floats.  For example, if a method takes an argument</div><div>of type "vtkBoundingBox" in C++, it could be wrapped as a Tcl</div><div>method that takes six floats.  If a method returns a vtkBoundingBox</div><div>in C++, it could be wrapped as a Tcl method that returns six floats.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 27, 2015 at 8:25 AM, David Cole <span dir="ltr"><<a href="mailto:DLRdave@aol.com" target="_blank">DLRdave@aol.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">vtkBoundingBox does not derive from vtkObject. Are the tcl wrappers<br>
able to handle non-vtkObject (i.e. non-ref-counted) entities properly<br>
these days?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Fri, Mar 27, 2015 at 10:14 AM, David Lonie <<a href="mailto:david.lonie@kitware.com">david.lonie@kitware.com</a>> wrote:<br>
> On Tue, Mar 24, 2015 at 9:26 AM, David Lonie <<a href="mailto:david.lonie@kitware.com">david.lonie@kitware.com</a>><br>
> wrote:<br>
>><br>
>> Now I'm leaning towards<br>
>><br>
>> vtkBoundingBox ComputeBoundingBox(vtkViewport *)<br>
>> [snip]<br>
>> It needs a couple hints to be wrapped properly, but that's not nearly as<br>
>> much trouble :)<br>
><br>
><br>
> Argh, it's not that easy. vtkBoundingBoxTcl.cxx is generated, but:<br>
><br>
> vtkActor actor<br>
> vtkRenderer renderer<br>
> set bbox [actor ComputeBoundingBox renderer]<br>
><br>
> fails, as vtkProp::ComputeBoundingBox isn't wrapped in Tcl or Python (didn't<br>
> test java). vtkBoundingBox is wrapped, but even just<br>
><br>
> vtkBoundingBox bbox<br>
><br>
> fails in tcl ('unknown command vtkBoundingBox'). FWIW,<br>
><br>
> bbox = vtk.vtkBoundingBox()<br>
><br>
> works in python. Any ideas what's missing here?<br>
><br>
> Dave<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtk-developers" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>