-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
40 lines (34 loc) · 914 Bytes
/
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <Q3DBars>
#include <QComboBox>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QMainWindow>
#include <QSlider>
#include <QSpinBox>
#include <QVBoxLayout>
#include <complex>
#include <eigen3/Eigen/Dense>
#include <vector>
class MainWindow : public QMainWindow {
Q_OBJECT
Eigen::VectorXcd qInitState;
Eigen::VectorXcd cInitState;
QHBoxLayout mainLayout;
QVBoxLayout graphLayout;
QtDataVisualization::Q3DBars qGraph;
QtDataVisualization::Q3DBars cGraph;
QGridLayout controlsLayout;
enum class InitState { Tails, Heads, TailsHeads, TailsImagHeads };
QComboBox initStateCombo;
QSpinBox pathLenSpin;
QSlider pathLenSlider;
QSpinBox stepsSpin;
QSlider stepsSlider;
void init(InitState const s);
void simulate();
public:
explicit MainWindow(QWidget *parent = 0);
};
#endif // MAINWINDOW_H