-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgsrendererrasterpropertieswidget.sip
43 lines (35 loc) · 1.18 KB
/
qgsrendererrasterpropertieswidget.sip
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
class QgsRendererRasterPropertiesWidget : QgsLayerStylingPanel
{
%TypeHeaderCode
#include <qgsrendererrasterpropertieswidget.h>
%End
public:
QgsRendererRasterPropertiesWidget( QgsMapLayer* layer, QgsMapCanvas* canvas, QWidget* parent );
~QgsRendererRasterPropertiesWidget();
/** Sets the map canvas associated with the dialog. This allows the widget to retrieve the current
* map scale and other properties from the canvas.
* @param canvas map canvas
* @note added in QGIS 2.12
*/
void setMapCanvas( QgsMapCanvas* canvas );
/**
* Return the active render widget. Can be null.
*/
QgsRasterRendererWidget* currentRenderWidget();
signals:
/**
* Emitted when something on the widget has changed.
* All widgets will fire this event to notify of an internal change.
*/
void widgetChanged();
public slots:
//! called when user changes renderer type
void rendererChanged();
//! Apply the changes from the dialog to the layer.
void apply();
/**
* @brief Sync the widget to the given layer.
* @param layer The layer to use for the widget
*/
void syncToLayer( QgsRasterLayer* layer );
};