MeVisLab Toolbox Reference
ml::BackgroundTaskMLGetTileBaseMessage Class Referenceabstract

#include <mlBackgroundTaskMessages.h>

Inheritance diagram for ml::BackgroundTaskMLGetTileBaseMessage:
ml::BackgroundTaskMessage ml::BackgroundTaskMLGetTileMessage ml::BackgroundTaskMLProcessAllPagesMessage

Public Member Functions

 BackgroundTaskMLGetTileBaseMessage (BackgroundRequestId tileId, Module *module)
 
 ~BackgroundTaskMLGetTileBaseMessage () override
 
void executeSynchronous () override
 execute message when it is delivered and the task runs synchronous, the default implementation just calls the execute() method (reimplement in subclasses).
 
bool finishedProcessing () override
 tells if the message needs further processing or if it may be deleted if true is returned, the message is placed to another processing queue and finishedProcessing() is called in regular intervals
 
void taskWillBeDestroyed () override
 this needs to be implemented if the message uses finishedProcessing() and the task is finished while a message is still on it's way
 
virtual void sendFinishedRequest ()=0
 
virtual void sendFailedRequest ()=0
 
virtual void sendProgress ()=0
 
- Public Member Functions inherited from ml::BackgroundTaskMessage
 BackgroundTaskMessage ()
 
virtual ~BackgroundTaskMessage ()
 
void setSender (BackgroundTask *task)
 set who sends the message (default is NULL and means that the message's sender is not a BackgroundTask)
 
BackgroundTasksender ()
 returns the task from which the message originates
 
void setReceiver (BackgroundTaskMessageReceiver *receiverArg)
 set who receives the message (default is NULL)
 
BackgroundTaskMessageReceiverreceiver ()
 returns the object which receives the message (default is NULL)
 
virtual void execute ()=0
 execute message when it is delivered (reimplement in subclasses)
 

Static Public Member Functions

static void tileRequestFinishedCB (void *data, TileRequest *request)
 

Protected Attributes

GetTileJobBase_request
 
Module_module
 
BackgroundRequestId _tileId
 
bool _resultWasSent
 

Detailed Description

Definition at line 36 of file mlBackgroundTaskMessages.h.

Constructor & Destructor Documentation

◆ BackgroundTaskMLGetTileBaseMessage()

ml::BackgroundTaskMLGetTileBaseMessage::BackgroundTaskMLGetTileBaseMessage ( BackgroundRequestId tileId,
Module * module )
inline

Definition at line 38 of file mlBackgroundTaskMessages.h.

◆ ~BackgroundTaskMLGetTileBaseMessage()

ml::BackgroundTaskMLGetTileBaseMessage::~BackgroundTaskMLGetTileBaseMessage ( )
override

Member Function Documentation

◆ executeSynchronous()

void ml::BackgroundTaskMLGetTileBaseMessage::executeSynchronous ( )
overridevirtual

execute message when it is delivered and the task runs synchronous, the default implementation just calls the execute() method (reimplement in subclasses).

Reimplemented from ml::BackgroundTaskMessage.

◆ finishedProcessing()

bool ml::BackgroundTaskMLGetTileBaseMessage::finishedProcessing ( )
overridevirtual

tells if the message needs further processing or if it may be deleted if true is returned, the message is placed to another processing queue and finishedProcessing() is called in regular intervals

Reimplemented from ml::BackgroundTaskMessage.

◆ sendFailedRequest()

virtual void ml::BackgroundTaskMLGetTileBaseMessage::sendFailedRequest ( )
pure virtual

◆ sendFinishedRequest()

virtual void ml::BackgroundTaskMLGetTileBaseMessage::sendFinishedRequest ( )
pure virtual

◆ sendProgress()

virtual void ml::BackgroundTaskMLGetTileBaseMessage::sendProgress ( )
pure virtual

◆ taskWillBeDestroyed()

void ml::BackgroundTaskMLGetTileBaseMessage::taskWillBeDestroyed ( )
overridevirtual

this needs to be implemented if the message uses finishedProcessing() and the task is finished while a message is still on it's way

Reimplemented from ml::BackgroundTaskMessage.

◆ tileRequestFinishedCB()

static void ml::BackgroundTaskMLGetTileBaseMessage::tileRequestFinishedCB ( void * data,
TileRequest * request )
static

Member Data Documentation

◆ _module

Module* ml::BackgroundTaskMLGetTileBaseMessage::_module
protected

Definition at line 60 of file mlBackgroundTaskMessages.h.

◆ _request

GetTileJobBase* ml::BackgroundTaskMLGetTileBaseMessage::_request
protected

Definition at line 59 of file mlBackgroundTaskMessages.h.

◆ _resultWasSent

bool ml::BackgroundTaskMLGetTileBaseMessage::_resultWasSent
protected

Definition at line 62 of file mlBackgroundTaskMessages.h.

◆ _tileId

BackgroundRequestId ml::BackgroundTaskMLGetTileBaseMessage::_tileId
protected

Definition at line 61 of file mlBackgroundTaskMessages.h.


The documentation for this class was generated from the following file: