OGS
SurfaceExtractionDialog.cpp
Go to the documentation of this file.
1
16
17#include <QDoubleValidator>
18
20 : QDialog(parent)
21{
22 setupUi(this);
23 this->xNormalEdit->setValidator(
24 new QDoubleValidator(-1, 1, 3, xNormalEdit));
25 this->yNormalEdit->setValidator(
26 new QDoubleValidator(-1, 1, 3, yNormalEdit));
27 this->zNormalEdit->setValidator(
28 new QDoubleValidator(-1, 1, 3, zNormalEdit));
29}
30
32{
33 _dir = Eigen::Vector3d({xNormalEdit->text().toDouble(),
34 yNormalEdit->text().toDouble(),
35 zNormalEdit->text().toDouble()});
36 _tolerance = degreesSpinBox->text().toInt();
37
38 this->done(QDialog::Accepted);
39}
Definition of the SurfaceExtractionDialog class.
void accept() override
Instructions if the OK-Button has been pressed.
SurfaceExtractionDialog(QDialog *parent=nullptr)