OGS
SurfaceExtractionDialog.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
5
6#include <QDoubleValidator>
7
9 : QDialog(parent)
10{
11 setupUi(this);
12 this->xNormalEdit->setValidator(
13 new QDoubleValidator(-1, 1, 3, xNormalEdit));
14 this->yNormalEdit->setValidator(
15 new QDoubleValidator(-1, 1, 3, yNormalEdit));
16 this->zNormalEdit->setValidator(
17 new QDoubleValidator(-1, 1, 3, zNormalEdit));
18}
19
21{
22 _dir = Eigen::Vector3d({xNormalEdit->text().toDouble(),
23 yNormalEdit->text().toDouble(),
24 zNormalEdit->text().toDouble()});
25 _tolerance = degreesSpinBox->text().toInt();
26
27 this->done(QDialog::Accepted);
28}
void accept() override
Instructions if the OK-Button has been pressed.
SurfaceExtractionDialog(QDialog *parent=nullptr)