QGIS API Documentation
3.14.0-Pi (9f7028fd23)
src
gui
raster
qgssinglebandpseudocolorrendererwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssinglebandpseudocolorrendererwidget.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 QGSSINGLEBANDCOLORRENDERERWIDGET_H
19
#define QGSSINGLEBANDCOLORRENDERERWIDGET_H
20
21
#include "
qgsrasterrendererwidget.h
"
22
#include "
qgis_sip.h
"
23
#include "
qgscolorrampshader.h
"
24
#include "
qgsrasterrenderer.h
"
25
#include "ui_qgssinglebandpseudocolorrendererwidgetbase.h"
26
#include "qgis_gui.h"
27
28
class
QgsRasterMinMaxWidget
;
29
38
class
GUI_EXPORT
QgsSingleBandPseudoColorRendererWidget
:
public
QgsRasterRendererWidget
,
private
Ui::QgsSingleBandPseudoColorRendererWidgetBase
39
{
40
41
Q_OBJECT
42
43
public
:
44
46
QgsSingleBandPseudoColorRendererWidget
(
QgsRasterLayer
*layer,
const
QgsRectangle
&extent =
QgsRectangle
() );
47
49
static
QgsRasterRendererWidget
*
create
(
QgsRasterLayer
*layer,
const
QgsRectangle
&extent )
SIP_FACTORY
{
return
new
QgsSingleBandPseudoColorRendererWidget
( layer, extent ); }
50
51
QgsRasterRenderer
*
renderer
()
override
;
52
void
setMapCanvas
(
QgsMapCanvas
*canvas )
override
;
53
void
doComputations
()
override
;
54
QgsRasterMinMaxWidget
*
minMaxWidget
()
override
;
55
57
int
currentBand()
const
;
58
60
void
setFromRenderer(
const
QgsRasterRenderer
*r );
61
62
public
slots:
64
void
loadMinMax(
int
bandNo,
double
min,
double
max );
66
void
loadMinMaxFromTree(
double
min,
double
max );
67
68
private
slots:
69
void
bandChanged();
70
void
mMinLineEdit_textChanged(
const
QString & );
71
void
mMaxLineEdit_textChanged(
const
QString & );
72
void
mMinLineEdit_textEdited(
const
QString &text );
73
void
mMaxLineEdit_textEdited(
const
QString &text );
74
75
private
:
76
void
setLineEditValue( QLineEdit *lineEdit,
double
value );
77
double
lineEditValue(
const
QLineEdit *lineEdit )
const
;
78
79
QgsRasterMinMaxWidget
*mMinMaxWidget =
nullptr
;
80
int
mMinMaxOrigin;
81
82
void
minMaxModified();
83
};
84
85
#endif // QGSSINGLEBANDCOLORRENDERERWIDGET_H
QgsRasterRendererWidget::minMaxWidget
virtual QgsRasterMinMaxWidget * minMaxWidget()
Returns min/max widget when it exists.
Definition:
qgsrasterrendererwidget.h:81
QgsMapCanvas
Definition:
qgsmapcanvas.h:83
qgscolorrampshader.h
qgsrasterrenderer.h
QgsSingleBandPseudoColorRendererWidget::create
static QgsRasterRendererWidget * create(QgsRasterLayer *layer, const QgsRectangle &extent)
Creates new raster renderer widget.
Definition:
qgssinglebandpseudocolorrendererwidget.h:49
QgsSingleBandPseudoColorRendererWidget
Definition:
qgssinglebandpseudocolorrendererwidget.h:38
qgsrasterrendererwidget.h
QgsRectangle
Definition:
qgsrectangle.h:41
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
QgsRasterRendererWidget::setMapCanvas
virtual void setMapCanvas(QgsMapCanvas *canvas)
Sets the map canvas associated with the widget.
Definition:
qgsrasterrendererwidget.cpp:23
QgsRasterMinMaxWidget
Definition:
qgsrasterminmaxwidget.h:37
QgsRasterRenderer
Definition:
qgsrasterrenderer.h:38
qgis_sip.h
QgsRasterLayer
Definition:
qgsrasterlayer.h:72
QgsRasterRendererWidget::doComputations
virtual void doComputations()
Load programmatically with current values.
Definition:
qgsrasterrendererwidget.h:78
QgsRasterRendererWidget
Definition:
qgsrasterrendererwidget.h:36
QgsRasterRendererWidget::renderer
virtual QgsRasterRenderer * renderer()=0
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17