-
Notifications
You must be signed in to change notification settings - Fork 0
/
LevelOneChart.h
56 lines (45 loc) · 1.27 KB
/
LevelOneChart.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
#ifndef LEVELONECHART_H
#define LEVELONECHART_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 LevelOneChart : public QwtPlot
{
Q_OBJECT
QwtPlotPicker *plotPicker;
QwtLegend *legend;
QwtPlotGrid *gridToPlot;
/* Strings names */
QString strR;
QString strF;
/* Markers */
QwtPlotMarker *mY;
QwtPlotMarker *mX;
QwtPlotMarker *forecastDot;
/* Cureves */
QwtPlotCurve *curveR;
QwtPlotCurve *curveF;
/* Symbols */
QwtSymbol *symbolR;
QwtSymbol *symbolF;
QwtSymbol *forecastSymbol;
void updateWidgetGradient();
void plotAssay();
protected:
virtual void resizeEvent(QResizeEvent *);
private slots:
void showItem(QwtPlotItem *item, bool on);
public slots:
void exportLevelOnePlotToImage();
void printLevelOnePlot();
public:
LevelOneChart(QWidget *parent = 0);
void readDataOfVectors(const QVector<double> &vectorMu,
const QVector<double> &vectorMuForecast,
const QVector<QString> &vectorAlpha,
const QVector<QString> &vectorAlphaForecast);
~LevelOneChart();
};
#endif // LEVELONECHART_H