-
Notifications
You must be signed in to change notification settings - Fork 0
/
CalibrationPlot.h
48 lines (38 loc) · 1020 Bytes
/
CalibrationPlot.h
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
38
39
40
41
42
43
44
45
46
47
48
#ifndef _CalibrationPlot_h_
#define _CalibrationPlot_h_
#include <QtGui/QtGui>
class QColor;
class QwtPlotCurve;
#include <list>
using namespace std;
#include "ui_CalibrationPlot.h"
/**
* @class CalibrationCurve
* This is a simple class that associates a row of calibration data
* to a pair of plotted curves. The 'actual' curve is rendered as
* line segments from set point to set point. The 'fitted' is a
* single straight line that is least square fitted to the set points
* based upon the coefficients set in the calibration row.
*/
class CalibrationCurve
{
public:
QString rid;
QwtPlotCurve* actual;
QwtPlotCurve* fitted;
};
/**
* @class CalibrationPlot
* A container widget that stores the curves and maintains their colors.
*/
class CalibrationPlot : public QWidget, public Ui::CalibrationPlot
{
Q_OBJECT
public:
CalibrationPlot(QWidget* parent = 0);
void dropColors();
void setupColors();
QList<CalibrationCurve *> curves;
list<QColor> colors;
};
#endif