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
qgsmultibandcolorrenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmultibandcolorrenderer.h
3
---------------------------
4
begin : December 2011
5
copyright : (C) 2011 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 QGSMULTIBANDCOLORRENDERER_H
19
#define QGSMULTIBANDCOLORRENDERER_H
20
21
#include "
qgsrasterrenderer.h
"
22
23
class
QgsContrastEnhancement
;
24
class
QDomElement;
25
29
class
CORE_EXPORT
QgsMultiBandColorRenderer
:
public
QgsRasterRenderer
30
{
31
public
:
32
QgsMultiBandColorRenderer
(
QgsRasterInterface
* input,
int
redBand,
int
greenBand,
int
blueBand,
33
QgsContrastEnhancement
* redEnhancement = 0,
QgsContrastEnhancement
* greenEnhancement = 0,
34
QgsContrastEnhancement
* blueEnhancement = 0 );
35
~
QgsMultiBandColorRenderer
();
36
QgsRasterInterface
*
clone
()
const
;
37
38
static
QgsRasterRenderer
* create(
const
QDomElement& elem,
QgsRasterInterface
* input );
39
40
QgsRasterBlock
*
block
(
int
bandNo,
QgsRectangle
const
& extent,
int
width,
int
height );
41
42
int
redBand
()
const
{
return
mRedBand; }
43
void
setRedBand
(
int
band ) { mRedBand = band; }
44
int
greenBand
()
const
{
return
mGreenBand; }
45
void
setGreenBand
(
int
band ) { mGreenBand = band; }
46
int
blueBand
()
const
{
return
mBlueBand; }
47
void
setBlueBand
(
int
band ) { mBlueBand = band; }
48
49
const
QgsContrastEnhancement
*
redContrastEnhancement
()
const
{
return
mRedContrastEnhancement; }
51
void
setRedContrastEnhancement(
QgsContrastEnhancement
* ce );
52
53
const
QgsContrastEnhancement
*
greenContrastEnhancement
()
const
{
return
mGreenContrastEnhancement; }
55
void
setGreenContrastEnhancement(
QgsContrastEnhancement
* ce );
56
57
const
QgsContrastEnhancement
*
blueContrastEnhancement
()
const
{
return
mBlueContrastEnhancement; }
59
void
setBlueContrastEnhancement(
QgsContrastEnhancement
* ce );
60
61
void
writeXML
( QDomDocument& doc, QDomElement& parentElem )
const
;
62
63
QList<int>
usesBands
()
const
;
64
65
private
:
66
int
mRedBand
;
67
int
mGreenBand
;
68
int
mBlueBand
;
69
70
QgsContrastEnhancement
*
mRedContrastEnhancement
;
71
QgsContrastEnhancement
*
mGreenContrastEnhancement
;
72
QgsContrastEnhancement
*
mBlueContrastEnhancement
;
73
};
74
75
#endif // QGSMULTIBANDCOLORRENDERER_H
Generated on Tue Sep 24 2013 14:41:47 for QGIS API Documentation by
1.8.1.2