Documentation/Labs/CallingPythonMethodsFromCpp

From Slicer Wiki
Revision as of 23:16, 31 January 2013 by JChris.FillionR (talk | contribs) (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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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.