OGS
|
A dialog for selecting a mesh quality metric.
Definition at line 27 of file MeshQualitySelectionDialog.h.
#include <MeshQualitySelectionDialog.h>
Public Member Functions | |
MeshQualitySelectionDialog (QDialog *parent=nullptr) | |
Constructor. | |
~MeshQualitySelectionDialog () override | |
MeshLib::MeshQualityType | getSelectedMetric () const |
Returns selected metric. | |
bool | getHistogram () const |
Returns true if a histogram needs to be calculated. | |
std::string | getHistogramPath () const |
Returns selected path for histogram (or empty string if no histogram is required) | |
Private Slots | |
void | on_histogramCheckBox_toggled (bool is_checked) const |
void | on_histogramPathButton_pressed () |
void | accept () override |
Instructions if the OK-Button has been pressed. | |
void | reject () override |
Instructions if the Cancel-Button has been pressed. | |
Private Attributes | |
MeshLib::MeshQualityType | _metric {MeshLib::MeshQualityType::EDGERATIO} |
std::string | _histogram_path |
|
explicit |
Constructor.
Definition at line 24 of file MeshQualitySelectionDialog.cpp.
|
overridedefault |
|
overrideprivateslot |
Instructions if the OK-Button has been pressed.
Definition at line 51 of file MeshQualitySelectionDialog.cpp.
References _histogram_path, _metric, OGSError::box(), MeshLib::EDGERATIO, MeshLib::ELEMENTSIZE, MeshLib::EQUIANGLESKEW, MeshLib::INVALID, MeshLib::RADIUSEDGERATIO, and MeshLib::SIZEDIFFERENCE.
|
inline |
Returns true if a histogram needs to be calculated.
Definition at line 39 of file MeshQualitySelectionDialog.h.
Referenced by MainWindow::showMeshQualitySelectionDialog().
|
inline |
Returns selected path for histogram (or empty string if no histogram is required)
Definition at line 42 of file MeshQualitySelectionDialog.h.
References _histogram_path.
Referenced by MainWindow::showMeshQualitySelectionDialog().
|
inline |
Returns selected metric.
Definition at line 36 of file MeshQualitySelectionDialog.h.
References _metric.
Referenced by MainWindow::showMeshQualitySelectionDialog().
|
privateslot |
Definition at line 33 of file MeshQualitySelectionDialog.cpp.
|
privateslot |
Definition at line 40 of file MeshQualitySelectionDialog.cpp.
|
overrideprivateslot |
Instructions if the Cancel-Button has been pressed.
Definition at line 92 of file MeshQualitySelectionDialog.cpp.
|
private |
Definition at line 46 of file MeshQualitySelectionDialog.h.
Referenced by accept(), and getHistogramPath().
|
private |
Definition at line 45 of file MeshQualitySelectionDialog.h.
Referenced by accept(), and getSelectedMetric().