QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
|
#include <qgspalettedrendererwidget.h>
Public Member Functions | |
QgsPalettedRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle()) | |
~QgsPalettedRendererWidget () override | |
QgsRasterRenderer * | renderer () override |
Creates a new renderer, using the properties defined in the widget. More... | |
void | setFromRenderer (const QgsRasterRenderer *r) |
Sets the widget state from the specified renderer. More... | |
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. 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 contrast 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 179 of file qgspalettedrendererwidget.h.
QgsPalettedRendererWidget::QgsPalettedRendererWidget | ( | QgsRasterLayer * | layer, |
const QgsRectangle & | extent = QgsRectangle() |
||
) |
Definition at line 41 of file qgspalettedrendererwidget.cpp.
|
override |
Definition at line 131 of file qgspalettedrendererwidget.cpp.
|
inlinestatic |
Definition at line 187 of file qgspalettedrendererwidget.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 140 of file qgspalettedrendererwidget.cpp.
void QgsPalettedRendererWidget::setFromRenderer | ( | const QgsRasterRenderer * | r | ) |
Sets the widget state from the specified renderer.
Definition at line 153 of file qgspalettedrendererwidget.cpp.