ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvAskTwoDoubleValuesDlg.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 
9 
11  const char* vName2,
12  double minVal,
13  double maxVal,
14  double defaultVal1,
15  double defaultVal2,
16  int precision /*=6*/,
17  const char* windowTitle /*=0*/,
18  QWidget* parent /*=0*/)
19  : QDialog(parent, Qt::Tool), Ui::AskTwoDoubleValuesDialog() {
20  setupUi(this);
21 
22  label1->setText(vName1);
23  label2->setText(vName2);
24  doubleSpinBox1->setDecimals(precision);
25  doubleSpinBox2->setDecimals(precision);
26  doubleSpinBox1->setRange(minVal, maxVal);
27  doubleSpinBox2->setRange(minVal, maxVal);
28  doubleSpinBox1->setValue(defaultVal1);
29  doubleSpinBox2->setValue(defaultVal2);
30 
31  if (windowTitle) setWindowTitle(windowTitle);
32 }
ccAskTwoDoubleValuesDlg(const char *vName1, const char *vName2, double minVal, double maxVal, double defaultVal1, double defaultVal2, int precision=6, const char *windowTitle=0, QWidget *parent=0)
Default constructor.