QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Abstract base class for widgets which configure a QgsRasterRenderer. More...
#include <qgsrasterrendererwidget.h>
Signals | |
void | widgetChanged () |
Emitted when something on the widget has changed. | |
Public Member Functions | |
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 QgsRasterRenderer * | renderer ()=0 |
Creates a new renderer, using the properties defined in 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 () |
Protected Attributes | |
QgsMapCanvas * | mCanvas = nullptr |
Associated map canvas. | |
QgsRectangle | mExtent |
Current extent. | |
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 contrast enhancement algorithm to be used by the raster renderer.
Reimplemented in QgsMultiBandColorRendererWidget, and QgsSingleBandGrayRendererWidget.
Definition at line 104 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Load programmatically with current values.
Reimplemented in QgsMultiBandColorRendererWidget, QgsSingleBandGrayRendererWidget, and QgsSingleBandPseudoColorRendererWidget.
Definition at line 95 of file qgsrasterrendererwidget.h.
QgsMapCanvas * QgsRasterRendererWidget::mapCanvas | ( | ) |
Returns the map canvas associated with the widget.
Definition at line 29 of file qgsrasterrendererwidget.cpp.
|
inlinevirtual |
Reimplemented in QgsMultiBandColorRendererWidget, QgsSingleBandGrayRendererWidget, and QgsSingleBandPseudoColorRendererWidget.
Definition at line 87 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Reimplemented in QgsMultiBandColorRendererWidget, QgsSingleBandGrayRendererWidget, and QgsSingleBandPseudoColorRendererWidget.
Definition at line 86 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Returns min/max widget when it exists.
Reimplemented in QgsMultiBandColorRendererWidget, QgsSingleBandGrayRendererWidget, and QgsSingleBandPseudoColorRendererWidget.
Definition at line 98 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 QgsHillshadeRendererWidget, QgsMultiBandColorRendererWidget, QgsPalettedRendererWidget, QgsRasterContourRendererWidget, QgsRasterSingleColorRendererWidget, QgsSingleBandGrayRendererWidget, and QgsSingleBandPseudoColorRendererWidget.
|
inlinevirtual |
Reimplemented in QgsMultiBandColorRendererWidget, QgsSingleBandGrayRendererWidget, and QgsSingleBandPseudoColorRendererWidget.
Definition at line 92 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Sets the contrast enhancement algorithm to be used by the raster renderer.
Reimplemented in QgsMultiBandColorRendererWidget, and QgsSingleBandGrayRendererWidget.
Definition at line 110 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 QgsMultiBandColorRendererWidget, QgsSingleBandGrayRendererWidget, and QgsSingleBandPseudoColorRendererWidget.
Definition at line 24 of file qgsrasterrendererwidget.cpp.
|
inlinevirtual |
Reimplemented in QgsMultiBandColorRendererWidget, QgsSingleBandGrayRendererWidget, and QgsSingleBandPseudoColorRendererWidget.
Definition at line 89 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Reimplemented in QgsMultiBandColorRendererWidget, QgsSingleBandGrayRendererWidget, and QgsSingleBandPseudoColorRendererWidget.
Definition at line 88 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 91 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Definition at line 90 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 127 of file qgsrasterrendererwidget.h.
|
protected |
Current extent.
Definition at line 124 of file qgsrasterrendererwidget.h.
|
protected |
Definition at line 121 of file qgsrasterrendererwidget.h.