python, vtk, C++

Y

Yi-Yu Chou

Dear all,

I want to use python as my GUI to load a 3D volume (vtkImageData),
and use a pointer to pass this 3D image to my own C++ class.
My question is I don't know how to communicate between python and C++.
Any suggestion would be appreciated.

_________________________________________________________________
²{¦b´N¤W MSN ¥xÆWºô¯¸¡G»P¿ËªB¦n¤Íºò±KÁpô¡A§Y®É´x´¤·s»D¡B°]¸g¡B®T¼Öªº³Ì·s°T
®§ http://msn.com.tw
 
J

John J. Lee

Yi-Yu Chou said:
I want to use python as my GUI to load a 3D volume (vtkImageData),
and use a pointer to pass this 3D image to my own C++ class.
My question is I don't know how to communicate between python and C++.
Any suggestion would be appreciated.

Google.


John
 
F

Fernando Perez

David said:
I think I can be a little more helpful than that:

http://www.boost.org/libs/python
http://www.swig.org

And even further: google('mayavi python') (this wouldn't be obvious if you
didn't know about mayavi). There's a solid chance Mayavi will solve the OP's
problem without writing one line of code. The most recent version includes
volume rendering right out of the box. If he wants to code, mayavi can also
be scripted, and a tool called ivtk is included for interactive manipulation
of vtk objects.

Cheers,

f.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top