forked from DavidEilenstein/PolarisationSimulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathps_mainwindow.h
70 lines (51 loc) · 1.44 KB
/
ps_mainwindow.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
#ifndef PS_MAINWINDOW_H
#define PS_MAINWINDOW_H
#include <ps_enum.h>
#include <ps_space.h>
#include <ps_element.h>
#include <ps_stokescalc.h>
#include <QMainWindow>
#include <QtCharts/QChartView>
#include <QtCharts/QSplineSeries>
#include <QtCharts/QScatterSeries>
#include <QtCharts/QChart>
#include <QtCharts/QValueAxis>
#include <QLabel>
using namespace std;
QT_CHARTS_USE_NAMESPACE
namespace Ui {
class PS_MainWindow;
}
class PS_MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit PS_MainWindow(QWidget *parent = nullptr);
~PS_MainWindow();
public slots:
void Update_Plot();
private slots:
void on_action_Calc_Stokes_triggered();
void on_action_All_triggered();
void on_action_Plot_triggered();
void on_action_Normal_triggered();
void on_action_Minimum_triggered();
void on_action_Maximum_triggered();
void on_action_Fullscreen_triggered();
private:
Ui::PS_MainWindow *ui;
//optical axis:
vector<PS_Space> vSpaces; // 0 1 2 3 4 5
vector<PS_Element> vElements; // 1 2 3 4 5
//Charts
void Plot_Init();
QChartView *pChartView;
QChart *pChart;
QValueAxis *pAxisX;
QValueAxis *pAxisY;
QSplineSeries *pSeriesLine[4][3];
QScatterSeries *pSeriesDot[4];
QDir DIR_Operation;
QLabel *pLabelStatusbar;
};
#endif // PS_MAINWINDOW_H