OGS
SurfaceExtractionDialog.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <Eigen/Core>
7#include <QDialog>
8
9#include "ui_SurfaceExtraction.h"
10
11namespace MeshLib {
12 class Mesh;
13}
14
18class SurfaceExtractionDialog : public QDialog, private Ui_SurfaceExtraction
19{
20 Q_OBJECT
21
22public:
23 explicit SurfaceExtractionDialog(QDialog* parent = nullptr);
24 ~SurfaceExtractionDialog() override = default;
25
26 int getTolerance() const { return _tolerance; }
27 Eigen::Vector3d const& getNormal() const { return _dir; }
28
29private slots:
31 void accept() override;
32
34 void reject() override { this->done(QDialog::Rejected); };
35
36private:
37 int _tolerance{90};
38 Eigen::Vector3d _dir{0, 0, -1};
39};
void reject() override
Instructions if the Cancel-Button has been pressed.
~SurfaceExtractionDialog() override=default
void accept() override
Instructions if the OK-Button has been pressed.
Eigen::Vector3d const & getNormal() const
SurfaceExtractionDialog(QDialog *parent=nullptr)