[vtkusers] embedding python vtk pipelines in c++ vtk
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Thu Mar 8 11:12:00 EST 2001
hi,
>>>>> "Charl" == Charl P Botha <c.p.botha at its.tudelft.nl> writes:
<snip>
Charl> I have looked at CXX (cxx.sourceforge.net) but it seems
Charl> that this wants to wrap all python datastructures in its
Charl> own C++ equivalents. Has anyone got any ideas w.r.t. this
Charl> (combining python vtk pipelines with pipelines in a mainly
Charl> C++ application)?
Take a look at the Boost Python Library (http://www.boost.org). It is
rather easy to use and allows you to wrap C++ objects into Python very
well. Infact you can overload virtual methods in Python and have them
called by a c++ library if you do things right. You will have to
write wrapper code by hand to wrap your C++ library - but that should
not be too hard. It is really nice, and definitely worth a shot at.
If you wait long enough you could use Kitware's GCC XML extensions to
wrap your code to Python and other languages automatically! :)
http://public.kitware.com/GCC_XML/
prabhu
More information about the vtkusers
mailing list