ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
profileImportDlg.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 "profileImportDlg.h"
9 
10 // Qt
11 #include <QFileDialog>
12 
13 // System
14 #include <assert.h>
15 
16 static double s_joints = 4; // Estimated mortar joints width in cm
17 
18 static double s_horizontal = 3; // Segmentation window in metres (X axis)
19 static double s_vertical = 2; // Segmentation window in metres (Z axis)
20 
22  : QDialog(parent, Qt::Tool), Ui::ProfileImportDlg() {
23  setupUi(this);
24 
25  connect(buttonBox, SIGNAL(accepted()), this, SLOT(saveSettings));
26  jointsSpinBox->setValue(s_joints);
27  segmentHSpinBox->setValue(s_horizontal);
28  segmentVSpinBox->setValue(s_vertical);
29  alignmentCheckBox->setChecked(true);
30  alignmentCheckBox->setDisabled(true);
31  this->setWindowTitle("Automatic Segmentation plugin");
32 }
33 
35  s_joints = jointsSpinBox->value();
36  s_horizontal = segmentHSpinBox->value();
37  s_vertical = segmentVSpinBox->value();
38 }
Dialog for importing a 2D revolution profile (qSRA plugin)
void saveSettings()
Save settings.
ProfileImportDlg(QWidget *parent=0)
Default constructor.
static double s_vertical
static double s_horizontal
static double s_joints