QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Abstract base class for widgets which configure a QgsRasterRenderer. More...
#include <qgsrasterrendererwidget.h>
Signals | |
void | widgetChanged () |
Emitted when something on the widget has changed. More... | |
Public Member Functions | |
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 () |
Protected Attributes | |
QgsMapCanvas * | mCanvas = nullptr |
Associated map canvas. More... | |
QgsRectangle | mExtent |
Current extent. More... | |
QgsRasterLayer * | mRasterLayer = nullptr |
Abstract base class for widgets which configure a QgsRasterRenderer.
Definition at line 39 of file qgsrasterrendererwidget.h.
|
inline |
Definition at line 46 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Returns the constrast enhancement algorithm to be used by the raster renderer.
Reimplemented in QgsMultiBandColorRendererWidget, and QgsSingleBandGrayRendererWidget.
Definition at line 106 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Load programmatically with current values.
Reimplemented in QgsMultiBandColorRendererWidget, QgsSingleBandGrayRendererWidget, and QgsSingleBandPseudoColorRendererWidget.
Definition at line 97 of file qgsrasterrendererwidget.h.
QgsMapCanvas * QgsRasterRendererWidget::mapCanvas | ( | ) |
Returns the map canvas associated with the widget.
Definition at line 28 of file qgsrasterrendererwidget.cpp.
|
inlinevirtual |
Reimplemented in QgsSingleBandPseudoColorRendererWidget, QgsMultiBandColorRendererWidget, and QgsSingleBandGrayRendererWidget.
Definition at line 89 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Reimplemented in QgsSingleBandPseudoColorRendererWidget, QgsMultiBandColorRendererWidget, and QgsSingleBandGrayRendererWidget.
Definition at line 88 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Returns min/max widget when it exists.
Reimplemented in QgsMultiBandColorRendererWidget, QgsSingleBandGrayRendererWidget, and QgsSingleBandPseudoColorRendererWidget.
Definition at line 100 of file qgsrasterrendererwidget.h.
|
inline |
Returns the raster layer associated with the widget.
Definition at line 70 of file qgsrasterrendererwidget.h.
|
pure virtual |
Creates a new renderer, using the properties defined in the widget.
The caller takes ownership of the returned renderer.
Implemented in QgsPalettedRendererWidget, QgsHillshadeRendererWidget, QgsRasterContourRendererWidget, QgsSingleBandPseudoColorRendererWidget, QgsMultiBandColorRendererWidget, and QgsSingleBandGrayRendererWidget.
|
inlinevirtual |
Reimplemented in QgsSingleBandPseudoColorRendererWidget, QgsMultiBandColorRendererWidget, and QgsSingleBandGrayRendererWidget.
Definition at line 94 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Sets the constrast enhancement algorithm to be used by the raster renderer.
Reimplemented in QgsMultiBandColorRendererWidget, and QgsSingleBandGrayRendererWidget.
Definition at line 112 of file qgsrasterrendererwidget.h.
|
virtual |
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 in QgsSingleBandPseudoColorRendererWidget, QgsMultiBandColorRendererWidget, and QgsSingleBandGrayRendererWidget.
Definition at line 23 of file qgsrasterrendererwidget.cpp.
|
inlinevirtual |
Reimplemented in QgsSingleBandPseudoColorRendererWidget, QgsMultiBandColorRendererWidget, and QgsSingleBandGrayRendererWidget.
Definition at line 91 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Reimplemented in QgsSingleBandPseudoColorRendererWidget, QgsMultiBandColorRendererWidget, and QgsSingleBandGrayRendererWidget.
Definition at line 90 of file qgsrasterrendererwidget.h.
|
inline |
Sets the raster layer associated with the widget.
Definition at line 63 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Definition at line 93 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Definition at line 92 of file qgsrasterrendererwidget.h.
|
signal |
Emitted when something on the widget has changed.
All widgets will fire this event to notify of an internal change.
|
protected |
Associated map canvas.
Definition at line 129 of file qgsrasterrendererwidget.h.
|
protected |
Current extent.
Definition at line 126 of file qgsrasterrendererwidget.h.
|
protected |
Definition at line 123 of file qgsrasterrendererwidget.h.