ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccCorkDlg.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include "ui_corkDlg.h"
11 
13 class ccCorkDlg : public QDialog, public Ui::CorkDialog {
14  Q_OBJECT
15 
16 public:
18  explicit ccCorkDlg(QWidget* parent = 0);
19 
22 
24  void setNames(QString A, QString B);
25 
28 
30  bool isSwapped() const { return m_isSwapped; }
31 
32 protected slots:
33 
34  void unionSelected();
35  void intersectSelected();
36  void diffSelected();
37  void symDiffSelected();
38  void swap();
39 
40 protected:
43 };
#define slots
Dialog for qCork plugin.
Definition: ccCorkDlg.h:13
void symDiffSelected()
Definition: ccCorkDlg.cpp:46
CSG_OPERATION
Supported CSG operations.
Definition: ccCorkDlg.h:21
@ INTERSECT
Definition: ccCorkDlg.h:21
@ SYM_DIFF
Definition: ccCorkDlg.h:21
void swap()
Definition: ccCorkDlg.cpp:51
void diffSelected()
Definition: ccCorkDlg.cpp:41
void intersectSelected()
Definition: ccCorkDlg.cpp:36
CSG_OPERATION m_selectedOperation
Definition: ccCorkDlg.h:41
ccCorkDlg(QWidget *parent=0)
Default constructor.
Definition: ccCorkDlg.cpp:10
CSG_OPERATION getSelectedOperation() const
Returns the selected operation.
Definition: ccCorkDlg.h:27
void setNames(QString A, QString B)
Set meshes names.
Definition: ccCorkDlg.cpp:26
void unionSelected()
Definition: ccCorkDlg.cpp:31
bool m_isSwapped
Definition: ccCorkDlg.h:42
bool isSwapped() const
Returns whether mesh order has been swappped or not.
Definition: ccCorkDlg.h:30