16 #ifndef mitkPythonService_h
17 #define mitkPythonService_h
20 #include <itkLightObject.h>
21 #include <ctkAbstractPythonManager.h>
95 QList<PythonCommandObserver*> m_Observer;
96 ctkAbstractPythonManager m_PythonManager;
97 static const QString m_TmpDataFileName;
98 bool m_ItkWrappingAvailable;
99 bool m_OpenCVWrappingAvailable;
100 bool m_VtkWrappingAvailable;
Class for storing surfaces (vtkPolyData).
bool DoesVariableExist(const std::string &name) const
bool CopyToPythonAsVtkPolyData(mitk::Surface *surface, const std::string &varName)
ctkAbstractPythonManager * GetPythonManager()
mitk::Surface::Pointer CopyVtkPolyDataFromPython(const std::string &varName)
DataCollection - Class to facilitate loading/accessing structured data.
bool IsOpenCvPythonWrappingAvailable()
void RemovePythonCommandObserver(PythonCommandObserver *observer)
bool IsSimpleItkPythonWrappingAvailable()
void NotifyObserver(const std::string &command)
bool PythonErrorOccured() const
std::string Execute(const std::string &pythonCommand, int commandType=SINGLE_LINE_COMMAND)
std::vector< PythonVariable > GetVariableStack() const
static const int SINGLE_LINE_COMMAND
bool CopyToPythonAsSimpleItkImage(mitk::Image *image, const std::string &varName)
Image class for storing images.
~PythonService()
empty implementation...
mitk::Image::Pointer CopyCvImageFromPython(const std::string &varName)
bool CopyToPythonAsCvImage(mitk::Image *image, const std::string &varName)
QString GetTempDataFileName(const std::string &ext) const
bool IsVtkPythonWrappingAvailable()
void ExecuteScript(const std::string &pathToPythonScript)
mitk::Image::Pointer CopySimpleItkImageFromPython(const std::string &varName)
PythonService()
instantiate python manager here
void AddPythonCommandObserver(PythonCommandObserver *observer)