17 #ifndef QGSRASTERHISTOGRAMWIDGET_H
18 #define QGSRASTERHISTOGRAMWIDGET_H
20 #include "ui_qgsrasterhistogramwidgetbase.h"
53 bool histoSaveAsImage(
const QString &filename,
int width = 600,
int height = 600,
int quality = -1 );
59 void setActive(
bool activeFlag );
62 bool computeHistogram(
bool forceComputeFlag );
65 void histoAction(
const QString &actionName,
bool actionFlag =
true );
68 void setSelectedBand(
int index );
72 void refreshHistogram();
74 void apply()
override;
78 void mSaveAsImageButton_clicked();
80 void cboHistoBand_currentIndexChanged(
int );
85 void btnHistoMin_toggled();
86 void btnHistoMax_toggled();
88 void histoPickerSelected( QPointF );
96 void histoActionTriggered( QAction * );
98 void updateHistoMarkers();
100 void btnHistoCompute_clicked();
116 QString mRendererName;
118 QwtPlotPicker *mHistoPicker =
nullptr;
119 QwtPlotZoomer *mHistoZoomer =
nullptr;
120 QwtPlotMarker *mHistoMarkerMin =
nullptr;
121 QwtPlotMarker *mHistoMarkerMax =
nullptr;
124 QVector<QColor> mHistoColors;
125 bool mHistoShowMarkers;
126 bool mHistoZoomToMinMax;
127 bool mHistoUpdateStyleToMinMax;
128 bool mHistoDrawLines;
130 HistoShowBands mHistoShowBands;
132 QList< int > histoSelectedBands();
134 QList< int > rendererSelectedBands();
135 QPair< QString, QString > rendererMinMax(
int bandNo );
Represents a raster layer.