QGIS API Documentation
2.8.2-Wien
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
gui
raster
qgsmultibandcolorrendererwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmultibandcolorrendererwidget.h
3
---------------------------------
4
begin : February 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 QGSMULTIBANDCOLORRENDERERWIDGET_H
19
#define QGSMULTIBANDCOLORRENDERERWIDGET_H
20
21
#include "
qgsrasterminmaxwidget.h
"
22
#include "
qgsrasterrendererwidget.h
"
23
#include "ui_qgsmultibandcolorrendererwidgetbase.h"
24
25
class
QgsContrastEnhancement
;
26
class
QgsMultiBandColorRenderer
;
27
class
QgsRasterDataProvider
;
28
class
QgsRasterLayer
;
29
class
QLineEdit;
30
31
class
GUI_EXPORT
QgsMultiBandColorRendererWidget
:
public
QgsRasterRendererWidget
,
private
Ui::QgsMultiBandColorRendererWidgetBase
32
{
33
Q_OBJECT
34
35
public
:
36
QgsMultiBandColorRendererWidget
(
QgsRasterLayer
* layer,
const
QgsRectangle
&extent =
QgsRectangle
() );
37
static
QgsRasterRendererWidget
*
create
(
QgsRasterLayer
* layer,
const
QgsRectangle
&theExtent ) {
return
new
QgsMultiBandColorRendererWidget
( layer, theExtent ); }
38
~
QgsMultiBandColorRendererWidget
();
39
40
QgsRasterRenderer
*
renderer
()
override
;
41
42
void
setFromRenderer(
const
QgsRasterRenderer
* r );
43
44
QString
min
(
int
index
= 0 )
override
;
45
QString
max
(
int
index
= 0 )
override
;
46
void
setMin
( QString value,
int
index
= 0 )
override
;
47
void
setMax
( QString value,
int
index
= 0 )
override
;
48
int
selectedBand
(
int
index
= 0 )
override
;
49
50
public
slots:
51
void
loadMinMax(
int
theBandNo,
double
theMin,
double
theMax,
int
theOrigin );
52
53
private
slots:
54
//void on_mLoadPushButton_clicked();
55
void
onBandChanged(
int
);
56
57
private
:
58
void
createValidators();
59
void
setCustomMinMaxValues(
QgsMultiBandColorRenderer
* r,
const
QgsRasterDataProvider
* provider,
int
redBand,
int
GreenBand,
60
int
blueBand );
62
void
setMinMaxValue(
const
QgsContrastEnhancement
* ce, QLineEdit* minEdit, QLineEdit* maxEdit );
63
QgsRasterMinMaxWidget
* mMinMaxWidget;
64
};
65
66
#endif // QGSMULTIBANDCOLORRENDERERWIDGET_H
Generated on Sun May 10 2015 16:33:26 for QGIS API Documentation by
1.8.1.2