Integrando Python com C e C++ Integrando Python com C e C++ Paulo Henrique Junqueira Amorim Desenvolvedor Software InVesalius Ministério da Ciência e Tecnologia
Integrando Python com C e C++Integrando Python com C e C++Paulo Henrique Junqueira Amorim
Desenvolvedor Software InVesalius
Ministério daCiência eTecnologia
Integrando Python com C e C++
Mini Agenda 1 Porque Python com C / C++ ? 2 Manualmente 3 CTypes 4 SWIG 4.1 SWIG + CMake 5 Outras Ferramentas 6 InVesalius
Integrando Python com C e C++
1. Porque usar código em C ou C++ ?
Desempenho
Integrando Python com C e C++
ManualmenteManualmente
Integrando Python com C e C++
2. Manualmente
Integrando Python com C e C++
2. Manualmente
Integrando Python com C e C++
2. Manualmente
Integrando Python com C e C++
2. Manualmente
Integrando Python com C e C++
2. Manualmente
Integrando Python com C e C++
http://www.python.org/doc/ext/ext.html
http://docs.python.org/api/api.html
2. Manualmente
Integrando Python com C e C++
CTypesCTypes
Integrando Python com C e C++
3. CTypes
Integrando Python com C e C++
3. CTypes
Integrando Python com C e C++
3. CTypes
Integrando Python com C e C++
3. CTypes
Integrando Python com C e C++
http://python.net/crew/theller/ctypes/tutorial.html
3. CTypes
Integrando Python com C e C++
SWIGSWIG
Integrando Python com C e C++
4. SWIGArquivo Interface
SWIGParser
Gerador Código Gerador Docum.
Python / TCL /... HTML / LaTeX
Integrando Python com C e C++
Quem usa ?Quem usa ?
wxPythonpyOpenGL
pyOgre...
4. SWIG
Integrando Python com C e C++
SuporteSuporte
TCLPHPLuaC#
Java...
4. SWIG
Integrando Python com C e C++
4. SWIG
Integrando Python com C e C++
4. SWIG
Integrando Python com C e C++
4. SWIG
Integrando Python com C e C++
4. SWIG
Integrando Python com C e C++
SWIG + CMakeSWIG + CMake
Integrando Python com C e C++
4.1. SWIG + CMake
Integrando Python com C e C++
4.1. SWIG + CMake
Integrando Python com C e C++
4.1. SWIG + CMake
Integrando Python com C e C++
CompiladoresCompiladores
GCCWatcom WMake
MinGWBorland C++
Visual Studio [6:9]GCC XCode
...
4.1. SWIG + CMake
Integrando Python com C e C++
Mastering CMakeISBN 1930934165
4.1. SWIG + CMake
www.cmake.org
Integrando Python com C e C++
Outras FerramentasOutras Ferramentas
Integrando Python com C e C++
Python SIP Python SIP Boost.Python Boost.Python
Pyrex Pyrex Cython Cython Weave Weave
5. Outras Ferramentas
Integrando Python com C e C++
6. InVesalius
VTK + SLICER
GDCM
ITK
Integrando Python com C e C++
Obrigado!Obrigado!
Dúvidas ?Dúvidas ?
Ministério daCiência eTecnologia