-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.h
More file actions
50 lines (41 loc) · 1.02 KB
/
MainWindow.h
File metadata and controls
50 lines (41 loc) · 1.02 KB
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QVariant>
namespace Ui {
class MainWindow;
}
class QTreeWidgetItem;
class Mesh;
class Cloth;
class Plane;
class Sphere;
class Node;
class Material;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void onInitialized();
void onValueChanged(double value);
void onSearch();
void onCurrentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
void onCurrentMeshChanged(Mesh* mesh);
void onToggleWireframe();
void onReleaseCloth();
void onToggleFlag();
void onResetCloth();
private:
void _loadSceneTree();
void _loadNode(QTreeWidgetItem* parent, Node *current);
Ui::MainWindow* ui;
Cloth* _cloth;
Material* _matOriginal;
Material* _matFlag;
Plane* _plane;
Sphere* _sphere;
};
#endif // MAINWINDOW_H