OGS
SurfaceExtractionDialog.h
Go to the documentation of this file.
1
15#pragma once
16
17#include <Eigen/Core>
18#include <QDialog>
19
20#include "ui_SurfaceExtraction.h"
21
22namespace MeshLib {
23 class Mesh;
24}
25
29class SurfaceExtractionDialog : public QDialog, private Ui_SurfaceExtraction
30{
31 Q_OBJECT
32
33public:
34 explicit SurfaceExtractionDialog(QDialog* parent = nullptr);
35 ~SurfaceExtractionDialog() override = default;
36
37 int getTolerance() const { return _tolerance; }
38 Eigen::Vector3d const& getNormal() const { return _dir; }
39
40private slots:
42 void accept() override;
43
45 void reject() override { this->done(QDialog::Rejected); };
46
47private:
48 int _tolerance{90};
49 Eigen::Vector3d _dir{0, 0, -1};
50};
A dialog window for managing properties for writing meshes to files.
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)