QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
The QgsRasterHistogram is a container for histogram of a single raster band. It is used to cache computed histograms in raster providers. More...
#include <qgsrasterhistogram.h>
Public Types | |
typedef QVector< int > | HistogramVector |
Public Member Functions | |
QgsRasterHistogram ()=default | |
Constructor for an invalid QgsRasterHistogram. More... | |
bool | operator== (const QgsRasterHistogram &h) const |
Compares region, size etc. not histogram itself. More... | |
Public Attributes | |
int | bandNumber = 0 |
The gdal band number (starts at 1) More... | |
int | binCount = 0 |
Number of bins (intervals,buckets) in histogram. More... | |
QgsRectangle | extent |
Extent used to calc histogram. More... | |
int | height = 0 |
Number of rows used to calc histogram. More... | |
QgsRasterHistogram::HistogramVector | histogramVector |
Stores the histogram for a given layer. More... | |
bool | includeOutOfRange = false |
Whether histogram includes out of range values (in first and last bin) More... | |
double | maximum = 0 |
The maximum histogram value. More... | |
double | minimum = 0 |
The minimum histogram value. More... | |
int | nonNullCount = 0 |
The number of non NULL cells used to calculate histogram. More... | |
bool | valid = false |
Histogram is valid. More... | |
int | width = 0 |
Number of columns used to calc histogram. More... | |
The QgsRasterHistogram is a container for histogram of a single raster band. It is used to cache computed histograms in raster providers.
Definition at line 33 of file qgsrasterhistogram.h.
typedef QVector<int> QgsRasterHistogram::HistogramVector |
Definition at line 49 of file qgsrasterhistogram.h.
|
default |
Constructor for an invalid QgsRasterHistogram.
|
inline |
Compares region, size etc. not histogram itself.
Definition at line 57 of file qgsrasterhistogram.h.
int QgsRasterHistogram::bandNumber = 0 |
The gdal band number (starts at 1)
Definition at line 70 of file qgsrasterhistogram.h.
int QgsRasterHistogram::binCount = 0 |
Number of bins (intervals,buckets) in histogram.
Definition at line 73 of file qgsrasterhistogram.h.
QgsRectangle QgsRasterHistogram::extent |
Extent used to calc histogram.
Definition at line 99 of file qgsrasterhistogram.h.
int QgsRasterHistogram::height = 0 |
Number of rows used to calc histogram.
Definition at line 96 of file qgsrasterhistogram.h.
QgsRasterHistogram::HistogramVector QgsRasterHistogram::histogramVector |
Stores the histogram for a given layer.
Definition at line 84 of file qgsrasterhistogram.h.
bool QgsRasterHistogram::includeOutOfRange = false |
Whether histogram includes out of range values (in first and last bin)
Definition at line 79 of file qgsrasterhistogram.h.
double QgsRasterHistogram::maximum = 0 |
The maximum histogram value.
Definition at line 87 of file qgsrasterhistogram.h.
double QgsRasterHistogram::minimum = 0 |
The minimum histogram value.
Definition at line 90 of file qgsrasterhistogram.h.
int QgsRasterHistogram::nonNullCount = 0 |
The number of non NULL cells used to calculate histogram.
Definition at line 76 of file qgsrasterhistogram.h.
bool QgsRasterHistogram::valid = false |
Histogram is valid.
Definition at line 102 of file qgsrasterhistogram.h.
int QgsRasterHistogram::width = 0 |
Number of columns used to calc histogram.
Definition at line 93 of file qgsrasterhistogram.h.