2017-05-31 11:55:58 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/raster/qgsrendererrasterpropertieswidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-03 21:11:18 +10:00
|
|
|
class QgsRendererRasterPropertiesWidget : QgsMapLayerConfigWidget
|
2016-05-19 08:38:26 +10:00
|
|
|
{
|
2017-05-31 11:55:58 +02:00
|
|
|
|
2016-05-19 08:38:26 +10:00
|
|
|
%TypeHeaderCode
|
2017-05-31 11:55:58 +02:00
|
|
|
#include "qgsrendererrasterpropertieswidget.h"
|
2016-05-19 08:38:26 +10:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-05-31 11:55:58 +02:00
|
|
|
QgsRendererRasterPropertiesWidget( QgsMapLayer *layer, QgsMapCanvas *canvas, QWidget *parent = 0 );
|
|
|
|
%Docstring
|
|
|
|
A widget to hold the renderer properties for a raster layer.
|
|
|
|
\param layer The raster layer to style
|
|
|
|
\param canvas The canvas object used to calculate the max and min values from the extent.
|
|
|
|
\param parent Parent object
|
|
|
|
%End
|
2016-05-19 08:38:26 +10:00
|
|
|
|
2017-05-31 11:55:58 +02:00
|
|
|
void setMapCanvas( QgsMapCanvas *canvas );
|
|
|
|
%Docstring
|
|
|
|
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
|
|
|
|
.. versionadded:: 2.12
|
|
|
|
%End
|
2016-05-19 08:38:26 +10:00
|
|
|
|
2017-05-31 11:55:58 +02:00
|
|
|
QgsRasterRendererWidget *currentRenderWidget();
|
|
|
|
%Docstring
|
|
|
|
Return the active render widget. Can be null.
|
|
|
|
:rtype: QgsRasterRendererWidget
|
|
|
|
%End
|
2016-05-19 08:38:26 +10:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void rendererChanged();
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
called when user changes renderer type
|
|
|
|
%End
|
2016-05-19 08:38:26 +10:00
|
|
|
|
|
|
|
void apply();
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Apply the changes from the dialog to the layer.
|
|
|
|
%End
|
2016-05-19 08:38:26 +10:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void syncToLayer( QgsRasterLayer *layer );
|
2017-05-31 11:55:58 +02:00
|
|
|
%Docstring
|
|
|
|
Sync the widget to the given layer.
|
|
|
|
\param layer The layer to use for the widget
|
|
|
|
%End
|
|
|
|
|
2016-05-19 08:38:26 +10:00
|
|
|
};
|
2017-05-31 11:55:58 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/raster/qgsrendererrasterpropertieswidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|