-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
63 lines (45 loc) · 1.45 KB
/
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QSlider>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void setX(double value);
void setY(double value);
void setZ(double value);
void setPHI(double value);
void setTHETA(double value);
void setPSI(double value);
private slots:
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_Slider_X_valueChanged(int value);
void on_Slider_Y_valueChanged(int value);
void on_Slider_Z_valueChanged(int value);
void on_Slider_PHI_valueChanged(int value);
void on_Slider_THETA_valueChanged(int value);
void on_Slider_PSI_valueChanged(int value);
void on_pushButton_3_clicked();
private:
Ui::MainWindow *ui;
double X;//= 1.0*(ui->Slider_X->value());
double Y;//= 1.0*(ui ->Slider_Y ->value());
double Z;//= 1.0*(ui ->Slider_Z -> value());
double phi;//= deg2rad*(ui->Slider_PHI ->value()) ;//-0.087266462599717;
double theta;//= deg2rad*(ui ->Slider_THETA ->value());//0.226892802759263;
double psi;// = deg2rad*(ui ->Slider_PSI -> value());//0.2;//0.191986217719376;
QSlider *Slider_X; // declare Slider_X as a member of the class
QSlider *Slider_Y;
QSlider *Slider_Z;
QSlider *Slider_PHI;
QSlider *Slider_THETA;
QSlider *Slider_PSI;
};
#endif // MAINWINDOW_H