OGS
SurfaceExtractionDialog.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 #include "ui_SurfaceExtraction.h"
18 #include <QDialog>
19 
20 namespace MeshLib {
21  class Mesh;
22 }
23 
27 class SurfaceExtractionDialog : public QDialog, private Ui_SurfaceExtraction
28 {
29  Q_OBJECT
30 
31 public:
32  explicit SurfaceExtractionDialog(QDialog* parent = nullptr);
33  ~SurfaceExtractionDialog() override = default;
34 
35  int getTolerance() const { return _tolerance; }
36  Eigen::Vector3d const& getNormal() const { return _dir; }
37 
38 private slots:
40  void accept() override;
41 
43  void reject() override { this->done(QDialog::Rejected); };
44 
45 private:
46  int _tolerance{90};
47  Eigen::Vector3d _dir{0, 0, -1};
48 };
A dialog window for managing properties for writing meshes to files.
void reject() override
Instructions if the Cancel-Button has been pressed.
Eigen::Vector3d const & getNormal() const
~SurfaceExtractionDialog() override=default
void accept() override
Instructions if the OK-Button has been pressed.
SurfaceExtractionDialog(QDialog *parent=nullptr)