scoredistribution.h
837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef SCOREDISTRIBUTION_H
#define SCOREDISTRIBUTION_H
#include <QList>
#include <QKeyEvent>
#include <QPointF>
#include <QString>
#include <QWheelEvent>
#include <QWidget>
#include <qwt_plot.h>
#include <qwt_plot_curve.h>
#include <qwt_plot_marker.h>
#include <qwt_plot_picker.h>
class ScoreDistribution : public QwtPlot
{
Q_OBJECT
QwtPlotCurve qpcImpostor, qpcGenuine, qpcLive;
QwtPlotMarker qpmMarker;
QwtPlotPicker qppPicker;
public:
explicit ScoreDistribution(QWidget *parent = 0);
public slots:
void setDistribution(const QString &distribution);
void setThreshold(float score);
void setLiveScores(const QList<float> &scores);
private slots:
void selected(const QPointF &point);
signals:
void newThreshold(float);
};
#endif // SCOREDISTRIBUTION_H