17 #ifndef QGSRASTERHISTOGRAMWIDGET_H
18 #define QGSRASTERHISTOGRAMWIDGET_H
20 #include "ui_qgsrasterhistogramwidgetbase.h"
29 #if defined(QWT_VERSION) && QWT_VERSION>=0x060000
30 typedef QPointF QwtDoublePoint;
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();
105 QString mRendererName;
107 QwtPlotPicker* mHistoPicker;
108 QwtPlotZoomer* mHistoZoomer;
109 QwtPlotMarker* mHistoMarkerMin;
110 QwtPlotMarker* mHistoMarkerMax;
113 QVector<QColor> mHistoColors;
114 bool mHistoShowMarkers;
115 bool mHistoZoomToMinMax;
116 bool mHistoUpdateStyleToMinMax;
117 bool mHistoDrawLines;
119 HistoShowBands mHistoShowBands;
121 QList< int > histoSelectedBands();
123 QList< int > rendererSelectedBands();
124 QPair< QString, QString > rendererMinMax(
int theBandNo );