-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwindow.h
109 lines (77 loc) · 2.09 KB
/
window.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#ifndef WINDOW_H
#define WINDOW_H
#include <QMainWindow>
#include <QDebug>
#include <QLabel>
#include <QVBoxLayout>
#include "scene3d.h"
#include "scene2d.h"
#include "sceneanimation.h"
#include "apidrawer.h"
namespace Ui {
class Window;
}
class Window : public QMainWindow
{
Q_OBJECT
public:
explicit Window(QWidget *parent = nullptr);
~Window();
enum Mode{
DRAW_LINE,
DRAW_CIRCLE,
DRAW_ELLIPSE,
DRAW_RECT,
SELECT_ITEMS
};
Mode getMode();
int getDxTrans() const;
int getDyTrans() const;
int getXRotate() const;
int getYRotate() const;
int getAngleRotate() const;
float getSXScale() const;
float getSYScale() const;
int getXScale() const;
int getYScale() const;
int getXReflection() const;
int getYReflection() const;
int getDelay() const;
bool isPauseAtEnd() const;
bool isStopAtEachFrame() const;
bool isRulerOn() const;
void showMousePos(const QPoint &pos);
void setMode(Mode mode);
void setEnableFillButton(bool enable);
void setThickness(int value);
void setOpenFileName(const QString &fileName);
private slots:
void on_changeColorBtn_clicked();
void on_deleteBtn_clicked();
void on_clearSceneBtn_clicked();
void on_translateBtn_clicked();
void on_scaleBtn_clicked();
void on_rolateBtn_clicked();
void on_reflecBtn_clicked();
void on_tabWidget_currentChanged(int index);
void on_addCubeBtn_clicked();
void on_cavalier_toggled(bool checked);
void on_clear3Dbtn_clicked();
void on_addSphereBtn_clicked();
void on_fillColorBtn_clicked();
void on_playBtn_clicked();
void on_verticalSlider_valueChanged(int value);
void on_addCylinder_clicked();
void on_toTextFileBtn_clicked();
void on_openSceneBtn_clicked();
void on_addFrameBtn_clicked();
void on_nextFrameBtn_clicked();
void on_readTextFileBtn_clicked();
void on_showRuler_clicked();
private:
Ui::Window *ui;
Scene2D *scene2d;
Scene3D *scene3d;
SceneAnimation *sceneAnimation;
};
#endif // WINDOW_H