[vtk-developers] Tcl wrapping and output array arguments

David Gobbi david.gobbi at gmail.com
Fri Mar 27 10:38:56 EDT 2015


No, neither the Tcl wrappers or the the Java wrappers can wrap
vtkBoundingBox as an "object".  But they could convert it into an
array of six floats.  For example, if a method takes an argument
of type "vtkBoundingBox" in C++, it could be wrapped as a Tcl
method that takes six floats.  If a method returns a vtkBoundingBox
in C++, it could be wrapped as a Tcl method that returns six floats.

On Fri, Mar 27, 2015 at 8:25 AM, David Cole <DLRdave at aol.com> wrote:

> vtkBoundingBox does not derive from vtkObject. Are the tcl wrappers
> able to handle non-vtkObject (i.e. non-ref-counted) entities properly
> these days?
>
>
> On Fri, Mar 27, 2015 at 10:14 AM, David Lonie <david.lonie at kitware.com>
> wrote:
> > On Tue, Mar 24, 2015 at 9:26 AM, David Lonie <david.lonie at kitware.com>
> > wrote:
> >>
> >> Now I'm leaning towards
> >>
> >> vtkBoundingBox ComputeBoundingBox(vtkViewport *)
> >> [snip]
> >> It needs a couple hints to be wrapped properly, but that's not nearly as
> >> much trouble :)
> >
> >
> > Argh, it's not that easy. vtkBoundingBoxTcl.cxx is generated, but:
> >
> > vtkActor actor
> > vtkRenderer renderer
> > set bbox [actor ComputeBoundingBox renderer]
> >
> > fails, as vtkProp::ComputeBoundingBox isn't wrapped in Tcl or Python
> (didn't
> > test java). vtkBoundingBox is wrapped, but even just
> >
> > vtkBoundingBox bbox
> >
> > fails in tcl ('unknown command vtkBoundingBox'). FWIW,
> >
> > bbox = vtk.vtkBoundingBox()
> >
> > works in python. Any ideas what's missing here?
> >
> > Dave
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Search the list archives at:
> http://markmail.org/search/?q=vtk-developers
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtk-developers
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150327/346fc3ad/attachment-0001.html>


More information about the vtk-developers mailing list