QGIS API Documentation
2.0.1-Dufour
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
qgsrasteridentifyresult.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsrasteridentifyresult.h
3
--------------------------------------
4
Date : Apr 8, 2013
5
Copyright : (C) 2013 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 QGSRASTERIDENTIFYRESULT_H
19
#define QGSRASTERIDENTIFYRESULT_H
20
21
#include "
qgis.h
"
22
#include "
qgslogger.h
"
23
#include "
qgsrasterdataprovider.h
"
24
#include "
qgsraster.h
"
25
29
class
CORE_EXPORT
QgsRasterIdentifyResult
30
{
31
public
:
32
QgsRasterIdentifyResult
();
33
38
QgsRasterIdentifyResult
(
QgsRaster::IdentifyFormat
theFormat, QMap<int, QVariant> theResults );
39
43
QgsRasterIdentifyResult
(
QgsError
theError );
44
45
virtual
~
QgsRasterIdentifyResult
();
46
48
bool
isValid
()
const
{
return
mValid; }
49
51
QgsRaster::IdentifyFormat
format
()
const
{
return
mFormat; }
52
58
QMap<int, QVariant>
results
()
const
{
return
mResults; }
59
61
void
setParams
(
const
QMap<QString, QVariant> & theParams ) { mParams = theParams; }
62
64
QMap<QString, QVariant>
params
()
const
{
return
mParams; }
65
67
QgsError
error
()
const
{
return
mError; }
68
70
void
setError
(
const
QgsError
& theError ) { mError = theError;}
71
72
private
:
74
bool
mValid
;
75
77
QgsRaster::IdentifyFormat
mFormat
;
78
80
// TODO: better hierarchy (sublayer multiple feature sets)?
81
// TODO?: results are not consistent for different formats (per band x per sublayer)
82
QMap<int, QVariant>
mResults
;
83
85
QMap<QString, QVariant>
mParams
;
86
88
QgsError
mError
;
89
};
90
91
#endif
92
93
Generated on Tue Sep 24 2013 14:41:47 for QGIS API Documentation by
1.8.1.2