ML Reference
|
Base class for handlers that are used for the Module::processAllPages facility. More...
#include <mlProcessAllPagesHandler.h>
Public Member Functions | |
virtual void | calculateOutputImageProperties (PagedImage *) |
Calculates the (temporary and virtual) output image's properties, which by default has the properties of input image 0. | |
virtual bool | wantsProgressUpdates () |
Returns if the handler want to receive progress updates via updateProgress() | |
virtual void | updateProgress (double) |
Called in regular intervals when wantsProgressUpdates() == true. | |
void | install (PagedImage *outImg) |
Installs the handler on the PagedImage (which is typically called by the ML Host, do not call it yourself!) | |
virtual const char * | getName () |
Returns the name of the handler. | |
Public Member Functions inherited from ml::CalculateOutputImageHandler | |
virtual | ~CalculateOutputImageHandler () |
Destructor. | |
virtual SubImageBox | calculateInputSubImageBox (int, const SubImageBox &outputSubImageBox) |
Called by the host to determine which input image region (tile) of input inputIndex is required to calculate a certain output image region (page) of output image. | |
virtual void | calculateOutputSubImage (SubImage *outputSubImage, SubImage *inputSubImages, UserThreadData *userThreadData)=0 |
Calculate page outputSubImage of output image given the input image tiles in array inputSubImages . | |
virtual UserThreadData * | createUserThreadData () |
Create the thread local user data for a thread. | |
Base class for handlers that are used for the Module::processAllPages facility.
The main difference to the CalculateOutputImageHandler base class is that it adds the calculateOutputImageProperties() virtual method, which you can reimplement to setup the properties of the temporary output image that Module::processAllPages(yourHandler) generates. This allows to adjust the properties of the output image, e.g., its page extent.
Definition at line 37 of file mlProcessAllPagesHandler.h.
|
inlinevirtual |
Calculates the (temporary and virtual) output image's properties, which by default has the properties of input image 0.
Reimplemented in ml::OrderedSingleInputProcessAllPagesHandler, and ml::OrderedProcessAllPagesHandler.
Definition at line 46 of file mlProcessAllPagesHandler.h.
|
inlinevirtual |
Returns the name of the handler.
Re-implement this function to see the name of the handler in Profiling.
Definition at line 61 of file mlProcessAllPagesHandler.h.
void ml::ProcessAllPagesHandler::install | ( | PagedImage * | outImg | ) |
Installs the handler on the PagedImage (which is typically called by the ML Host, do not call it yourself!)
|
inlinevirtual |
Called in regular intervals when wantsProgressUpdates() == true.
Is is guaranteed that this method is called with progress == 1. This method is only called by the new ML host.
Definition at line 54 of file mlProcessAllPagesHandler.h.
|
inlinevirtual |
Returns if the handler want to receive progress updates via updateProgress()
Definition at line 49 of file mlProcessAllPagesHandler.h.