Debian Codegraph @

plugins/core/Standard/qCork/include/ccCorkDlg.h

raw
1 //##########################################################################
2 //# #
3 //# CLOUDCOMPARE PLUGIN: qCork #
4 //# #
5 //# This program is free software; you can redistribute it and/or modify #
6 //# it under the terms of the GNU General Public License as published by #
7 //# the Free Software Foundation; version 2 or later of the License. #
8 //# #
9 //# This program is distributed in the hope that it will be useful, #
10 //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
11 //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
12 //# GNU General Public License for more details. #
13 //# #
14 //# COPYRIGHT: Daniel Girardeau-Montaut #
15 //# #
16 //##########################################################################
17
18 #ifndef CC_CORK_DLG_HEADER
19 #define CC_CORK_DLG_HEADER
20
21 #include "ui_corkDlg.h"
22
23 //! Dialog for qCork plugin
24 class ccCorkDlg : public QDialog, public Ui::CorkDialog
25 {
26 Q_OBJECT
27
28 public:
29
30 //! Default constructor
31 explicit ccCorkDlg(QWidget* parent/*=nullptr*/);
32
33 //! Supported CSG operations
34 enum CSG_OPERATION { UNION, INTERSECT, DIFF, SYM_DIFF };
35
36 //! Set meshes names
37 void setNames(QString A, QString B);
38
39 //! Returns the selected operation
40 CSG_OPERATION getSelectedOperation() const { return m_selectedOperation; }
41
42 //! Returns whether mesh order has been swappped or not
43 bool isSwapped() const { return m_isSwapped; }
44
45 protected Q_SLOTS:
46
47 void unionSelected();
48 void intersectSelected();
49 void diffSelected();
50 void symDiffSelected();
51 void swap();
52
53 protected:
54
55 CSG_OPERATION m_selectedOperation;
56 bool m_isSwapped;
57 };
58
59 #endif //CC_CORK_DLG_HEADER