11 #ifndef PYTHONPROCESS_HPP 12 #define PYTHONPROCESS_HPP 16 #if defined(WIN64) && defined(__GNUC__) 17 # define Py_InitModule4 Py_InitModule4_64 50 extern mgxPython_EXPORT PyTypeObject factory_type;
51 extern mgxPython_EXPORT PyTypeObject process_type;
68 return (*
this)(parms[0]);
71 bool operator()(
QString filename);
84 bool initPython(
const QString& filename);
85 bool finalizePython();
86 bool addFactory(
char* name);
87 bool removeFactory(
char* name);
88 QString getTraceBack(PyObject* tb,
int limit);
90 PyObject* module, *main, *main_dict;
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: PythonProcess.hpp:66
Definition: PythonProcess.hpp:26
QString folder() const
Folder in which to place the process.
Definition: PythonProcess.hpp:74
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: PythonProcess.hpp:79
Definition: PythonProcess.hpp:37
Definition: PythonProcess.hpp:44
QStringList parmDescs() const
List of parameters descriptions.
Definition: PythonProcess.hpp:77
This process evaluate a Python script from which other processes can be called.
Definition: PythonProcess.hpp:60
QStringList parmDefaults() const
List of default parms.
Definition: PythonProcess.hpp:78
Definition: PythonProcess.hpp:31
QStringList parmNames() const
List of named parameters.
Definition: PythonProcess.hpp:76
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
File containing the definition of a Process.
QString name() const
Returns the name of the process.
Definition: PythonProcess.hpp:73
This is the main process class, the one all process inherit from.
Definition: Process.hpp:258
Global processes have full mutable access to all properties of the process.
Definition: Process.hpp:904
This namespace contains all the classes needed to define processes.
QString description() const
Returns a description of the process for the GUI.
Definition: PythonProcess.hpp:75