-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgraphtemp.h
executable file
·54 lines (47 loc) · 1.18 KB
/
graphtemp.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
49
50
51
52
53
54
#ifndef GRAPHTEMP_H
#define GRAPHTEMP_H
/**
* Classs using Qwt(based on QWidget).
* Display a grah about reflowkit temperature.
*
**/
#ifdef WIN32
#define QWT_DLL
#endif
#include <QWidget>
#include <qwt_plot.h>
#include <qwt_plot_curve.h>
#include <qwt_plot_grid.h>
#include <qwt_legend.h>
#include <QVector>
#include <QPen>
#include <string>
using namespace std;
class GraphTemp : public QwtPlot
{
Q_OBJECT
public:
explicit GraphTemp( QWidget *parent = 0 );
void setTempCurve(QVector<double>* temps, QVector<double>* times );
void setReflowCurve(int value);
void setSoakCurve(int value);
void setDWellCurve(int value);
void setPhtCurve(int value);
void setLine(QwtPlotCurve* curve, int value, string legendName);
signals:
public slots:
void setTimeFrameOfset( int offset );
void resetGraph();
private:
QwtPlotGrid _grid;
QwtLegend _legend;
QwtPlotCurve _tempCurve;
QwtPlotCurve _phtCurve;
QwtPlotCurve _reflowCurve;
QwtPlotCurve _soakCurve;
QwtPlotCurve _dwellCurve;
double _startTime;
double _currentTime;
int _timesFrameOffset;
};
#endif // GRAPHTEMP_H