QGIS API Documentation
2.6.0-Brighton
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
core
raster
qgsrasterhistogram.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsrasterhistogram.h
3
-------------------
4
begin : July 2012
5
copyright : (C) 2012 by Radim Blazek
6
email : radim dot blazek at gmail dot 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
18
#ifndef QGSRASTERHISTOGRAM
19
#define QGSRASTERHISTOGRAM
20
21
#include <QString>
22
#include <QVector>
23
24
#include <limits>
25
30
class
CORE_EXPORT
QgsRasterHistogram
31
{
32
public
:
33
typedef
QVector<int>
HistogramVector
;
34
35
QgsRasterHistogram
()
36
{
37
bandNumber = 0;
38
binCount = 0;
39
nonNullCount = 0;
40
includeOutOfRange =
false
;
41
maximum = 0;
42
minimum = 0;
43
width = 0;
44
height = 0;
45
valid =
false
;
46
}
47
49
bool
operator==
(
const
QgsRasterHistogram
&h )
const
50
{
51
return
( h.
bandNumber
== bandNumber &&
52
h.
binCount
== binCount &&
53
h.
includeOutOfRange
== includeOutOfRange &&
54
h.
maximum
== maximum &&
55
h.
minimum
== minimum &&
56
h.
extent
== extent &&
57
h.
width
== width &&
58
h.
height
== height );
59
}
60
62
int
bandNumber
;
63
65
int
binCount
;
66
68
int
nonNullCount
;
69
71
bool
includeOutOfRange
;
72
76
HistogramVector
histogramVector
;
77
79
double
maximum
;
80
82
double
minimum
;
83
85
int
width
;
86
88
int
height
;
89
91
QgsRectangle
extent
;
92
94
bool
valid
;
95
};
96
#endif
Generated on Fri Oct 31 2014 15:49:46 for QGIS API Documentation by
1.8.1.2