-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditsystemdialog.hpp
59 lines (45 loc) · 1.35 KB
/
editsystemdialog.hpp
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
#ifndef EDITSYSTEMDIALOG_HPP
#define EDITSYSTEMDIALOG_HPP
#include "vec.hpp"
#include <QDialog>
#include <QGLWidget>
#include <vector>
namespace Ui {
class EditSystemDialog;
}
class EditSystemDialog : public QDialog
{
Q_OBJECT
public:
explicit EditSystemDialog(QWidget *parent = 0);
~EditSystemDialog();
std::vector<Vec3f> *mpVertices;
std::vector<GLfloat> *mpObjVertices;
private:
void setUpEditObjDialog();
void createConnections();
Vec3f findCenter();
Ui::EditSystemDialog *ui;
std::vector<GLfloat> mObjVerticesInitPos;
std::vector<Vec3f> mVerticesInitPos;
int mPrevXShift;
int mPrevYShift;
int mPrevZShift;
int mPrevXRotate;
int mPrevYRotate;
int mPrevZRotate;
private slots:
void transX(int state);
void transY(int state);
void transZ(int state);
void rotateX(int state);
void rotateY(int state);
void rotateZ(int state);
void sliderReleased();
void sliderPressed();
void stickObjectToTetsStateChanged(int state);
signals:
void objectEdited();
void stickObjectToTetsStateChangedSignal(int state);
};
#endif // EDITSYSTEMDIALOG_HPP