-
Notifications
You must be signed in to change notification settings - Fork 0
/
LevelTwoChart.h
77 lines (68 loc) · 2.24 KB
/
LevelTwoChart.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
#ifndef LEVELTWOCHART_H
#define LEVELTWOCHART_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 LevelTwoChart : public QwtPlot
{
Q_OBJECT
QwtPlotPicker *plotPicker;
QwtLegend *legend;
QwtPlotGrid *gridToPlot;
QString strRA;
QString strFA;
QString strRB;
QString strFB;
QString strRC;
QString strFC;
/* Markers */
QwtPlotMarker *mY;
QwtPlotMarker *mX;
QwtPlotMarker *forecastDotA;
QwtPlotMarker *forecastDotB;
QwtPlotMarker *forecastDotC;
/* Cureves */
QwtPlotCurve *curveRA;
QwtPlotCurve *curveFA;
QwtPlotCurve *curveRB;
QwtPlotCurve *curveFB;
QwtPlotCurve *curveRC;
QwtPlotCurve *curveFC;
/* Symbols */
QwtSymbol *symbolRA;
QwtSymbol *symbolFA;
QwtSymbol *symbolRB;
QwtSymbol *symbolFB;
QwtSymbol *symbolRC;
QwtSymbol *symbolFC;
QwtSymbol *forecastSymbolA;
QwtSymbol *forecastSymbolB;
QwtSymbol *forecastSymbolC;
void updateWidgetGradient();
void plotAssay();
protected:
virtual void resizeEvent(QResizeEvent *event);
private slots:
void showItem(QwtPlotItem *item, bool on);
public slots:
void exportLevelTwoPlotToImage();
void printLevelTwoPlot();
public:
LevelTwoChart(QWidget *parent = 0);
void readDataOfVectors(const QVector<double> &vectorMuA,
const QVector<double> &vectorMuForecastA,
const QVector<QString> &vectorAlphaA,
const QVector<QString> &vectorAlphaForecastA,
const QVector<double> &vectorMuB,
const QVector<double> &vectorMuForecastB,
const QVector<QString> &vectorAlphaB,
const QVector<QString> &vectorAlphaForecastB,
const QVector<double> &vectorMuC,
const QVector<double> &vectorMuForecastC,
const QVector<QString> &vectorAlphaC,
const QVector<QString> &vectorAlphaForecastC);
~LevelTwoChart();
};
#endif // LEVELTWOCHART_H