QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgssinglebandpseudocolorrendererwidget.h>
Public Slots | |
void | loadMinMax (int bandNo, double min, double max) |
called when new min/max values are loaded More... | |
void | loadMinMaxFromTree (double min, double max) |
called when the color ramp tree has changed More... | |
Public Member Functions | |
QgsSingleBandPseudoColorRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle()) | |
Creates new raster renderer widget. More... | |
int | currentBand () const |
Returns the current raster band number. More... | |
void | doComputations () override |
Load programmatically with current values. More... | |
QgsRasterMinMaxWidget * | minMaxWidget () override |
Returns min/max widget when it exists. More... | |
QgsRasterRenderer * | renderer () override |
void | setFromRenderer (const QgsRasterRenderer *r) |
Set state of the widget from renderer settings. More... | |
void | setMapCanvas (QgsMapCanvas *canvas) override |
Sets the map canvas associated with the widget. More... | |
Public Member Functions inherited from QgsRasterRendererWidget | |
QgsRasterRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent) | |
QgsMapCanvas * | mapCanvas () |
Returns the map canvas associated with the widget. More... | |
virtual QString | max (int index=0) |
virtual QString | min (int index=0) |
const QgsRasterLayer * | rasterLayer () const |
virtual int | selectedBand (int index=0) |
virtual void | setMax (const QString &value, int index=0) |
virtual void | setMin (const QString &value, int index=0) |
void | setRasterLayer (QgsRasterLayer *layer) |
virtual void | setStdDev (const QString &value) |
virtual QString | stdDev () |
Static Public Member Functions | |
static QgsRasterRendererWidget * | create (QgsRasterLayer *layer, const QgsRectangle &extent) |
Creates new raster renderer widget. More... | |
Additional Inherited Members | |
Signals inherited from QgsRasterRendererWidget | |
void | widgetChanged () |
Emitted when something on the widget has changed. More... | |
Protected Attributes inherited from QgsRasterRendererWidget | |
QgsMapCanvas * | mCanvas = nullptr |
Associated map canvas. More... | |
QgsRectangle | mExtent |
Current extent. More... | |
QgsRasterLayer * | mRasterLayer = nullptr |
Single band pseudo color renderer widget consists of a color ramp shader widget, a raster min max widget and a band selector.
Definition at line 38 of file qgssinglebandpseudocolorrendererwidget.h.
QgsSingleBandPseudoColorRendererWidget::QgsSingleBandPseudoColorRendererWidget | ( | QgsRasterLayer * | layer, |
const QgsRectangle & | extent = QgsRectangle() |
||
) |
Creates new raster renderer widget.
Definition at line 43 of file qgssinglebandpseudocolorrendererwidget.cpp.
|
inlinestatic |
Creates new raster renderer widget.
Definition at line 49 of file qgssinglebandpseudocolorrendererwidget.h.
int QgsSingleBandPseudoColorRendererWidget::currentBand | ( | ) | const |
Returns the current raster band number.
Definition at line 134 of file qgssinglebandpseudocolorrendererwidget.cpp.
|
overridevirtual |
Load programmatically with current values.
Reimplemented from QgsRasterRendererWidget.
Definition at line 127 of file qgssinglebandpseudocolorrendererwidget.cpp.
|
slot |
called when new min/max values are loaded
Definition at line 184 of file qgssinglebandpseudocolorrendererwidget.cpp.
|
slot |
called when the color ramp tree has changed
Definition at line 218 of file qgssinglebandpseudocolorrendererwidget.cpp.
|
overridevirtual |
Returns min/max widget when it exists.
Reimplemented from QgsRasterRendererWidget.
Definition at line 132 of file qgssinglebandpseudocolorrendererwidget.cpp.
|
overridevirtual |
Implements QgsRasterRendererWidget.
Definition at line 109 of file qgssinglebandpseudocolorrendererwidget.cpp.
void QgsSingleBandPseudoColorRendererWidget::setFromRenderer | ( | const QgsRasterRenderer * | r | ) |
Set state of the widget from renderer settings.
Definition at line 146 of file qgssinglebandpseudocolorrendererwidget.cpp.
|
overridevirtual |
Sets the map canvas associated with the widget.
This allows the widget to retrieve the current map extent and other properties from the canvas.
canvas | map canvas |
Reimplemented from QgsRasterRendererWidget.
Definition at line 139 of file qgssinglebandpseudocolorrendererwidget.cpp.