QGIS API Documentation 3.27.0-Master (9c08adf5ef)
Public Member Functions | Static Public Member Functions | List of all members
QgsRasterContourRendererWidget Class Reference

Configuration widget for QgsRasterContourRenderer. More...

#include <qgsrastercontourrendererwidget.h>

Inheritance diagram for QgsRasterContourRendererWidget:
Inheritance graph
[legend]

Public Member Functions

 QgsRasterContourRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle())
 Constructs the widget. More...
 
QgsRasterRendererrenderer () override
 Creates a new renderer, using the properties defined in the widget. More...
 
- Public Member Functions inherited from QgsRasterRendererWidget
 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...
 
QgsMapCanvasmapCanvas ()
 Returns the map canvas associated with the widget. More...
 
virtual QString max (int index=0)
 
virtual QString min (int index=0)
 
virtual QgsRasterMinMaxWidgetminMaxWidget ()
 Returns min/max widget when it exists. More...
 
const QgsRasterLayerrasterLayer () const
 Returns the raster layer associated with the widget. More...
 
virtual QgsRasterRendererrenderer ()=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 ()
 

Static Public Member Functions

static QgsRasterRendererWidgetcreate (QgsRasterLayer *layer, const QgsRectangle &extent)
 Widget creation function (mainly for the use by the renderer registry) More...
 

Additional Inherited Members

- Signals inherited from QgsRasterRendererWidget
void widgetChanged ()
 Emitted when something on the widget has changed. More...
 
- Protected Attributes inherited from QgsRasterRendererWidget
QgsMapCanvasmCanvas = nullptr
 Associated map canvas. More...
 
QgsRectangle mExtent
 Current extent. More...
 
QgsRasterLayermRasterLayer = nullptr
 

Detailed Description

Configuration widget for QgsRasterContourRenderer.

Since
QGIS 3.14

Definition at line 29 of file qgsrastercontourrendererwidget.h.

Constructor & Destructor Documentation

◆ QgsRasterContourRendererWidget()

QgsRasterContourRendererWidget::QgsRasterContourRendererWidget ( QgsRasterLayer layer,
const QgsRectangle extent = QgsRectangle() 
)

Constructs the widget.

Definition at line 22 of file qgsrastercontourrendererwidget.cpp.

Member Function Documentation

◆ create()

static QgsRasterRendererWidget * QgsRasterContourRendererWidget::create ( QgsRasterLayer layer,
const QgsRectangle extent 
)
inlinestatic

Widget creation function (mainly for the use by the renderer registry)

Definition at line 37 of file qgsrastercontourrendererwidget.h.

◆ renderer()

QgsRasterRenderer * QgsRasterContourRendererWidget::renderer ( )
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 63 of file qgsrastercontourrendererwidget.cpp.


The documentation for this class was generated from the following files: