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 );
73 void applyHistoMin( );
74 void applyHistoMax( );
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();
120 QList< int > histoSelectedBands();
122 QList< int > rendererSelectedBands();
123 QPair< QString, QString > rendererMinMax(
int theBandNo );