QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
#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()) | |
QgsContrastEnhancement::ContrastEnhancementAlgorithm | contrastEnhancementAlgorithm () const override |
Returns the constrast enhancement algorithm to be used by the raster renderer. More... | |
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 |
Creates a new renderer, using the properties defined in the widget. More... | |
int | selectedBand (int index=0) override |
void | setContrastEnhancementAlgorithm (QgsContrastEnhancement::ContrastEnhancementAlgorithm algorithm) override |
Sets the constrast enhancement algorithm to be used by the raster renderer. More... | |
void | setFromRenderer (const QgsRasterRenderer *r) |
Sets the widget state from the specified renderer. More... | |
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) | |
virtual QgsContrastEnhancement::ContrastEnhancementAlgorithm | contrastEnhancementAlgorithm () const |
Returns the constrast enhancement algorithm to be used by the raster renderer. More... | |
virtual void | doComputations () |
Load programmatically with current values. More... | |
QgsMapCanvas * | mapCanvas () |
Returns the map canvas associated with the widget. More... | |
virtual QString | max (int index=0) |
virtual QString | min (int index=0) |
virtual QgsRasterMinMaxWidget * | minMaxWidget () |
Returns min/max widget when it exists. More... | |
const QgsRasterLayer * | rasterLayer () const |
Returns the raster layer associated with the widget. More... | |
virtual QgsRasterRenderer * | renderer ()=0 |
Creates a new renderer, using the properties defined in the widget. More... | |
virtual int | selectedBand (int index=0) |
virtual void | setContrastEnhancementAlgorithm (QgsContrastEnhancement::ContrastEnhancementAlgorithm algorithm) |
Sets the constrast enhancement algorithm to be used by the raster renderer. More... | |
virtual void | setMapCanvas (QgsMapCanvas *canvas) |
Sets the map canvas associated with the widget. More... | |
virtual void | setMax (const QString &value, int index=0) |
virtual void | setMin (const QString &value, int index=0) |
void | setRasterLayer (QgsRasterLayer *layer) |
Sets the raster layer associated with the widget. More... | |
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 33 of file qgssinglebandgrayrendererwidget.h.
QgsSingleBandGrayRendererWidget::QgsSingleBandGrayRendererWidget | ( | QgsRasterLayer * | layer, |
const QgsRectangle & | extent = QgsRectangle() |
||
) |
Definition at line 26 of file qgssinglebandgrayrendererwidget.cpp.
|
overridevirtual |
Returns the constrast enhancement algorithm to be used by the raster renderer.
Reimplemented from QgsRasterRendererWidget.
Definition at line 255 of file qgssinglebandgrayrendererwidget.cpp.
|
inlinestatic |
Definition at line 39 of file qgssinglebandgrayrendererwidget.h.
|
overridevirtual |
Load programmatically with current values.
Reimplemented from QgsRasterRendererWidget.
Definition at line 111 of file qgssinglebandgrayrendererwidget.cpp.
|
slot |
called when new min/max values are loaded
Definition at line 147 of file qgssinglebandgrayrendererwidget.cpp.
|
inlineoverridevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 50 of file qgssinglebandgrayrendererwidget.h.
|
inlineoverridevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 49 of file qgssinglebandgrayrendererwidget.h.
|
inlineoverridevirtual |
Returns min/max widget when it exists.
Reimplemented from QgsRasterRendererWidget.
Definition at line 59 of file qgssinglebandgrayrendererwidget.h.
|
overridevirtual |
Creates a new renderer, using the properties defined in the widget.
The caller takes ownership of the returned renderer.
Implements QgsRasterRendererWidget.
Definition at line 81 of file qgssinglebandgrayrendererwidget.cpp.
|
inlineoverridevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 53 of file qgssinglebandgrayrendererwidget.h.
|
overridevirtual |
Sets the constrast enhancement algorithm to be used by the raster renderer.
Reimplemented from QgsRasterRendererWidget.
Definition at line 260 of file qgssinglebandgrayrendererwidget.cpp.
void QgsSingleBandGrayRendererWidget::setFromRenderer | ( | const QgsRasterRenderer * | r | ) |
Sets the widget state from the specified renderer.
Definition at line 182 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 116 of file qgssinglebandgrayrendererwidget.cpp.
|
overridevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 219 of file qgssinglebandgrayrendererwidget.cpp.
|
overridevirtual |
Reimplemented from QgsRasterRendererWidget.
Definition at line 212 of file qgssinglebandgrayrendererwidget.cpp.