17 #ifndef QGSRASTERHISTOGRAMWIDGET_H 18 #define QGSRASTERHISTOGRAMWIDGET_H 20 #include "ui_qgsrasterhistogramwidgetbase.h" 31 #if defined(QWT_VERSION) && QWT_VERSION>=0x060000 49 bool histoSaveAsImage(
const QString& theFilename,
int width = 600,
int height = 600,
int quality = -1 );
55 void setActive(
bool theActiveFlag );
58 bool computeHistogram(
bool forceComputeFlag );
61 void histoAction(
const QString &actionName,
bool actionFlag =
true );
64 void setSelectedBand(
int index );
68 void refreshHistogram();
70 void on_mSaveAsImageButton_clicked();
72 void apply()
override;
76 void on_cboHistoBand_currentIndexChanged(
int );
81 void on_btnHistoMin_toggled();
82 void on_btnHistoMax_toggled();
84 void histoPickerSelected(
QPointF );
88 void histoPickerSelectedQwt5( QwtDoublePoint );
90 void histoActionTriggered(
QAction* );
92 void updateHistoMarkers();
94 void on_btnHistoCompute_clicked();
112 QwtPlotPicker* mHistoPicker;
113 QwtPlotZoomer* mHistoZoomer;
114 QwtPlotMarker* mHistoMarkerMin;
115 QwtPlotMarker* mHistoMarkerMax;
119 bool mHistoShowMarkers;
120 bool mHistoZoomToMinMax;
121 bool mHistoUpdateStyleToMinMax;
122 bool mHistoDrawLines;
124 HistoShowBands mHistoShowBands;
This class provides qgis with the ability to render raster datasets onto the mapcanvas.