Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
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;
94 QList<PythonCommandObserver*> m_Observer;
95 ctkAbstractPythonManager m_PythonManager;
96 bool m_ItkWrappingAvailable;
97 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 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
Find image slices visible on a given plane.
void RemovePythonCommandObserver(PythonCommandObserver *observer) override
bool CopyToPythonAsVtkPolyData(mitk::Surface *surface, const std::string &varName) 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