forked from DavidEilenstein/PolarisationSimulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathps_space.h
77 lines (65 loc) · 1.96 KB
/
ps_space.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 PS_SPACE_H
#define PS_SPACE_H
#include <QObject>
#include <complex>
#include <vector>
#include <math.h>
#include <algorithm>
#include <ps_vec.h>
#include <ps_mat.h>
#include <ps_element.h>
#include <QDoubleSpinBox>
#include <QProgressBar>
#include <QtCharts/QChartView>
#include <QtCharts/QSplineSeries>
#include <QtCharts/QScatterSeries>
#include <QtCharts/QChart>
#include <QtCharts/QValueAxis>
#include <QLabel>
#include <QPixmap>
using namespace std;
QT_CHARTS_USE_NAMESPACE
class PS_Space : public QObject
{
Q_OBJECT
public:
PS_Space();
PS_Space(const PS_Space& S);
void Set_Ui (QLabel *pPolState, QProgressBar *pIntensity, QDoubleSpinBox *pX1R, QDoubleSpinBox *pX1I, QDoubleSpinBox *pX2R, QDoubleSpinBox *pX2I, QDoubleSpinBox *pS0, QDoubleSpinBox *pS1, QDoubleSpinBox *pS2, QDoubleSpinBox *pS3);
void Set_SpaceInput (PS_Space *S);
void Set_ElementInput (PS_Element *E);
void Set (PS_Vec V);
void Calc (PS_Element *E, PS_Space *S);
PS_Vec Get ();
void Get_Rotation (QSplineSeries *Lines[], QScatterSeries *Dot);
signals:
void Updated();
void Updated(double intensity);
public slots:
void Update();
void Update_PolStateDraw();
private:
PS_Vec V_PolState;
double Stks_0 = 1.0;
double Stks_1 = 1.0;
double Stks_2 = 0.0;
double Stks_3 = 0.0;
double Stks_I = 1.0;
double Stks_p = 1.0;
double Stks_Psi = 0.0;
double Stks_Chi = 0.0;
QProgressBar *pPB_Intensity;
QLabel *pL_PolState;
QDoubleSpinBox *pDSB_X1R;
QDoubleSpinBox *pDSB_X1I;
QDoubleSpinBox *pDSB_X2R;
QDoubleSpinBox *pDSB_X2I;
QDoubleSpinBox *pDSB_S0;
QDoubleSpinBox *pDSB_S1;
QDoubleSpinBox *pDSB_S2;
QDoubleSpinBox *pDSB_S3;
PS_Space *InputSpace;
PS_Element *InputElement;
QPixmap PX_PolState;
};
#endif // PS_SPACE_H