![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Applications/ctkSimplePythonShell/ctkSimplePythonManager.h>


Public Types | |
| typedef ctkAbstractPythonManager | Superclass |
Public Types inherited from ctkAbstractPythonManager | |
| enum | ExecuteStringMode { EvalInput = 0 , FileInput , SingleInput } |
| typedef QObject | Superclass |
Public Member Functions | |
| ctkSimplePythonManager (QObject *parent=0) | |
| ~ctkSimplePythonManager () | |
Public Member Functions inherited from ctkAbstractPythonManager | |
| void | addObjectToPythonMain (const QString &name, QObject *obj) |
| void | addWrapperFactory (PythonQtForeignWrapperFactory *factory) |
| ctkAbstractPythonManager (QObject *_parent=NULL) | |
| Q_INVOKABLE void | executeFile (const QString &filename) |
| Execute a python script with the given filename. More... | |
| Q_INVOKABLE QVariant | executeString (const QString &code, ExecuteStringMode mode=FileInput) |
| QVariant | getVariable (const QString &varName) |
| int | initializationFlags () const |
| bool | initialize () |
| bool | isPythonInitialized () const |
| PythonQtObjectPtr | mainContext () |
| QStringList | pythonAttributes (const QString &pythonVariableName, const QString &module=QLatin1String("__main__"), bool appendParenthesis=false) const |
| bool | pythonErrorOccured () const |
| void | registerClassForPythonQt (const QMetaObject *metaobject) |
| void | registerCPPClassForPythonQt (const char *name) |
| void | registerPythonQtDecorator (QObject *decorator) |
| void | resetErrorFlag () |
| void | setInitializationFlags (int flags) |
| void | setInitializationFunction (void(*initFunction)()) |
| void | setSystemExitExceptionHandlerEnabled (bool value) |
| bool | systemExitExceptionHandlerEnabled () const |
| virtual | ~ctkAbstractPythonManager () |
Protected Member Functions | |
| virtual void | executeInitializationScripts () |
| Overload this function to execute script at initialization time. More... | |
| virtual void | preInitialization () |
| Overload this function to load Decorator and pythonQt wrapper at initialization time. More... | |
| virtual QStringList | pythonPaths () |
Protected Member Functions inherited from ctkAbstractPythonManager | |
| void | initPythonQt (int flags) |
Additional Inherited Members | |
Signals inherited from ctkAbstractPythonManager | |
| void | pythonInitialized () |
| void | pythonPreInitialized () |
| void | systemExitExceptionRaised (int exitCode) |
Static Public Member Functions inherited from ctkAbstractPythonManager | |
| static QStringList | dir_object (PyObject *object, bool appendParenthesis=false) |
| static PyObject * | pythonModule (const QString &module) |
| Given a string of the form "<modulename1>[.<modulenameN>...]" containing modules, return the final module as a PyObject*. More... | |
| static PyObject * | pythonObject (const QString &variableNameAndFunction) |
| static QStringList | splitByDotOutsideParenthesis (const QString &pythonVariableName) |
Protected Slots inherited from ctkAbstractPythonManager | |
| void | printStderr (const QString &) |
| void | printStdout (const QString &) |
Protected Attributes inherited from ctkAbstractPythonManager | |
| QScopedPointer< ctkAbstractPythonManagerPrivate > | d_ptr |
Definition at line 29 of file ctkSimplePythonManager.h.
Definition at line 34 of file ctkSimplePythonManager.h.
| ctkSimplePythonManager::ctkSimplePythonManager | ( | QObject * | parent = 0 | ) |
| ctkSimplePythonManager::~ctkSimplePythonManager | ( | ) |
|
protectedvirtual |
Overload this function to execute script at initialization time.
Reimplemented from ctkAbstractPythonManager.
|
protectedvirtual |
Overload this function to load Decorator and pythonQt wrapper at initialization time.
Reimplemented from ctkAbstractPythonManager.
|
protectedvirtual |
Reimplemented from ctkAbstractPythonManager.