ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccCSFDlg.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 "ccCSFDlg.h"
9 
10 // CV_DB_LIB
11 #include <ecvOctree.h>
12 
13 static int MaxIteration = 500;
14 static double cloth_resolution = 1.5;
15 static double class_threshold = 0.5;
16 ccCSFDlg::ccCSFDlg(QWidget* parent) : QDialog(parent), Ui::CSFDialog() {
17  setupUi(this);
18 
19  connect(buttonBox, &QDialogButtonBox::accepted, this,
21 
22  setWindowFlags(Qt::Tool /*Qt::Dialog | Qt::WindowStaysOnTopHint*/);
23 
24  MaxIterationSpinBox->setValue(MaxIteration);
25  cloth_resolutionSpinBox->setValue(cloth_resolution);
26  class_thresholdSpinBox->setValue(class_threshold);
27 }
28 
30  MaxIteration = MaxIterationSpinBox->value();
31  cloth_resolution = cloth_resolutionSpinBox->value();
32  class_threshold = class_thresholdSpinBox->value();
33 }
static double cloth_resolution
Definition: ccCSFDlg.cpp:14
static double class_threshold
Definition: ccCSFDlg.cpp:15
static int MaxIteration
Definition: ccCSFDlg.cpp:13
ccCSFDlg(QWidget *parent=0)
Default constructor.
Definition: ccCSFDlg.cpp:16
void saveSettings()
Saves (temporarily) the dialog parameters on acceptation.
Definition: ccCSFDlg.cpp:29