17#ifndef QGSGRADUATEDHISTOGRAMWIDGET_H
18#define QGSGRADUATEDHISTOGRAMWIDGET_H
25class QgsGraduatedHistogramEventFilter;
68 void mousePress(
double value );
69 void mouseRelease(
double value );
73 QwtPlotPicker *mHistoPicker =
nullptr;
74 QgsGraduatedHistogramEventFilter *mFilter =
nullptr;
75 double mPressedValue = 0;
77 void findClosestRange(
double value,
int &closestRangeIndex,
int &pixelDistance )
const;
79 QwtPlotHistogram *createPlotHistogram(
const QString &title,
const QColor &color )
const;
90class GUI_EXPORT QgsGraduatedHistogramEventFilter :
public QObject
95 QgsGraduatedHistogramEventFilter( QwtPlot *plot );
97 bool eventFilter( QObject *
object, QEvent *event )
override;
101 void mousePress(
double );
102 void mouseRelease(
double );
105 QwtPlot *mPlot =
nullptr;
106 double posToValue( QPointF point )
const;
A vector feature renderer which uses numeric attributes to classify features into different ranges.