-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLevelOneMuChart.h
51 lines (42 loc) · 1.25 KB
/
LevelOneMuChart.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
#ifndef LEVELONEMUCHART_H
#define LEVELONEMUCHART_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 LevelOneMuChart : public QwtPlot
{
Q_OBJECT
QwtPlotPicker *plotPicker;
QwtLegend *legend;
QwtPlotGrid *gridToPlot;
/* Markers */
QwtPlotMarker *mY;
QwtPlotMarker *mX;
/* Curves */
QwtPlotCurve *curveMuLower;
QwtPlotCurve *curveMu;
QwtPlotCurve *curveMuUpper;
/* Symbols */
QwtSymbol *symbolMuLower;
QwtSymbol *symbolMu;
QwtSymbol *symbolMuUpper;
void updateWidgetGradient();
void plotAssay();
protected:
virtual void resizeEvent(QResizeEvent *);
private slots:
void showItem(QwtPlotItem *item, bool on);
public slots:
void exportLevelOnePlotToImage();
void printLevelOnePlot();
public:
LevelOneMuChart(QWidget *parent = 0);
void readDataOfVectors(const QVector<double> &vectorMuLower,
const QVector<double> &vectorMu,
const QVector<double> &vectorMuUpper,
const QVector<QString> &vectorAlpha);
~LevelOneMuChart();
};
#endif // LEVELONEMUCHART_H