[vtkusers] wrapping Python, TCL, etc
Sander Niemeijer
niemeijer at science-and-technology.nl
Wed Apr 7 11:52:10 EDT 2004
I did something similar for a project we are working on.
To create the wrapped C++ *Python.cxx files you can use the
vtkWrapPython program that comes with VTK.
You can use something like this:
vtkWrapPython yourfile.h wrappinghints 1 yourfilePython.cxx
You can probably just use an empty file for your wrappinghints. And the
parameter '1' should be replaced by a '0' if your class is an abstract
class (a class that can not be instantiated in Python).
Hope this helps.
Best regards,
Sander Niemeijer
On woensdag, apr 7, 2004, at 16:32 Europe/Amsterdam, Rupert Brooks
wrote:
>
> Hello,
>
> I'd like to use VTKs wrapping method to wrap some additional C++
> classes
> for
> Python the way that the VTK classes are wrapped. Unfortunatley, i
> can't
> find any documentation on how that works, and i cant seem to figure it
> out
> by poking the existing code.
>
> Where is it documented or failing that what code in the tree should i
> start reading to figure out how it works.
>
> One thing that is of particular interest to me is building wrapped
> classes
> outside the main VTK build. Recompiling the main build always carries
> a
> certain risk of blowing up other peoples running applications. I'd
> rather
> build extra classes in a separate location.
>
> thanks
> rupert b.
> -----------------------------------------------------------------------
> ---------------
> Rupert Brooks For every complex
> question
> rbrooks at cyberus.ca there is a simple and
> wrong solution
> www.cyberus.ca/~rbrooks --A. Einstein
>
>
>
> Sent using cyberus.ca WebMail - http://www.cyberus.ca/
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list