QGIS API Documentation 3.99.0-Master (a8882ad4560)
Loading...
Searching...
No Matches
QgsGdalProgressAdapter Class Reference

Utility class to map from GDALProgressFunc to QgsFeedback. More...

#include <qgsgdalutils.h>

Public Member Functions

 QgsGdalProgressAdapter (QgsFeedback *feedback, double startPercentage=0.0, double endPercentage=100.0)
 Constructor from feedback (which may be NULL).

Static Public Member Functions

static int CPL_STDCALL progressCallback (double dfComplete, const char *pszMessage, void *pProgressArg)
 GDAL progress callback.

Detailed Description

Utility class to map from GDALProgressFunc to QgsFeedback.

Typically used like the following snippet:

QgsGdalProgressAdapter progress(feedback);
GDALSomeCall( ... , QgsGdalProgressAdapter::progressCallback, &sProgress );
QgsGdalProgressAdapter(QgsFeedback *feedback, double startPercentage=0.0, double endPercentage=100.0)
Constructor from feedback (which may be NULL).
static int CPL_STDCALL progressCallback(double dfComplete, const char *pszMessage, void *pProgressArg)
GDAL progress callback.
Note
not available in Python bindings
Since
QGIS 4.0

Definition at line 397 of file qgsgdalutils.h.

Constructor & Destructor Documentation

◆ QgsGdalProgressAdapter()

QgsGdalProgressAdapter::QgsGdalProgressAdapter ( QgsFeedback * feedback,
double startPercentage = 0.0,
double endPercentage = 100.0 )
explicit

Constructor from feedback (which may be NULL).

The startPercentage and endPercentage passed to the feedback may be specified.

Definition at line 1113 of file qgsgdalutils.cpp.

Member Function Documentation

◆ progressCallback()

int CPL_STDCALL QgsGdalProgressAdapter::progressCallback ( double dfComplete,
const char * pszMessage,
void * pProgressArg )
static

GDAL progress callback.

Definition at line 1118 of file qgsgdalutils.cpp.


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