Quantum GIS API Documentation
1.7.5-Wroclaw
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
core
raster
qgsrasterbandstats.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsrasterbandstats.h - description
3
-------------------
4
begin : Fri Jun 28 2002
5
copyright : (C) 2005 by T.Sutton
6
email : tim@linfiniti.com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
/* $Id: qgsrasterlayer.h 4380 2005-12-26 23:37:50Z timlinux $ */
18
19
#ifndef QGSRASTERBANDSTATS
20
#define QGSRASTERBANDSTATS
21
22
#include <QString>
23
#include <QVector>
24
25
#include <limits>
26
27
#include "
qgscolorrampshader.h
"
32
class
CORE_EXPORT
QgsRasterBandStats
33
{
34
public
:
35
typedef
QVector<int>
HistogramVector
;
36
37
QgsRasterBandStats
()
38
{
39
bandName =
""
;
40
statsGathered =
false
;
41
minimumValue =
std::numeric_limits<double>::max
();
42
maximumValue =
std::numeric_limits<double>::min
();
43
range = 0.0;
44
mean = 0.0;
45
sumOfSquares = 0.0;
46
stdDev = 0.0;
47
sum = 0.0;
48
elementCount = 0;
49
histogramVector =
new
HistogramVector
();
50
isHistogramEstimated =
false
;
51
isHistogramOutOfRange =
false
;
52
}
53
55
QString
bandName
;
56
58
int
bandNumber
;
59
61
QList<QgsColorRampShader::ColorRampItem>
colorTable
;
62
65
int
elementCount
;
66
68
bool
isHistogramEstimated
;
69
71
bool
isHistogramOutOfRange
;
72
74
HistogramVector
*
histogramVector
;
75
78
double
maximumValue
;
79
82
double
minimumValue
;
83
85
double
mean
;
86
88
double
range
;
89
91
double
stdDev
;
92
95
bool
statsGathered
;
96
98
double
sum
;
99
101
double
sumOfSquares
;
102
};
103
#endif
Generated on Wed Jun 13 2012 13:54:11 for Quantum GIS API Documentation by
1.8.1