|
MeVisLab Toolbox Reference
|
Public interface for processing all pages of a temporary output image. More...
#include <mlProcessAllPagesJob.h>
Public Member Functions | |
| ProcessAllPagesJob (Module &module, ProcessAllPagesHandler *handler=nullptr, const SubImageBox &box=SubImageBox(), int outputIndex=-1) | |
Creates a ProcessAllPagesJob for the given Module module with the requested box. | |
| ~ProcessAllPagesJob () override | |
| Destructor. | |
| MLErrorCode | init (PageRequestProcessor &processor) override |
| Initializes the process all pages request and adds it to the processor if no error occurs. | |
| void | delegateProgressUpdate (double progress) override |
| Emits the progress when it changes, to be reimplemented in derived classes. | |
Public Member Functions inherited from ml::GetTileJobBase | |
| GetTileJobBase () | |
| virtual | ~GetTileJobBase () |
| double | getProgress () const |
| Returns the current progress of the tile request ([0..1] range). | |
| bool | hasFinished () |
| Returns whether the request has finished. | |
| bool | hasError () const |
| Returns whether the request has an error and the data is thus unusable/invalid. | |
| MLErrorCode | getError () const |
| Returns the error that happened. It returns ML_RESULT_OK if everything is ok. | |
| void | setTileRequestFinishedCB (TileRequestFinishedCB *cb, void *data) |
| Sets the tile request finished callback that is called when the tile is ready. | |
| void | cancel () |
| Cancels the GetTileJob. This only sets the flag, the real cancellation needs to be done on the PageRequestProcessor. | |
| void | updateProgress () |
| Called by host to allow custom progress updates. | |
| void | setProgressCB (MLRequestProgressCB *progressCallback, void *progressCallbackUserData) |
| Sets the progress callback. It will be called when updateProgress() is called. | |
Additional Inherited Members | |
Protected Attributes inherited from ml::GetTileJobBase | |
| TileRequest * | _request |
| The root TileRequest that is used internally. | |
| MLRequestProgressCB * | _progressCB |
| void * | _progressCBUserData |
| double | _lastProgress |
Public interface for processing all pages of a temporary output image.
Definition at line 36 of file mlProcessAllPagesJob.h.
| ml::ProcessAllPagesJob::ProcessAllPagesJob | ( | Module & | module, |
| ProcessAllPagesHandler * | handler = nullptr, |
||
| const SubImageBox & | box = SubImageBox(), |
||
| int | outputIndex = -1 |
||
| ) |
Creates a ProcessAllPagesJob for the given Module module with the requested box.
After creation, the job needs to be initialized using init().
|
override |
Destructor.
|
overridevirtual |
Emits the progress when it changes, to be reimplemented in derived classes.
Reimplemented from ml::GetTileJobBase.
|
overridevirtual |
Initializes the process all pages request and adds it to the processor if no error occurs.
It returns ML_REQUEST_OUTSIDE_OF_IMAGE if the request lies completely outside and nothing needs to be done.
Implements ml::GetTileJobBase.