[vtkusers] python wrap of stand alone vtk lib
David Gobbi
david.gobbi at gmail.com
Mon Mar 15 18:16:20 EDT 2010
I have a little cmake package that does exactly this, i.e. it
automatically calls the VTK's python wrapping macros on your own
classes.
It doesn't use swig. It uses VTK's own wrapping parser, so only
classes derived from vtkObjectBase will be wrapped, but they will be
wrapped exactly like VTK's own classes are.
I'll send it to you in a private email. Eventually I'll put it on the
wiki as an example when I find some time...
David
On Mon, Mar 15, 2010 at 12:48 PM, Dean Inglis <dean.inglis at camris.ca> wrote:
> Hi all,
>
> I am somewhat new to python and am trying to do python wrapping
> of a stand alone c++ library that extends vtk. Ive seen swig in quite a few
> threads but have no idea how to set this up with
> cmake and my library. Can anyone provide a few links or
> pointers to get me started? Ultimately id like to be able to have
> in a py script;
>
> import vtk
> import mykit
>
> def someExample():
> # initialize stuff
> widget = vtkMyKitWidget()
> # use the widget
>
> Dean
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list