-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgsrasterrendererwidget.sip.in
107 lines (76 loc) · 2.96 KB
/
qgsrasterrendererwidget.sip.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/raster/qgsrasterrendererwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsRasterRendererWidget: QWidget
{
%Docstring
Abstract base class for widgets which configure a QgsRasterRenderer.
%End
%TypeHeaderCode
#include "qgsrasterrendererwidget.h"
%End
public:
QgsRasterRendererWidget( QgsRasterLayer *layer, const QgsRectangle &extent );
virtual QgsRasterRenderer *renderer() = 0 /Factory/;
%Docstring
Creates a new renderer, using the properties defined in the widget.
The caller takes ownership of the returned renderer.
%End
void setRasterLayer( QgsRasterLayer *layer );
%Docstring
Sets the raster ``layer`` associated with the widget.
.. seealso:: :py:func:`rasterLayer`
%End
const QgsRasterLayer *rasterLayer() const;
%Docstring
Returns the raster layer associated with the widget.
.. seealso:: :py:func:`setRasterLayer`
%End
virtual void setMapCanvas( QgsMapCanvas *canvas );
%Docstring
Sets the map canvas associated with the widget. This allows the widget to retrieve the current
map extent and other properties from the canvas.
:param canvas: map canvas
.. seealso:: :py:func:`mapCanvas`
.. versionadded:: 2.16
%End
QgsMapCanvas *mapCanvas();
%Docstring
Returns the map canvas associated with the widget.
.. seealso:: :py:func:`setMapCanvas`
.. versionadded:: 2.16
%End
virtual QString min( int index = 0 );
virtual QString max( int index = 0 );
virtual void setMin( const QString &value, int index = 0 );
virtual void setMax( const QString &value, int index = 0 );
virtual QString stdDev();
virtual void setStdDev( const QString &value );
virtual int selectedBand( int index = 0 );
virtual void doComputations();
%Docstring
Load programmatically with current values
%End
virtual QgsRasterMinMaxWidget *minMaxWidget();
%Docstring
Returns min/max widget when it exists.
%End
signals:
void widgetChanged();
%Docstring
Emitted when something on the widget has changed.
All widgets will fire this event to notify of an internal change.
%End
protected:
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/raster/qgsrasterrendererwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/