~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to python/core/qgsrasterbandstats.sip

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/** \brief The RasterBandStats struct is a container for statistics about a single
 
3
 * raster band.
 
4
 */
 
5
class QgsRasterBandStats
 
6
{
 
7
%TypeHeaderCode
 
8
#include <qgsrasterbandstats.h>
 
9
%End
 
10
 
 
11
  public:
 
12
    /** \brief The name of the band that these stats belong to. */
 
13
    QString bandName;
 
14
    /** \brief The gdal band number (starts at 1)*/
 
15
    int bandNumber; 
 
16
    /** \brief A flag to indicate whether this RasterBandStats struct 
 
17
     * is completely populated */
 
18
    bool statsGathered; 
 
19
    /** \brief The minimum cell value in the raster band. NO_DATA values
 
20
     * are ignored. This does not use the gdal GetMinimum function. */
 
21
    double minimumValue;
 
22
    /** \brief The maximum cell value in the raster band. NO_DATA values
 
23
     * are ignored. This does not use the gdal GetMaximmum function. */
 
24
    double maximumValue;
 
25
    /** \brief The range is the distance between min & max. */
 
26
    double range;
 
27
    /** \brief The mean cell value for the band. NO_DATA values are excluded. */
 
28
    double mean;
 
29
    /** \brief The sum of the squares. Used to calculate standard deviation. */
 
30
    double sumOfSquares; 
 
31
    /** \brief The standard deviation of the cell values. */
 
32
    double stdDev;
 
33
    /** \brief The sum of all cells in the band. NO_DATA values are excluded. */
 
34
    double sum;
 
35
    /** \brief The number of cells in the band. Equivalent to height x width. 
 
36
     * TODO: check if NO_DATA are excluded!*/
 
37
    int elementCount;    
 
38
    /** \brief Store the histogram for a given layer */
 
39
    typedef QVector<int> HistogramVector;
 
40
    //HistogramVector * histogramVector;
 
41
    /** \brief whteher histogram values are estimated or completely calculated */
 
42
    bool isHistogramEstimated;
 
43
    /** whehter histogram compuation should include out of range values */
 
44
    bool isHistogramOutOfRange;
 
45
    /** Color table */
 
46
    //QList<QgsColorRampShader::ColorRampItem> colorTable;
 
47
};
 
48