QGIS API Documentation 3.41.0-Master (25ec5511245)
|
Renderer widget for the single color renderer. More...
#include <qgsrastersinglecolorrendererwidget.h>
Public Member Functions | |
QgsRasterSingleColorRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle()) | |
Constructs the widget. | |
QgsRasterRenderer * | renderer () override |
Creates a new renderer, using the properties defined in the widget. | |
void | setFromRenderer (const QgsRasterRenderer *r) |
Sets the widget state from the specified renderer. | |
Public Member Functions inherited from QgsRasterRendererWidget | |
QgsRasterRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent) | |
virtual QgsContrastEnhancement::ContrastEnhancementAlgorithm | contrastEnhancementAlgorithm () const |
Returns the contrast enhancement algorithm to be used by the raster renderer. | |
virtual void | doComputations () |
Load programmatically with current values. | |
QgsMapCanvas * | mapCanvas () |
Returns the map canvas associated with the widget. | |
virtual QString | max (int index=0) |
virtual QString | min (int index=0) |
virtual QgsRasterMinMaxWidget * | minMaxWidget () |
Returns min/max widget when it exists. | |
const QgsRasterLayer * | rasterLayer () const |
Returns the raster layer associated with the widget. | |
virtual int | selectedBand (int index=0) |
virtual void | setContrastEnhancementAlgorithm (QgsContrastEnhancement::ContrastEnhancementAlgorithm algorithm) |
Sets the contrast enhancement algorithm to be used by the raster renderer. | |
virtual void | setMapCanvas (QgsMapCanvas *canvas) |
Sets the map canvas associated with the widget. | |
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. | |
virtual void | setStdDev (const QString &value) |
virtual QString | stdDev () |
Static Public Member Functions | |
static QgsRasterRendererWidget * | create (QgsRasterLayer *layer, const QgsRectangle &extent) |
Widget creation function (use by the renderer registry) | |
Additional Inherited Members | |
Signals inherited from QgsRasterRendererWidget | |
void | widgetChanged () |
Emitted when something on the widget has changed. | |
Protected Attributes inherited from QgsRasterRendererWidget | |
QgsMapCanvas * | mCanvas = nullptr |
Associated map canvas. | |
QgsRectangle | mExtent |
Current extent. | |
QgsRasterLayer * | mRasterLayer = nullptr |
Renderer widget for the single color renderer.
Definition at line 33 of file qgsrastersinglecolorrendererwidget.h.
QgsRasterSingleColorRendererWidget::QgsRasterSingleColorRendererWidget | ( | QgsRasterLayer * | layer, |
const QgsRectangle & | extent = QgsRectangle() |
||
) |
Constructs the widget.
Definition at line 24 of file qgsrastersinglecolorrendererwidget.cpp.
|
inlinestatic |
Widget creation function (use by the renderer registry)
Definition at line 41 of file qgsrastersinglecolorrendererwidget.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 46 of file qgsrastersinglecolorrendererwidget.cpp.
void QgsRasterSingleColorRendererWidget::setFromRenderer | ( | const QgsRasterRenderer * | r | ) |
Sets the widget state from the specified renderer.
Definition at line 63 of file qgsrastersinglecolorrendererwidget.cpp.