QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
QgsPalettedRendererWidget Class Reference

#include <qgspalettedrendererwidget.h>

Inheritance diagram for QgsPalettedRendererWidget:
Inheritance graph
[legend]

Public Member Functions

 QgsPalettedRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle())
 
 ~QgsPalettedRendererWidget () override
 
QgsRasterRendererrenderer () override
 Creates a new renderer, using the properties defined in the widget.
 
void setFromRenderer (const QgsRasterRenderer *r)
 Sets the widget state from the specified renderer.
 
- 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.
 
virtual void doComputations ()
 Load programmatically with current values.
 
QgsMapCanvasmapCanvas ()
 Returns the map canvas associated with the widget.
 
virtual QString max (int index=0)
 
virtual QString min (int index=0)
 
virtual QgsRasterMinMaxWidgetminMaxWidget ()
 Returns min/max widget when it exists.
 
const QgsRasterLayerrasterLayer () const
 Returns the raster layer associated with 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 ()
 

Static Public Member Functions

static QgsRasterRendererWidgetcreate (QgsRasterLayer *layer, const QgsRectangle &extent)
 

Additional Inherited Members

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

Detailed Description

Definition at line 179 of file qgspalettedrendererwidget.h.

Constructor & Destructor Documentation

◆ QgsPalettedRendererWidget()

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

Definition at line 42 of file qgspalettedrendererwidget.cpp.

◆ ~QgsPalettedRendererWidget()

QgsPalettedRendererWidget::~QgsPalettedRendererWidget ( )
override

Definition at line 132 of file qgspalettedrendererwidget.cpp.

Member Function Documentation

◆ create()

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

Definition at line 187 of file qgspalettedrendererwidget.h.

◆ renderer()

QgsRasterRenderer * QgsPalettedRendererWidget::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 141 of file qgspalettedrendererwidget.cpp.

◆ setFromRenderer()

void QgsPalettedRendererWidget::setFromRenderer ( const QgsRasterRenderer r)

Sets the widget state from the specified renderer.

Definition at line 154 of file qgspalettedrendererwidget.cpp.


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