File: MainWindow.h

package info (click to toggle)
cgal 6.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 144,952 kB
  • sloc: cpp: 811,597; ansic: 208,576; sh: 493; python: 411; makefile: 286; javascript: 174
file content (62 lines) | stat: -rw-r--r-- 1,654 bytes parent folder | download | duplicates (2)
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <CGAL/Qt/DemosMainWindow.h>

class QDragEnterEvent;
class QDropEvent;
class Scene;
class Viewer;
namespace Ui {
        class MainWindow;
}


class MainWindow :
        public CGAL::Qt::DemosMainWindow
{
        Q_OBJECT
public:
        MainWindow(QWidget* parent = nullptr);
        ~MainWindow();

        public slots:
                void updateViewerBBox();
                void open(QString filename);
                void setAddKeyFrameKeyboardModifiers(Qt::KeyboardModifiers);

                protected slots:

                        // settings
                        void quit();
                        void readSettings();
                        void writeSettings();

                        // drag & drop
                        void dropEvent(QDropEvent *event);
                        void closeEvent(QCloseEvent *event);
                        void dragEnterEvent(QDragEnterEvent *event);

                        // file menu
                        void on_actionLoadPolyhedron_triggered();

                        // edit menu
      void on_actionSave_snapshot_triggered();
      void on_actionCopy_snapshot_triggered();

                        // algorithm menu
      void on_actionRefine_loop_triggered();
      void on_actionFit_triangles_triggered();
      void on_actionFit_edges_triggered();
      void on_actionFit_vertices_triggered();

                        // view menu
                        void on_actionView_polyhedron_triggered();

private:
        Scene* m_pScene;
        Viewer* m_pViewer;
        Ui::MainWindow* ui;
};

#endif // ifndef MAINWINDOW_H