-
Notifications
You must be signed in to change notification settings - Fork 0
/
parameters.h
61 lines (43 loc) · 1.14 KB
/
parameters.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
#ifndef PARAMETERS_H
#define PARAMETERS_H
#include <QDialog>
namespace Ui {
class Parameters;
}
class Parameters : public QDialog
{
Q_OBJECT
public:
explicit Parameters(QWidget *parent = nullptr);
~Parameters();
signals:
void dialog_accepted();
private slots:
void on_buttonBox_accepted();
void on_buttonBox_rejected();
void on_positionalDamping_valueChanged(double arg1);
void on_gravityValue_valueChanged(double arg1);
void showEvent(QShowEvent *);
void on_timestepValue_valueChanged(double arg1);
void on_implictEulerValue_clicked(bool checked);
void on_mass_valueChanged(double arg1);
void on_stiffness_valueChanged(double arg1);
public:
// Actual stored parameters
float m_gravity;
float m_positional_damping;
float m_mass;
float m_timestep;
float m_stiffness;
bool m_implicit;
private:
Ui::Parameters *ui;
// Temp parameters, only applied when (OK) button is clicked
float m_gravity_new;
float m_positional_damping_new;
float m_mass_new;
float m_timestep_new;
float m_stiffness_new;
bool m_implicit_new;
};
#endif // PARAMETERS_H