12 #ifndef mitkPythonService_h 13 #define mitkPythonService_h 15 #include <ctkAbstractPythonManager.h> 17 #include <itkLightObject.h> 39 void ExecuteScript(
const std::string &pathToPythonScript)
override;
51 std::string
GetVariable(
const std::string& name)
const override;
99 QList<PythonCommandObserver*> m_Observer;
100 ctkAbstractPythonManager m_PythonManager;
101 bool m_ItkWrappingAvailable;
102 bool m_OpenCVWrappingAvailable;
103 bool m_VtkWrappingAvailable;
bool CopyToPythonAsVtkPolyData(mitk::Surface *surface, const std::string &varName) override
Class for storing surfaces (vtkPolyData).
bool CopyToPythonAsSimpleItkImage(mitk::Image *image, const std::string &varName) override
void RemovePythonCommandObserver(PythonCommandObserver *observer) override
DataCollection - Class to facilitate loading/accessing structured data.
void AddRelativeSearchDirs(std::vector< std::string > dirs) override
void NotifyObserver(const std::string &command) override
bool IsSimpleItkPythonWrappingAvailable() override
bool CopyToPythonAsCvImage(mitk::Image *image, const std::string &varName) override
mitk::Image::Pointer CopySimpleItkImageFromPython(const std::string &varName) override
std::string GetVariable(const std::string &name) const override
mitk::Image::Pointer CopyCvImageFromPython(const std::string &varName) override
bool DoesVariableExist(const std::string &name) const override
ctkAbstractPythonManager * GetPythonManager() override
static const int SINGLE_LINE_COMMAND
bool PythonErrorOccured() const override
Image class for storing images.
void ExecuteScript(const std::string &pathToPythonScript) override
void AddAbsoluteSearchDirs(std::vector< std::string > dirs) override
mitk::Image::Pointer image
mitk::Surface::Pointer CopyVtkPolyDataFromPython(const std::string &varName) override
void AddPythonCommandObserver(PythonCommandObserver *observer) override
std::string Execute(const std::string &pythonCommand, int commandType=SINGLE_LINE_COMMAND) override
std::vector< PythonVariable > GetVariableStack() const override
bool IsOpenCvPythonWrappingAvailable() override
~PythonService() override
empty implementation...
bool IsVtkPythonWrappingAvailable() override
PythonService()
instantiate python manager here