QgsRasterHistogramWidget class

Histogram widget.

Base classes

class QgsMapLayerConfigWidget
A panel widget that can be shown in the map style dock.

Constructors, destructors, conversion operators

QgsRasterHistogramWidget(QgsRasterLayer* layer, QWidget* parent = nullptr)
Constructor for QgsRasterHistogramWidget, for the specified raster layer.

Public functions

auto computeHistogram(bool forceComputeFlag) -> bool
Compute the histogram on demand.
void histoAction(const QString& actionName, bool actionFlag = true)
Apply a histoActionTriggered() event.
auto histoSaveAsImage(const QString& filename, int width = 600, int height = 600, int quality = -1) -> bool
Save the histogram as an image to disk.
void setActive(bool activeFlag)
Activate the histogram widget.
void setRendererWidget(const QString& name, QgsRasterRendererWidget* rendererWidget = nullptr)
Sets the renderer widget (or just its name if there is no widget)
void setSelectedBand(int index)
Apply a histoActionTriggered() event.

Public slots

void refreshHistogram()
slot executed when user wishes to refresh raster histogramwidget