Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
12 #ifndef mitkPythonService_h
13 #define mitkPythonService_h
15 #include <ctkAbstractPythonManager.h>
22 #include <itkLightObject.h>
43 void ExecuteScript(
const std::string &pathToPythonScript)
override;
55 std::string
GetVariable(
const std::string& name)
const override;
103 QList<PythonCommandObserver*> m_Observer;
104 ctkAbstractPythonManager m_PythonManager;
105 bool m_ItkWrappingAvailable;
106 bool m_OpenCVWrappingAvailable;
107 bool m_VtkWrappingAvailable;
void ExecuteScript(const std::string &pathToPythonScript) override
std::vector< PythonVariable > GetVariableStack() const override
bool IsVtkPythonWrappingAvailable() override
static const int SINGLE_LINE_COMMAND
bool CopyToPythonAsCvImage(mitk::Image *image, const std::string &varName) override
bool CopyToPythonAsSimpleItkImage(mitk::Image *image, const std::string &varName) override
Image class for storing images.
void AddRelativeSearchDirs(std::vector< std::string > dirs) override
~PythonService() override
empty implementation...
void AddAbsoluteSearchDirs(std::vector< std::string > dirs) override
bool IsSimpleItkPythonWrappingAvailable() override
Class for storing surfaces (vtkPolyData).
std::string GetVariable(const std::string &name) const override
ctkAbstractPythonManager * GetPythonManager() override
bool DoesVariableExist(const std::string &name) const override
mitk::Image::Pointer CopyCvImageFromPython(const std::string &varName) override
Find image slices visible on a given plane.
void RemovePythonCommandObserver(PythonCommandObserver *observer) override
bool CopyToPythonAsVtkPolyData(mitk::Surface *surface, const std::string &varName) override
bool IsOpenCvPythonWrappingAvailable() override
void NotifyObserver(const std::string &command) override
mitk::Image::Pointer CopySimpleItkImageFromPython(const std::string &varName) override
mitk::Surface::Pointer CopyVtkPolyDataFromPython(const std::string &varName) override
std::string Execute(const std::string &pythonCommand, int commandType=SINGLE_LINE_COMMAND) override
void AddPythonCommandObserver(PythonCommandObserver *observer) override
bool PythonErrorOccured() const override
PythonService()
instantiate python manager here