16 #ifndef mitkIPythonService_h
17 #define mitkIPythonService_h
20 #include <MitkPythonExports.h>
28 class ctkAbstractPythonManager;
64 static const int SINGLE_LINE_COMMAND = 0;
68 static const int MULTI_LINE_COMMAND = 1;
72 static const int EVAL_COMMAND = 2;
77 virtual std::string Execute(
const std::string& pythonCommand,
int commandType = SINGLE_LINE_COMMAND ) = 0;
80 virtual void ExecuteScript(
const std::string& pathToPythonScript ) = 0;
83 virtual bool PythonErrorOccured()
const = 0;
86 virtual std::vector<PythonVariable> GetVariableStack()
const = 0;
89 virtual bool DoesVariableExist(
const std::string& name)
const = 0;
101 virtual void NotifyObserver(
const std::string& command ) = 0;
105 virtual bool IsSimpleItkPythonWrappingAvailable() = 0;
110 virtual bool CopyToPythonAsSimpleItkImage(
mitk::Image* image,
const std::string& varName ) = 0;
118 virtual bool IsOpenCvPythonWrappingAvailable() = 0;
121 virtual bool CopyToPythonAsCvImage(
mitk::Image* image,
const std::string& varName ) = 0;
128 virtual bool IsVtkPythonWrappingAvailable() = 0;
131 virtual bool CopyToPythonAsVtkPolyData(
mitk::Surface* surface,
const std::string& varName ) = 0;
137 virtual ctkAbstractPythonManager* GetPythonManager() = 0;
144 static std::string ForceLoadModule();
Class for storing surfaces (vtkPolyData).
DataCollection - Class to facilitate loading/accessing structured data.
Image class for storing images.
virtual void CommandExecuted(const std::string &pythonCommand)=0
MITK_DECLARE_SERVICE_INTERFACE(mitk::ISimulationService,"org.mitk.ISimulationService")