-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgscolorrampshaderwidget.sip.in
129 lines (98 loc) · 3.27 KB
/
qgscolorrampshaderwidget.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/raster/qgscolorrampshaderwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsColorRampShaderWidget: QWidget, protected Ui::QgsColorRampShaderWidgetBase
{
%Docstring
It has 2 ways how to use it. For raster layers, raster data provider and band is assigned and
the Quantile classification mode can be used and the LoadFromBandButton is visible.
The other mode is used to style mesh layer contours (scalar datasets)
.. versionadded:: 3.4
%End
%TypeHeaderCode
#include "qgscolorrampshaderwidget.h"
%End
public:
QgsColorRampShaderWidget( QWidget *parent = 0 );
%Docstring
Creates new color ramp shader widget
%End
void initializeForUseWithRasterLayer();
%Docstring
Allows quantile classification mode for raster layers
%End
void setRasterDataProvider( QgsRasterDataProvider *dp );
%Docstring
Associates raster with the widget, only when used for raster layer
%End
void setRasterBand( int band );
%Docstring
Sets raster band, only when used for raster layer
%End
void setExtent( const QgsRectangle &extent );
%Docstring
Sets extent, only when used for raster layer
%End
void setMinimumMaximumAndClassify( double minimum, double maximum );
%Docstring
Sets min max and classify color tree
%End
void setMinimumMaximum( double minimum, double maximum );
%Docstring
Sets min max
%End
double minimum() const;
%Docstring
Gets min value
%End
double maximum() const;
%Docstring
Gets max value
%End
QgsColorRampShader shader() const;
%Docstring
Returns shared function used in the renderer
%End
void setFromShader( const QgsColorRampShader &colorRampShader );
%Docstring
Sets widget state from the color ramp shader
%End
signals:
void minimumMaximumChangedFromTree( double minimum, double maximum );
%Docstring
Color ramp tree has changed
%End
void widgetChanged();
%Docstring
Widget changed
%End
void classificationModeChanged( QgsColorRampShader::ClassificationMode mode );
%Docstring
Classification mode changed
%End
public slots:
void classify();
%Docstring
Executes the single band pseudo raster classification
%End
void loadMinimumMaximumFromTree();
%Docstring
Loads min and max values from color ramp tree
%End
protected:
void populateColormapTreeWidget( const QList<QgsColorRampShader::ColorRampItem> &colorRampItems );
%Docstring
Populates color ramp tree from ramp items
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/raster/qgscolorrampshaderwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/