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

#include <qgsmultibandcolorrendererwidget.h>

Inheritance diagram for QgsMultiBandColorRendererWidget:
Inheritance graph
[legend]

Public Slots

void loadMinMax (int theBandNo, double theMin, double theMax, int theOrigin)
 

Public Member Functions

 QgsMultiBandColorRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle())
 
 ~QgsMultiBandColorRendererWidget ()
 
QString max (int index=0) override
 
QString min (int index=0) override
 
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)
 
virtual ~QgsRasterRendererWidget ()
 
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 &theExtent)
 

Additional Inherited Members

- Public Types inherited from QgsRasterRendererWidget
enum  LoadMinMaxAlgo { Estimate, Actual, CurrentExtent, CumulativeCut }
 
- 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
 Associated map canvas. More...
 
QgsRectangle mExtent
 Current extent. More...
 
QgsRasterLayermRasterLayer
 

Detailed Description

Definition at line 34 of file qgsmultibandcolorrendererwidget.h.

Constructor & Destructor Documentation

§ QgsMultiBandColorRendererWidget()

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

Definition at line 24 of file qgsmultibandcolorrendererwidget.cpp.

§ ~QgsMultiBandColorRendererWidget()

QgsMultiBandColorRendererWidget::~QgsMultiBandColorRendererWidget ( )

Definition at line 89 of file qgsmultibandcolorrendererwidget.cpp.

Member Function Documentation

§ create()

static QgsRasterRendererWidget* QgsMultiBandColorRendererWidget::create ( QgsRasterLayer layer,
const QgsRectangle theExtent 
)
inlinestatic

Definition at line 40 of file qgsmultibandcolorrendererwidget.h.

§ loadMinMax

void QgsMultiBandColorRendererWidget::loadMinMax ( int  theBandNo,
double  theMin,
double  theMax,
int  theOrigin 
)
slot

Definition at line 217 of file qgsmultibandcolorrendererwidget.cpp.

§ max()

QString QgsMultiBandColorRendererWidget::max ( int  index = 0)
overridevirtual

Reimplemented from QgsRasterRendererWidget.

Definition at line 324 of file qgsmultibandcolorrendererwidget.cpp.

§ min()

QString QgsMultiBandColorRendererWidget::min ( int  index = 0)
overridevirtual

Reimplemented from QgsRasterRendererWidget.

Definition at line 308 of file qgsmultibandcolorrendererwidget.cpp.

§ renderer()

QgsRasterRenderer * QgsMultiBandColorRendererWidget::renderer ( )
overridevirtual

Implements QgsRasterRendererWidget.

Definition at line 93 of file qgsmultibandcolorrendererwidget.cpp.

§ selectedBand()

int QgsMultiBandColorRendererWidget::selectedBand ( int  index = 0)
overridevirtual

Reimplemented from QgsRasterRendererWidget.

Definition at line 376 of file qgsmultibandcolorrendererwidget.cpp.

§ setFromRenderer()

void QgsMultiBandColorRendererWidget::setFromRenderer ( const QgsRasterRenderer r)

Definition at line 287 of file qgsmultibandcolorrendererwidget.cpp.

§ setMapCanvas()

void QgsMultiBandColorRendererWidget::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 114 of file qgsmultibandcolorrendererwidget.cpp.

§ setMax()

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

Reimplemented from QgsRasterRendererWidget.

Definition at line 358 of file qgsmultibandcolorrendererwidget.cpp.

§ setMin()

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

Reimplemented from QgsRasterRendererWidget.

Definition at line 340 of file qgsmultibandcolorrendererwidget.cpp.


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