Public Types | |
Public Slots | |
Access to PythonModule. | |
| bool | processAllPages (const QList< quint64 > &pos=QList< quint64 >(), const QList< quint64 > &extent=QList< quint64 >()) |
| void | setHandleInput (int index, HandleInput handleInputFlag) |
| void | setPythonModule (const char *name) |
| void | setTouchOutputsOnInputChange (bool flag=true) |
This interface allows to call processAllPages() and to set the input image handling for invalid inputs.
How to handle the inputs if they are either disconnected or contain an invalid image.
| bool MLPythonModuleWrapper::processAllPages | ( | const QList< quint64 > & | pos = QList< quint64 >(), |
|
| const QList< quint64 > & | extent = QList< quint64 >() | |||
| ) | [slot] |
Process all pages of the module (equivalent to calling Module::processAllPages(-1, box)) This will call calculateOutputImageProperties(-1, outImg) and you can define the properties of the temporaty paged image there.
| void MLPythonModuleWrapper::setHandleInput | ( | int | index, | |
| HandleInput | handleInputFlag | |||
| ) | [slot] |
Set how the input image at index should be handled if the input is disconnected or if it is connected but has an invalid image.
If you allow both invalid and disconnected inputs, you can use AllowAny. Note that the default is Invalidate for all outputs. These flags need to be set in the init phase of the module.
| void MLPythonModuleWrapper::setPythonModule | ( | const char * | name | ) | [inline, slot] |
Sets the name of the associated MeVisLab python module, which is found via sys.modules.
| void MLPythonModuleWrapper::setTouchOutputsOnInputChange | ( | bool | flag = true |
) | [inline, slot] |
Sets that the output images are touched/not touched by the module when any input image changes (the default is true).
1.5.8