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
qgssinglebandcolordatarenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssinglebandcolordatarenderer.h
3
--------------------------------
4
begin : January 2012
5
copyright : (C) 2012 by Marco Hugentobler
6
email : marco at sourcepole dot ch
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 QGSSINGLEBANDCOLORDATARENDERER_H
19
#define QGSSINGLEBANDCOLORDATARENDERER_H
20
21
#include "
qgsrasterrenderer.h
"
22
23
class
QDomElement;
24
28
class
CORE_EXPORT
QgsSingleBandColorDataRenderer
:
public
QgsRasterRenderer
29
{
30
public
:
31
QgsSingleBandColorDataRenderer
(
QgsRasterInterface
* input,
int
band );
32
~
QgsSingleBandColorDataRenderer
();
33
QgsRasterInterface
*
clone
()
const
;
34
35
static
QgsRasterRenderer
* create(
const
QDomElement& elem,
QgsRasterInterface
* input );
36
37
bool
setInput
(
QgsRasterInterface
* input );
38
39
QgsRasterBlock
*
block
(
int
bandNo,
QgsRectangle
const
& extent,
int
width,
int
height );
40
41
void
writeXML
( QDomDocument& doc, QDomElement& parentElem )
const
;
42
43
QList<int>
usesBands
()
const
;
44
45
private
:
46
int
mBand
;
47
};
48
49
#endif // QGSSINGLEBANDCOLORDATARENDERER_H
Generated on Tue Sep 24 2013 14:41:48 for QGIS API Documentation by
1.8.1.2