QGIS/python/gui/raster/qgsrasterrendererwidget.sip

104 lines
2.8 KiB
Plaintext
Raw Normal View History

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 *
************************************************************************/
class QgsRasterRendererWidget: QWidget
{
2017-05-31 15:02:08 +08:00
%TypeHeaderCode
2017-05-31 15:02:08 +08:00
#include "qgsrasterrendererwidget.h"
%End
public:
2017-05-31 15:02:08 +08:00
QgsRasterRendererWidget( QgsRasterLayer *layer, const QgsRectangle &extent );
virtual QgsRasterRenderer *renderer() = 0 /Factory/;
2017-05-31 15:02:08 +08:00
%Docstring
:rtype: QgsRasterRenderer
%End
void setRasterLayer( QgsRasterLayer *layer );
const QgsRasterLayer *rasterLayer() const;
2017-05-31 15:02:08 +08:00
%Docstring
:rtype: QgsRasterLayer
%End
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
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`mapCanvas()`
2017-05-31 15:02:08 +08:00
.. versionadded:: 2.16
%End
QgsMapCanvas *mapCanvas();
2017-05-31 15:02:08 +08:00
%Docstring
Returns the map canvas associated with the widget.
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`setMapCanvas()`
.. seealso:: :py:func:`canvasExtent()`
2017-05-31 15:02:08 +08:00
.. versionadded:: 2.16
:rtype: QgsMapCanvas
%End
virtual QString min( int index = 0 );
2017-05-31 15:02:08 +08:00
%Docstring
:rtype: str
%End
virtual QString max( int index = 0 );
2017-05-31 15:02:08 +08:00
%Docstring
:rtype: str
%End
virtual void setMin( const QString &value, int index = 0 );
virtual void setMax( const QString &value, int index = 0 );
virtual QString stdDev();
2017-05-31 15:02:08 +08:00
%Docstring
:rtype: str
%End
virtual void setStdDev( const QString &value );
virtual int selectedBand( int index = 0 );
2017-05-31 15:02:08 +08:00
%Docstring
:rtype: int
%End
virtual void doComputations();
2017-05-31 15:02:08 +08:00
%Docstring
Load programmatically with current values
%End
virtual QgsRasterMinMaxWidget *minMaxWidget();
2017-05-31 15:02:08 +08:00
%Docstring
Return min/max widget when it exists.
:rtype: QgsRasterMinMaxWidget
%End
signals:
2017-05-31 15:02:08 +08: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:
};
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 *
************************************************************************/