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