QGIS API Documentation
3.8.0-Zanzibar (11aff65)
|
#include <qgssinglebandgrayrendererwidget.h>
Public Slots | |
void | loadMinMax (int bandNo, double min, double max) |
called when new min/max values are loaded More... | |
Public Member Functions | |
QgsSingleBandGrayRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle()) | |
void | doComputations () override |
Load programmatically with current values. More... | |
QString | max (int index=0) override |
QString | min (int index=0) override |
QgsRasterMinMaxWidget * | minMaxWidget () override |
Returns min/max widget when it exists. More... | |
QgsRasterRenderer * | renderer () override |
int | selectedBand (int index=0) override |
void | setFromRenderer (const QgsRasterRenderer *r) |
void | setMapCanvas (QgsMapCanvas *canvas) override |
Sets the map canvas associated with the widget. More... | |
void | setMax (const QString &value, int index=0) override |
void | setMin (const QString &value, int index=0) override |
Public Member Functions inherited from QgsRasterRendererWidget | |
QgsRasterRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent) | |
QgsMapCanvas * | mapCanvas () |
Returns the map canvas associated with the widget. More... | |
const QgsRasterLayer * | rasterLayer () const |
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) |
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 |
Definition at line 32 of file qgssinglebandgrayrendererwidget.h.
QgsSingleBandGrayRendererWidget::QgsSingleBandGrayRendererWidget | ( | QgsRasterLayer * | layer, |
const QgsRectangle & | extent = QgsRectangle() |
||
) |
Definition at line 24 of file qgssinglebandgrayrendererwidget.cpp.
|
inlinestatic |
Definition at line 38 of file qgssinglebandgrayrendererwidget.h.
|
overridevirtual |
Load programmatically with current values.
Reimplemented from QgsRasterRendererWidget.
Definition at line 105 of file qgssinglebandgrayrendererwidget.cpp.
|
slot |
called when new min/max values are loaded
Definition at line 141 of file qgssinglebandgrayrendererwidget.cpp.
|
inlineoverridevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 46 of file qgssinglebandgrayrendererwidget.h.
|
inlineoverridevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 45 of file qgssinglebandgrayrendererwidget.h.
|
inlineoverridevirtual |
Returns min/max widget when it exists.
Reimplemented from QgsRasterRendererWidget.
Definition at line 51 of file qgssinglebandgrayrendererwidget.h.
|
overridevirtual |
Implements QgsRasterRendererWidget.
Definition at line 77 of file qgssinglebandgrayrendererwidget.cpp.
|
inlineoverridevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 49 of file qgssinglebandgrayrendererwidget.h.
void QgsSingleBandGrayRendererWidget::setFromRenderer | ( | const QgsRasterRenderer * | r | ) |
Definition at line 176 of file qgssinglebandgrayrendererwidget.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 110 of file qgssinglebandgrayrendererwidget.cpp.
|
overridevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 210 of file qgssinglebandgrayrendererwidget.cpp.
|
overridevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 203 of file qgssinglebandgrayrendererwidget.cpp.