|
ML Reference
|
#include <mlProcessAllPagesHandler.h>
Public Member Functions | |
| virtual void | calculateOutputImageProperties (PagedImage *) |
| virtual bool | wantsProgressUpdates () |
| Returns whether the handler wants to receive progress updates via updateProgress(). | |
| virtual void | updateProgress (double) |
| 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 () |
| Public Member Functions inherited from ml::CalculateOutputImageHandler | |
| virtual | ~CalculateOutputImageHandler () |
| Destructor. | |
| virtual SubImageBox | calculateInputSubImageBox (int, const SubImageBox &outputSubImageBox) |
| virtual void | calculateOutputSubImage (SubImage *outputSubImage, SubImage *inputSubImages, UserThreadData *userThreadData)=0 |
| virtual UserThreadData * | createUserThreadData () |
Base class for handlers that are used for the Module::processAllPages facility. The main difference from the CalculateOutputImageHandler base class is that it adds the calculateOutputImageProperties() virtual method, which you can reimplement to set up the properties of the temporary output image generated by Module::processAllPages(yourHandler). 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::OrderedProcessAllPagesHandler, and ml::OrderedSingleInputProcessAllPagesHandler.
Definition at line 46 of file mlProcessAllPagesHandler.h.
|
inlinevirtual |
Returns the name of the handler. Reimplement this function to see the name of the handler in the 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 if wantsProgressUpdates() == true. It 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 whether the handler wants to receive progress updates via updateProgress().
Definition at line 49 of file mlProcessAllPagesHandler.h.