OGS
MeshQualitySelectionDialog.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 #include "ui_MeshQualitySelection.h"
18 
19 #include <QDialog>
20 #include "MeshLib/MeshEnums.h"
21 
22 class VtkMeshSource;
23 
27 class MeshQualitySelectionDialog : public QDialog, private Ui_MeshQualitySelection
28 {
29  Q_OBJECT
30 
31 public:
32  explicit MeshQualitySelectionDialog(QDialog* parent = nullptr);
34 
37 
39  bool getHistogram() const { return this->histogramCheckBox->isChecked(); }
40 
42  std::string getHistogramPath() const { return _histogram_path; }
43 
44 private:
46  std::string _histogram_path;
47 
48 private slots:
49  void on_histogramCheckBox_toggled(bool is_checked) const;
51 
52  void accept() override;
53  void reject() override;
54 };
Definition of mesh-related Enumerations.
A dialog for selecting a mesh quality metric.
MeshLib::MeshQualityType _metric
std::string getHistogramPath() const
Returns selected path for histogram (or empty string if no histogram is required)
bool getHistogram() const
Returns true if a histogram needs to be calculated.
~MeshQualitySelectionDialog() override
void accept() override
Instructions if the OK-Button has been pressed.
MeshQualitySelectionDialog(QDialog *parent=nullptr)
Constructor.
MeshLib::MeshQualityType getSelectedMetric() const
Returns selected metric.
void reject() override
Instructions if the Cancel-Button has been pressed.
void on_histogramCheckBox_toggled(bool is_checked) const
MeshQualityType
Describes a mesh quality metric.
Definition: MeshEnums.h:70