Difference between revisions of "Documentation/Labs/CallingPythonMethodsFromCpp"

From Slicer Wiki
Jump to: navigation, search
m (Created page with ' This has been discussed during the NA-MIC engineering Tcon of Jan 31, 2012. The goal would be to create a class / object allowing to easily instanciate python call and call asso…')
 
(No difference)

Latest revision as of 23:16, 31 January 2013

Home < Documentation < Labs < CallingPythonMethodsFromCpp

This has been discussed during the NA-MIC engineering Tcon of Jan 31, 2012. The goal would be to create a class / object allowing to easily instanciate python call and call associated python method from Cpp.

The existing code allowing to call python methods is "duplicated" in two places:
  
  https://github.com/Slicer/Slicer/blob/master/Base/QTGUI/qSlicerScriptedLoadableModule.cxx

 
https://github.com/Slicer/Slicer/blob/master/Libs/MRML/DisplayableManager/vtkMRMLScriptedDisplayableManager.cxx

The idea would be to create a   re-usable class allowing to easily achieve it.