2017-06-01 15:39:31 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/raster/qgsrasterhistogram.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
class QgsRasterHistogram
|
|
|
|
{
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
The QgsRasterHistogram is a container for histogram of a single raster band.
|
|
|
|
It is used to cache computed histograms in raster providers.
|
|
|
|
%End
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-06-01 15:39:31 +02:00
|
|
|
#include "qgsrasterhistogram.h"
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
public:
|
2016-11-29 15:44:34 +01:00
|
|
|
typedef QVector<int> HistogramVector;
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
QgsRasterHistogram();
|
|
|
|
|
|
|
|
bool operator==( const QgsRasterHistogram &h ) const;
|
|
|
|
|
|
|
|
int bandNumber;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
The gdal band number (starts at 1)
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
int binCount;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Number of bins (intervals,buckets) in histogram.
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
int nonNullCount;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
The number of non NULL cells used to calculate histogram.
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
bool includeOutOfRange;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Whether histogram includes out of range values (in first and last bin)
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2016-11-29 15:44:34 +01:00
|
|
|
HistogramVector histogramVector;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Store the histogram for a given layer
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
not available via Python binding
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
double maximum;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
The maximum histogram value.
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
double minimum;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
The minimum histogram value.
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
int width;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Number of columns used to calc histogram
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
int height;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Number of rows used to calc histogram
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
QgsRectangle extent;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Extent used to calc histogram
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
bool valid;
|
2017-06-01 15:39:31 +02:00
|
|
|
%Docstring
|
|
|
|
Histogram is valid
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-06-01 15:39:31 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/raster/qgsrasterhistogram.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|