Base class for TileRequest based jobs.
More...
#include <mlGetTileJob.h>
Base class for TileRequest based jobs.
Definition at line 31 of file mlGetTileJob.h.
◆ GetTileJobBase()
ml::GetTileJobBase::GetTileJobBase |
( |
| ) |
|
◆ ~GetTileJobBase()
virtual ml::GetTileJobBase::~GetTileJobBase |
( |
| ) |
|
|
virtual |
◆ cancel()
void ml::GetTileJobBase::cancel |
( |
| ) |
|
◆ delegateProgressUpdate()
virtual void ml::GetTileJobBase::delegateProgressUpdate |
( |
double |
| ) |
|
|
inlinevirtual |
◆ getError()
Returns the error that happened. It returns ML_RESULT_OK if everything is ok.
Definition at line 52 of file mlGetTileJob.h.
◆ getProgress()
double ml::GetTileJobBase::getProgress |
( |
| ) |
const |
Returns the current progress of the tile request ([0..1] range).
◆ hasError()
bool ml::GetTileJobBase::hasError |
( |
| ) |
const |
|
inline |
Returns whether the request has an error and the data is thus unusable/invalid.
Definition at line 49 of file mlGetTileJob.h.
◆ hasFinished()
bool ml::GetTileJobBase::hasFinished |
( |
| ) |
|
|
inline |
Returns whether the request has finished.
If an error happened, true
will be returned as well.
Definition at line 46 of file mlGetTileJob.h.
◆ init()
◆ setProgressCB()
void ml::GetTileJobBase::setProgressCB |
( |
MLRequestProgressCB * |
progressCallback, |
|
|
void * |
progressCallbackUserData |
|
) |
| |
◆ setTileRequestFinishedCB()
Sets the tile request finished callback that is called when the tile is ready.
Definition at line 55 of file mlGetTileJob.h.
◆ updateProgress()
void ml::GetTileJobBase::updateProgress |
( |
| ) |
|
Called by host to allow custom progress updates.
By default, it calls the progress callback if set. It also calls the virtual delegateProgressUpdate().
◆ _lastProgress
double ml::GetTileJobBase::_lastProgress |
|
protected |
◆ _progressCB
◆ _progressCBUserData
void* ml::GetTileJobBase::_progressCBUserData |
|
protected |
◆ _request
The documentation for this class was generated from the following file: