-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLevelTwoMuChart.h
85 lines (72 loc) · 2.53 KB
/
LevelTwoMuChart.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#ifndef LEVELTWOMUCHART_H
#define LEVELTWOMUCHART_H
#include <qwt_plot.h>
#include <qwt_plot_picker.h>
#include <qwt_plot_grid.h>
#include <qwt_plot_marker.h>
#include <qwt_plot_curve.h>
class LevelTwoMuChart : public QwtPlot
{
Q_OBJECT
QwtPlotPicker *plotPicker;
QwtLegend *legend;
QwtPlotGrid *gridToPlot;
/* Strings */
QString strMuLowerBlockA;
QString strMuBlockA;
QString strMuUpperBlockA;
QString strMuLowerBlockB;
QString strMuBlockB;
QString strMuUpperBlockB;
QString strMuLowerBlockC;
QString strMuBlockC;
QString strMuUpperBlockC;
/* Markers */
QwtPlotMarker *mY;
QwtPlotMarker *mX;
/********** CURVES **********/
QwtPlotCurve *curveMuLowerBlockA;
QwtPlotCurve *curveMuBlockA;
QwtPlotCurve *curveMuUpperBlockA;
QwtPlotCurve *curveMuLowerBlockB;
QwtPlotCurve *curveMuBlockB;
QwtPlotCurve *curveMuUpperBlockB;
QwtPlotCurve *curveMuLowerBlockC;
QwtPlotCurve *curveMuBlockC;
QwtPlotCurve *curveMuUpperBlockC;
/********** END CURVES **********/
/********** SYMBOLS **********/
QwtSymbol *symbolMuLowerBlockA;
QwtSymbol *symbolMuBlockA;
QwtSymbol *symbolMuUpperBlockA;
QwtSymbol *symbolMuLowerBlockB;
QwtSymbol *symbolMuBlockB;
QwtSymbol *symbolMuUpperBlockB;
QwtSymbol *symbolMuLowerBlockC;
QwtSymbol *symbolMuBlockC;
QwtSymbol *symbolMuUpperBlockC;
/********** END SYMBOLS **********/
void updateWidgetGradient();
void plotAssay();
protected:
virtual void resizeEvent(QResizeEvent *);
private slots:
void showItem(QwtPlotItem *item, bool on);
public slots:
void exportLevelTwoPlotToImage();
void printLevelTwoPlot();
public:
LevelTwoMuChart(QWidget *parent = 0);
void readDataOfVectors(const QVector<QString> &vectorAlpha,
const QVector<double> &vectorMuLowerBlockA,
const QVector<double> &vectorMuBlockA,
const QVector<double> &vectorMuUpperBlockA,
const QVector<double> &vectorMuLowerBlockB,
const QVector<double> &vectorMuBlockB,
const QVector<double> &vectorMuUpperBlockB,
const QVector<double> &vectorMuLowerBlockC,
const QVector<double> &vectorMuBlockC,
const QVector<double> &vectorMuUpperBlockC);
~LevelTwoMuChart();
};
#endif // LEVELTWOMUCHART_H