2017-05-31 15:02:08 +08:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/raster/qgsrasterrendererwidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
class QgsRasterRendererWidget: QWidget
|
|
|
|
{
|
2017-05-31 15:02:08 +08:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-05-31 15:02:08 +08:00
|
|
|
#include "qgsrasterrendererwidget.h"
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
public:
|
2017-05-31 15:02:08 +08:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsRasterRendererWidget( QgsRasterLayer *layer, const QgsRectangle &extent );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual QgsRasterRenderer *renderer() = 0 /Factory/;
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
:rtype: QgsRasterRenderer
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
void setRasterLayer( QgsRasterLayer *layer );
|
|
|
|
const QgsRasterLayer *rasterLayer() const;
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
:rtype: QgsRasterLayer
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual void setMapCanvas( QgsMapCanvas *canvas );
|
2017-05-31 15:02:08 +08:00
|
|
|
%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:: mapCanvas()
|
|
|
|
.. versionadded:: 2.16
|
|
|
|
%End
|
2016-06-30 18:25:20 +10:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsMapCanvas *mapCanvas();
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
Returns the map canvas associated with the widget.
|
|
|
|
.. seealso:: setMapCanvas()
|
|
|
|
.. seealso:: canvasExtent()
|
|
|
|
.. versionadded:: 2.16
|
|
|
|
:rtype: QgsMapCanvas
|
|
|
|
%End
|
2016-06-30 18:25:20 +10:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
virtual QString min( int index = 0 );
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
virtual QString max( int index = 0 );
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual void setMin( const QString &value, int index = 0 );
|
|
|
|
virtual void setMax( const QString &value, int index = 0 );
|
2014-10-20 22:50:15 +02:00
|
|
|
virtual QString stdDev();
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual void setStdDev( const QString &value );
|
2012-09-24 02:28:15 +02:00
|
|
|
virtual int selectedBand( int index = 0 );
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
:rtype: int
|
|
|
|
%End
|
|
|
|
|
2016-12-15 01:31:05 +01:00
|
|
|
virtual void doComputations();
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
Load programmatically with current values
|
|
|
|
%End
|
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual QgsRasterMinMaxWidget *minMaxWidget();
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
Return min/max widget when it exists.
|
|
|
|
:rtype: QgsRasterMinMaxWidget
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2016-05-19 08:38:26 +10:00
|
|
|
signals:
|
2017-05-31 15:02:08 +08:00
|
|
|
|
2016-05-19 08:38:26 +10:00
|
|
|
void widgetChanged();
|
2017-05-31 15:02:08 +08:00
|
|
|
%Docstring
|
|
|
|
Emitted when something on the widget has changed.
|
|
|
|
All widgets will fire this event to notify of an internal change.
|
|
|
|
%End
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2016-05-19 08:38:26 +10:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-05-31 15:02:08 +08:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/raster/qgsrasterrendererwidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|