[vtkusers] vtk, Python and C/C++

H. Vidal, Jr. hvidal at tesseract-tech.com
Tue Sep 30 16:15:32 EDT 2003


I am successfully using vtk, tcl/tk, and wrapped data acq API in C++. I
found the key glue to be swig. I believe swig support python wrapping of
classes or straight C as well. The resulting code footprint is small,
pretty damned quick, and very stable.

hv

On Mon, 29 Sep 2003, Yi-Yu Chou wrote:

> Date: Mon, 29 Sep 2003 19:11:24 +0000
> From: Yi-Yu Chou <chouyiyu at hotmail.com>
> To: tutulamotte at yahoo.com, vtkusers at vtk.org
> Subject: Re: [vtkusers] vtk, Python and C/C++
>
> Thanks for your information Tutu.
> Now I have a new problem !!!
>
> The structure of my code is as below :
>          ------------         ----------        ----------
>          |              |        |            |        |           |
>          |  Python  |  <-->| wrapper| <--> |   vtk    |
>          |   (GUI)    |        |            |        |           |
>          |              |        -----------        ----------
>          ------------                                     |
>                 ^                                            | ??
>                 |                ----------          ----------
>                 |                |            |         |   My    |
>                 ------------>| wrapper|  <--->|   C++   |
>                                  |            |         |           |
>                                  ----------          ----------
>
> I use python to do the GUI and use vtkImageData to
> display the image. Now I want to write my C++ class
> to do image processing. My question is how to commnuicate
> between python and my c++ class just using a pointer ( or
> other simple ways) not passing the whole 3D array and other
> image information.
> Or is it possible to communicate directly between vtk and my C++
> class ?
> Thanks a lot !!!!!!!!!!!!!!!!!!!!!!!
>
> _________________________________________________________________
> ¥[¤J MSN ªÀ¸s¡G¾Ö©ê¸s²³¡B¤À¨É¸gÅç¡Bµo²{¥Í¬¡ªº¼Ö½ì
> http://groups.msn.com?pgmarket=zh-tw
>
> _______________________________________________
> 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