-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
91 lines (55 loc) · 1.79 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
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
#pragma once
#include <QMainWindow>
#include <QResizeEvent>
#include <QProgressDialog>
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
class QListWidget;
class QListWidgetItem;
QT_END_NAMESPACE
namespace Mpcv {
class TexturedMesh;
}
class OpenGLWidget;
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget* parent = nullptr);
~MainWindow();
bool open(const QString& file);
void openAll(const std::vector<QString>& file);
static Mpcv::TexturedMesh loadMesh(const QString& file, std::function<bool(float)> progress);
private slots:
void on_MeshList_itemChanged(QListWidgetItem* item);
void on_actionOpenFile_triggered();
void on_actionShowWireframe_changed();
void on_actionShowDots_changed();
void on_actionScreenshot_triggered();
void on_actionLaplacian_smoothing_triggered();
void on_actionRepair_triggered();
void on_actionQuit_triggered();
void on_actionSave_triggered();
void on_actionAo_triggered();
void on_actionGrid_triggered();
void on_actionTexture_triggered();
void on_actionFlat_triggered();
void on_actionResetCamera_triggered();
void on_actionEstimate_normals_triggered();
void on_actionRender_view_triggered();
void on_actionSun_setup_triggered();
void on_actionControls_triggered();
void on_actionWindows_triggered();
void on_actionOrient_normals_triggered();
void on_actionClasses_triggered();
void on_actionBuid_configuration_triggered();
void on_actionCameraUp_triggered();
private:
Ui::MainWindow* ui_;
OpenGLWidget* viewport_;
QListWidget* list_;
void buttonPushed(QAction* pushed);
bool open(const QString& file, QProgressDialog* dialog);
QProgressDialog* createProgressDialog(const QString& message);
};