17 #ifndef QGSRASTERHISTOGRAMWIDGET_H
18 #define QGSRASTERHISTOGRAMWIDGET_H
20 #include "ui_qgsrasterhistogramwidgetbase.h"
29 #if defined(QWT_VERSION) && QWT_VERSION>=0x060000
46 bool histoSaveAsImage(
const QString& theFilename,
int width = 600,
int height = 600,
int quality = -1 );
52 void setActive(
bool theActiveFlag );
55 bool computeHistogram(
bool forceComputeFlag );
58 void histoAction(
const QString &actionName,
bool actionFlag =
true );
61 void setSelectedBand(
int index );
65 void refreshHistogram();
67 void on_mSaveAsImageButton_clicked();
71 void on_cboHistoBand_currentIndexChanged(
int );
76 void on_btnHistoMin_toggled();
77 void on_btnHistoMax_toggled();
79 void histoPickerSelected(
const QPointF & );
83 void histoPickerSelectedQwt5(
const QwtDoublePoint & );
85 void histoActionTriggered(
QAction* );
87 void updateHistoMarkers();
89 void on_btnHistoCompute_clicked();
107 QwtPlotPicker* mHistoPicker;
108 QwtPlotZoomer* mHistoZoomer;
109 QwtPlotMarker* mHistoMarkerMin;
110 QwtPlotMarker* mHistoMarkerMax;
114 bool mHistoShowMarkers;
115 bool mHistoZoomToMinMax;
116 bool mHistoUpdateStyleToMinMax;
117 bool mHistoDrawLines;
119 HistoShowBands mHistoShowBands;
This class provides qgis with the ability to render raster datasets onto the mapcanvas.