ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
DONSegmentationDlg.cpp
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 #include "DONSegmentationDlg.h"
9 
11  : QDialog(parent, Qt::Tool), Ui::DONSegmentationDlg() {
12  setupUi(this);
13  buttonGroup->setExclusive(true);
14  buttonGroup->setId(curvatureRadioButton, 0);
15  buttonGroup->setId(xRadioButton, 1);
16  buttonGroup->setId(yRadioButton, 2);
17  buttonGroup->setId(zRadioButton, 3);
18 }
19 
21  return buttonGroup->checkedButton()->text();
22 }
23 
24 void DONSegmentationDlg::getComparisonTypes(QStringList& types) {
25  types.clear();
26  if (equalCheckBox->isChecked()) {
27  if (greaterCheckBox->isChecked()) {
28  types << "GE";
29  }
30 
31  if (lessThanCheckBox->isChecked()) {
32  types << "LE";
33  }
34 
35  if (!greaterCheckBox->isChecked() && !lessThanCheckBox->isChecked()) {
36  types << "EQ";
37  }
38  } else {
39  if (greaterCheckBox->isChecked()) {
40  types << "GT";
41  }
42 
43  if (lessThanCheckBox->isChecked()) {
44  types << "LT";
45  }
46  }
47 }
DONSegmentationDlg(QWidget *parent=0)
void getComparisonTypes(QStringList &types)
const QString getComparisonField()