QGIS API Documentation  3.1.0-Master (f35745f)
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

Public Slots

void classify ()
 Executes the single band pseudo raster classficiation. More...
void loadMinMax (int bandNo, double min, double max)
 called when new min/max values are loaded More...
void loadMinMaxFromTree ()
 called when the color ramp tree has changed More...

Public Member Functions

 QgsSingleBandPseudoColorRendererWidget (QgsRasterLayer *layer, const QgsRectangle &extent=QgsRectangle())
void doComputations () override
 Load programmatically with current values. More...
QgsRasterMinMaxWidgetminMaxWidget () override
 Return min/max widget when it exists. More...
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)
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 &extent)

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

Definition at line 34 of file qgssinglebandpseudocolorrendererwidget.h.

Constructor & Destructor Documentation

◆ QgsSingleBandPseudoColorRendererWidget()

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

Definition at line 42 of file qgssinglebandpseudocolorrendererwidget.cpp.

Member Function Documentation

◆ classify

void QgsSingleBandPseudoColorRendererWidget::classify ( )

Executes the single band pseudo raster classficiation.

Definition at line 343 of file qgssinglebandpseudocolorrendererwidget.cpp.

◆ create()

static QgsRasterRendererWidget* QgsSingleBandPseudoColorRendererWidget::create ( QgsRasterLayer layer,
const QgsRectangle extent 

Definition at line 43 of file qgssinglebandpseudocolorrendererwidget.h.

◆ doComputations()

void QgsSingleBandPseudoColorRendererWidget::doComputations ( )

Load programmatically with current values.

Reimplemented from QgsRasterRendererWidget.

Definition at line 189 of file qgssinglebandpseudocolorrendererwidget.cpp.

◆ loadMinMax

void QgsSingleBandPseudoColorRendererWidget::loadMinMax ( int  bandNo,
double  min,
double  max 

called when new min/max values are loaded

Definition at line 764 of file qgssinglebandpseudocolorrendererwidget.cpp.

◆ loadMinMaxFromTree

void QgsSingleBandPseudoColorRendererWidget::loadMinMaxFromTree ( )

called when the color ramp tree has changed

Definition at line 796 of file qgssinglebandpseudocolorrendererwidget.cpp.

◆ minMaxWidget()

QgsRasterMinMaxWidget* QgsSingleBandPseudoColorRendererWidget::minMaxWidget ( )

Return min/max widget when it exists.

Reimplemented from QgsRasterRendererWidget.

Definition at line 47 of file qgssinglebandpseudocolorrendererwidget.h.

◆ renderer()

QgsRasterRenderer * QgsSingleBandPseudoColorRendererWidget::renderer ( )

◆ setFromRenderer()

void QgsSingleBandPseudoColorRendererWidget::setFromRenderer ( const QgsRasterRenderer r)

Definition at line 668 of file qgssinglebandpseudocolorrendererwidget.cpp.

◆ setMapCanvas()

void QgsSingleBandPseudoColorRendererWidget::setMapCanvas ( QgsMapCanvas canvas)

Sets the map canvas associated with the widget.

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

canvasmap canvas
See also
QGIS 2.16

Reimplemented from QgsRasterRendererWidget.

Definition at line 194 of file qgssinglebandpseudocolorrendererwidget.cpp.

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