QGIS API Documentation  2.99.0-Master (8ec3eaf)
Public Types | Public Slots | Public Member Functions | Static Public Member Functions | List of all members
QgsSingleBandPseudoColorRendererWidget Class Reference

#include <qgssinglebandpseudocolorrendererwidget.h>

Inheritance diagram for QgsSingleBandPseudoColorRendererWidget:
Inheritance graph
[legend]

Public Types

enum  Mode { Continuous = 1, EqualInterval = 2, Quantile = 3 }
 
- Public Types inherited from QgsRasterRendererWidget
enum  LoadMinMaxAlgo { Estimate, Actual, CurrentExtent, CumulativeCut }
 

Public Slots

void classify ()
 Executes the single band pseudo raster classficiation. More...
 
void loadMinMax (int theBandNo, double theMin, double theMax, int theOrigin)
 

Public Member Functions

 QgsSingleBandPseudoColorRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle())
 
 ~QgsSingleBandPseudoColorRendererWidget ()
 
QgsRasterRendererrenderer () override
 
void setFromRenderer (const QgsRasterRenderer *r)
 
void setMapCanvas (QgsMapCanvas *canvas) override
 Sets the map canvas associated with the widget. More...
 
- Public Member Functions inherited from QgsRasterRendererWidget
 QgsRasterRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent)
 
virtual ~QgsRasterRendererWidget ()
 
QgsMapCanvasmapCanvas ()
 Returns the map canvas associated with the widget. More...
 
virtual QString max (int index=0)
 
virtual QString min (int index=0)
 
const QgsRasterLayerrasterLayer () const
 
virtual int selectedBand (int index=0)
 
virtual void setMax (const QString &value, int index=0)
 
virtual void setMin (const QString &value, int index=0)
 
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

- 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 31 of file qgssinglebandpseudocolorrendererwidget.h.

Member Enumeration Documentation

§ Mode

Enumerator
Continuous 
EqualInterval 
Quantile 

Definition at line 39 of file qgssinglebandpseudocolorrendererwidget.h.

Constructor & Destructor Documentation

§ QgsSingleBandPseudoColorRendererWidget()

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

Definition at line 38 of file qgssinglebandpseudocolorrendererwidget.cpp.

§ ~QgsSingleBandPseudoColorRendererWidget()

QgsSingleBandPseudoColorRendererWidget::~QgsSingleBandPseudoColorRendererWidget ( )

Definition at line 119 of file qgssinglebandpseudocolorrendererwidget.cpp.

Member Function Documentation

§ classify

void QgsSingleBandPseudoColorRendererWidget::classify ( )
slot

Executes the single band pseudo raster classficiation.

Definition at line 314 of file qgssinglebandpseudocolorrendererwidget.cpp.

§ create()

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

Definition at line 49 of file qgssinglebandpseudocolorrendererwidget.h.

§ loadMinMax

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

Definition at line 869 of file qgssinglebandpseudocolorrendererwidget.cpp.

§ renderer()

QgsRasterRenderer * QgsSingleBandPseudoColorRendererWidget::renderer ( )
overridevirtual

§ setFromRenderer()

void QgsSingleBandPseudoColorRendererWidget::setFromRenderer ( const QgsRasterRenderer r)

Definition at line 781 of file qgssinglebandpseudocolorrendererwidget.cpp.

§ setMapCanvas()

void QgsSingleBandPseudoColorRendererWidget::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 170 of file qgssinglebandpseudocolorrendererwidget.cpp.


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