QGIS API Documentation  2.99.0-Master (b681b7b)
Public Slots | Public Member Functions | Static Public Member Functions | List of all members
QgsSingleBandGrayRendererWidget Class Reference

#include <qgssinglebandgrayrendererwidget.h>

Inheritance diagram for QgsSingleBandGrayRendererWidget:
Inheritance graph
[legend]

Public Slots

void loadMinMax (int bandNo, double min, double max)
 called when new min/max values are loaded More...
 

Public Member Functions

 QgsSingleBandGrayRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle())
 
void doComputations () override
 Load programmatically with current values. More...
 
QString max (int index=0) override
 
QString min (int index=0) override
 
QgsRasterMinMaxWidgetminMaxWidget () override
 Return min/max widget when it exists. More...
 
QgsRasterRendererrenderer () override
 
int selectedBand (int index=0) override
 
void setFromRenderer (const QgsRasterRenderer *r)
 
void setMapCanvas (QgsMapCanvas *canvas) override
 Sets the map canvas associated with the widget. More...
 
void setMax (const QString &value, int index=0) override
 
void setMin (const QString &value, int index=0) override
 
- Public Member Functions inherited from QgsRasterRendererWidget
 QgsRasterRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent)
 
QgsMapCanvasmapCanvas ()
 Returns the map canvas associated with the widget. More...
 
const QgsRasterLayerrasterLayer () const
 
void setRasterLayer (QgsRasterLayer *layer)
 
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. More...
 
- Protected Member Functions inherited from QgsRasterRendererWidget
QString displayBandName (int band) const
 Returns a band name for display. First choice is color name, otherwise band number. More...
 
- Protected Attributes inherited from QgsRasterRendererWidget
QgsMapCanvasmCanvas = nullptr
 Associated map canvas. More...
 
QgsRectangle mExtent
 Current extent. More...
 
QgsRasterLayermRasterLayer = nullptr
 

Detailed Description

Definition at line 30 of file qgssinglebandgrayrendererwidget.h.

Constructor & Destructor Documentation

◆ QgsSingleBandGrayRendererWidget()

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

Definition at line 24 of file qgssinglebandgrayrendererwidget.cpp.

Member Function Documentation

◆ create()

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

Definition at line 36 of file qgssinglebandgrayrendererwidget.h.

◆ doComputations()

void QgsSingleBandGrayRendererWidget::doComputations ( )
overridevirtual

Load programmatically with current values.

Reimplemented from QgsRasterRendererWidget.

Definition at line 108 of file qgssinglebandgrayrendererwidget.cpp.

◆ loadMinMax

void QgsSingleBandGrayRendererWidget::loadMinMax ( int  bandNo,
double  min,
double  max 
)
slot

called when new min/max values are loaded

Definition at line 144 of file qgssinglebandgrayrendererwidget.cpp.

◆ max()

QString QgsSingleBandGrayRendererWidget::max ( int  index = 0)
inlineoverridevirtual

Reimplemented from QgsRasterRendererWidget.

Definition at line 44 of file qgssinglebandgrayrendererwidget.h.

◆ min()

QString QgsSingleBandGrayRendererWidget::min ( int  index = 0)
inlineoverridevirtual

Reimplemented from QgsRasterRendererWidget.

Definition at line 43 of file qgssinglebandgrayrendererwidget.h.

◆ minMaxWidget()

QgsRasterMinMaxWidget* QgsSingleBandGrayRendererWidget::minMaxWidget ( )
inlineoverridevirtual

Return min/max widget when it exists.

Reimplemented from QgsRasterRendererWidget.

Definition at line 49 of file qgssinglebandgrayrendererwidget.h.

◆ renderer()

QgsRasterRenderer * QgsSingleBandGrayRendererWidget::renderer ( )
overridevirtual

Implements QgsRasterRendererWidget.

Definition at line 80 of file qgssinglebandgrayrendererwidget.cpp.

◆ selectedBand()

int QgsSingleBandGrayRendererWidget::selectedBand ( int  index = 0)
inlineoverridevirtual

Reimplemented from QgsRasterRendererWidget.

Definition at line 47 of file qgssinglebandgrayrendererwidget.h.

◆ setFromRenderer()

void QgsSingleBandGrayRendererWidget::setFromRenderer ( const QgsRasterRenderer r)

Definition at line 179 of file qgssinglebandgrayrendererwidget.cpp.

◆ setMapCanvas()

void QgsSingleBandGrayRendererWidget::setMapCanvas ( QgsMapCanvas canvas)
overridevirtual

Sets the map canvas associated with the widget.

This allows the widget to retrieve the current map extent and other properties from the canvas.

Parameters
canvasmap canvas
See also
mapCanvas()
Note
added in QGIS 2.16

Reimplemented from QgsRasterRendererWidget.

Definition at line 113 of file qgssinglebandgrayrendererwidget.cpp.

◆ setMax()

void QgsSingleBandGrayRendererWidget::setMax ( const QString &  value,
int  index = 0 
)
overridevirtual

Reimplemented from QgsRasterRendererWidget.

Definition at line 209 of file qgssinglebandgrayrendererwidget.cpp.

◆ setMin()

void QgsSingleBandGrayRendererWidget::setMin ( const QString &  value,
int  index = 0 
)
overridevirtual

Reimplemented from QgsRasterRendererWidget.

Definition at line 202 of file qgssinglebandgrayrendererwidget.cpp.


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