QGIS API Documentation
3.24.2-Tisler (13c1a02865)
|
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 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 | 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 38 of file qgsrasterrendererwidget.h.
|
inline |
Definition at line 45 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Load programmatically with current values.
Reimplemented in QgsSingleBandPseudoColorRendererWidget, QgsSingleBandGrayRendererWidget, and QgsMultiBandColorRendererWidget.
Definition at line 96 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 QgsSingleBandGrayRendererWidget, and QgsMultiBandColorRendererWidget.
Definition at line 88 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Reimplemented in QgsSingleBandGrayRendererWidget, and QgsMultiBandColorRendererWidget.
Definition at line 87 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Returns min/max widget when it exists.
Reimplemented in QgsSingleBandPseudoColorRendererWidget, QgsSingleBandGrayRendererWidget, and QgsMultiBandColorRendererWidget.
Definition at line 99 of file qgsrasterrendererwidget.h.
|
inline |
Returns the raster layer associated with the widget.
Definition at line 69 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 QgsSingleBandPseudoColorRendererWidget, QgsSingleBandGrayRendererWidget, QgsRasterContourRendererWidget, QgsPalettedRendererWidget, QgsMultiBandColorRendererWidget, and QgsHillshadeRendererWidget.
|
inlinevirtual |
Reimplemented in QgsSingleBandGrayRendererWidget, and QgsMultiBandColorRendererWidget.
Definition at line 93 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, QgsSingleBandGrayRendererWidget, and QgsMultiBandColorRendererWidget.
Definition at line 23 of file qgsrasterrendererwidget.cpp.
|
inlinevirtual |
Reimplemented in QgsSingleBandGrayRendererWidget, and QgsMultiBandColorRendererWidget.
Definition at line 90 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Reimplemented in QgsSingleBandGrayRendererWidget, and QgsMultiBandColorRendererWidget.
Definition at line 89 of file qgsrasterrendererwidget.h.
|
inline |
Sets the raster layer associated with the widget.
Definition at line 62 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Definition at line 92 of file qgsrasterrendererwidget.h.
|
inlinevirtual |
Definition at line 91 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 116 of file qgsrasterrendererwidget.h.
|
protected |
Current extent.
Definition at line 113 of file qgsrasterrendererwidget.h.
|
protected |
Definition at line 110 of file qgsrasterrendererwidget.h.