Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkPythonService.h>
Public Member Functions | |
PythonService () | |
instantiate python manager here More... | |
~PythonService () | |
empty implementation... More... | |
std::string | Execute (const std::string &pythonCommand, int commandType=SINGLE_LINE_COMMAND) |
void | ExecuteScript (const std::string &pathToPythonScript) |
bool | PythonErrorOccured () const |
std::vector< PythonVariable > | GetVariableStack () const |
bool | DoesVariableExist (const std::string &name) const |
void | AddPythonCommandObserver (PythonCommandObserver *observer) |
void | RemovePythonCommandObserver (PythonCommandObserver *observer) |
void | NotifyObserver (const std::string &command) |
bool | IsSimpleItkPythonWrappingAvailable () |
bool | CopyToPythonAsSimpleItkImage (mitk::Image *image, const std::string &varName) |
mitk::Image::Pointer | CopySimpleItkImageFromPython (const std::string &varName) |
bool | IsOpenCvPythonWrappingAvailable () |
bool | CopyToPythonAsCvImage (mitk::Image *image, const std::string &varName) |
mitk::Image::Pointer | CopyCvImageFromPython (const std::string &varName) |
bool | IsVtkPythonWrappingAvailable () |
bool | CopyToPythonAsVtkPolyData (mitk::Surface *surface, const std::string &varName) |
mitk::Surface::Pointer | CopyVtkPolyDataFromPython (const std::string &varName) |
ctkAbstractPythonManager * | GetPythonManager () |
Public Member Functions inherited from mitk::IPythonService | |
virtual | ~IPythonService () |
nothing to do here More... | |
Protected Member Functions | |
QString | GetTempDataFileName (const std::string &ext) const |
Additional Inherited Members | |
Static Public Member Functions inherited from mitk::IPythonService | |
static std::string | ForceLoadModule () |
Static Public Attributes inherited from mitk::IPythonService | |
static const int | SINGLE_LINE_COMMAND |
static const int | MULTI_LINE_COMMAND |
static const int | EVAL_COMMAND |
implementation of the IPythonService using ctkabstractpythonmanager
Definition at line 29 of file mitkPythonService.h.
mitk::PythonService::PythonService | ( | ) |
instantiate python manager here
Definition at line 40 of file mitkPythonService.cpp.
References mitk::IOUtil::GetProgramPath(), MITK_DEBUG, and mitkThrow.
mitk::PythonService::~PythonService | ( | ) |
empty implementation...
Definition at line 150 of file mitkPythonService.cpp.
References MITK_DEBUG.
|
virtual |
Implements mitk::IPythonService.
Definition at line 249 of file mitkPythonService.cpp.
|
virtual |
Implements mitk::IPythonService.
Definition at line 783 of file mitkPythonService.cpp.
References DeterminePixelType(), mitk::ImageWriteAccessor::GetData(), mitk::PixelType::GetSize(), MITK_DEBUG, mitk::IPythonService::MULTI_LINE_COMMAND, and mitk::Image::New().
|
virtual |
Implements mitk::IPythonService.
Definition at line 564 of file mitkPythonService.cpp.
References DeterminePixelType(), MITK_DEBUG, mitk::IPythonService::MULTI_LINE_COMMAND, and mitk::Image::New().
|
virtual |
Build a string in the format [1024,1028,1] to describe the dimensionality. This is needed for simple itk to know the dimensions of the image
Implements mitk::IPythonService.
Definition at line 679 of file mitkPythonService.cpp.
References mitk::PixelType::GetComponentType(), mitk::ImageAccessorBase::GetData(), mitk::Image::GetDimensions(), mitk::PixelType::GetNumberOfComponents(), mitk::Image::GetPixelType(), MITK_DEBUG, MITK_WARN, and mitk::IPythonService::MULTI_LINE_COMMAND.
|
virtual |
Build a string in the format [1024,1028,1] to describe the dimensionality. This is needed for simple itk to know the dimensions of the image
Implements mitk::IPythonService.
Definition at line 276 of file mitkPythonService.cpp.
References mitk::FillVector3D(), mitk::PixelType::GetComponentType(), mitk::ImageAccessorBase::GetData(), mitk::Image::GetDimensions(), mitk::BaseData::GetGeometry(), mitk::BaseGeometry::GetIndexToWorldTransform(), mitk::PixelType::GetNumberOfComponents(), mitk::BaseGeometry::GetOrigin(), mitk::PixelType::GetPixelType(), mitk::Image::GetPixelType(), mitk::BaseGeometry::GetSpacing(), MITK_DEBUG, MITK_WARN, and mitk::IPythonService::MULTI_LINE_COMMAND.
|
virtual |
Implements mitk::IPythonService.
Definition at line 892 of file mitkPythonService.cpp.
References mitk::Surface::GetVtkPolyData(), MITK_DEBUG, and mitk::IPythonService::MULTI_LINE_COMMAND.
|
virtual |
Implements mitk::IPythonService.
Definition at line 848 of file mitkPythonService.cpp.
References MITK_DEBUG, mitk::IPythonService::MULTI_LINE_COMMAND, and mitk::Surface::New().
|
virtual |
Implements mitk::IPythonService.
Definition at line 232 of file mitkPythonService.cpp.
|
virtual |
Implements mitk::IPythonService.
Definition at line 160 of file mitkPythonService.cpp.
References mitk::IPythonService::EVAL_COMMAND, MITK_DEBUG, mitk::IPythonService::MULTI_LINE_COMMAND, and mitk::IPythonService::SINGLE_LINE_COMMAND.
|
virtual |
Implements mitk::IPythonService.
Definition at line 189 of file mitkPythonService.cpp.
|
virtual |
Implements mitk::IPythonService.
Definition at line 843 of file mitkPythonService.cpp.
|
protected |
Definition at line 269 of file mitkPythonService.cpp.
|
virtual |
Implements mitk::IPythonService.
Definition at line 194 of file mitkPythonService.cpp.
References mitk::PythonVariable::m_Name, mitk::PythonVariable::m_Type, and mitk::PythonVariable::m_Value.
|
virtual |
Implements mitk::IPythonService.
Definition at line 934 of file mitkPythonService.cpp.
References mitk::IPythonService::SINGLE_LINE_COMMAND.
|
virtual |
Implements mitk::IPythonService.
Definition at line 916 of file mitkPythonService.cpp.
References MITK_ERROR, and mitk::IPythonService::SINGLE_LINE_COMMAND.
|
virtual |
Implements mitk::IPythonService.
Definition at line 942 of file mitkPythonService.cpp.
References mitk::IPythonService::SINGLE_LINE_COMMAND.
|
virtual |
Implements mitk::IPythonService.
Definition at line 260 of file mitkPythonService.cpp.
References MITK_DEBUG.
|
virtual |
Implements mitk::IPythonService.
Definition at line 951 of file mitkPythonService.cpp.
|
virtual |
Implements mitk::IPythonService.
Definition at line 255 of file mitkPythonService.cpp.