ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvAskThreeDoubleValuesDlg.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_askThreeDoubleValuesDlg.h>
11 
12 // Qt
13 #include <QString>
14 
16 class ccAskThreeDoubleValuesDlg : public QDialog,
17  public Ui::AskThreeDoubleValuesDialog {
18  Q_OBJECT
19 
20 public:
22  ccAskThreeDoubleValuesDlg(const QString& vName1,
23  const QString& vName2,
24  const QString& vName3,
25  double minVal,
26  double maxVal,
27  double defaultVal1,
28  double defaultVal2,
29  double defaultVal3,
30  int precision = 6,
31  const QString windowTitle = QString(),
32  QWidget* parent = nullptr);
33 
35  void showCheckbox(const QString& label,
36  bool state,
37  QString tooltip = QString());
38 
40  bool getCheckboxState() const;
41 };
Generic dialog to query 3 (double) values.
ccAskThreeDoubleValuesDlg(const QString &vName1, const QString &vName2, const QString &vName3, double minVal, double maxVal, double defaultVal1, double defaultVal2, double defaultVal3, int precision=6, const QString windowTitle=QString(), QWidget *parent=nullptr)
Default constructor.
void showCheckbox(const QString &label, bool state, QString tooltip=QString())
Enable the checkbox (bottom-left)