-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.h
44 lines (37 loc) · 890 Bytes
/
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
#pragma once
#include <array>
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class DrawingElement;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget* parent = 0);
~MainWindow();
void show();
private:
Ui::MainWindow* ui;
void readPointFromTextBoxes(bool* success, float* x, float* y, float* z);
DrawingElement* convexHull;
std::array<DrawingElement*, 2> bsplines;
DrawingElement* singlePNTriangle;
std::array<DrawingElement*, 8> pnoctahedron;
DrawingElement* subdivisionCurve;
DrawingElement* mesh3;
public slots:
void slotExit();
void slotAddPoint();
void slotClearPoints();
void slotGenerateCube();
void slotGenerateSphere();
void slotShowConvexHull();
void slotShowBSpline3();
void slotShowBSpline2();
void slotShowPNTriangle();
void slotShowOctahedronSphere();
void slotShowSubdivisionCurve();
void slotOpenMesh3();
};