OGS
MeshQualitySelectionDialog.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 "ui_MeshQualitySelection.h"
7
8#include <QDialog>
9#include "MeshLib/MeshEnums.h"
10
11class VtkMeshSource;
12
16class MeshQualitySelectionDialog : public QDialog, private Ui_MeshQualitySelection
17{
18 Q_OBJECT
19
20public:
21 explicit MeshQualitySelectionDialog(QDialog* parent = nullptr);
23
26
28 bool getHistogram() const { return this->histogramCheckBox->isChecked(); }
29
31 std::string getHistogramPath() const { return _histogram_path; }
32
33private:
35 std::string _histogram_path;
36
37private slots:
38 void on_histogramCheckBox_toggled(bool is_checked) const;
40
41 void accept() override;
42 void reject() override;
43};
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:80