Forked from
ogs / ogs
17725 commits behind the upstream repository.
-
Dmitri Naumov authoredDmitri Naumov authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
MeshQualitySelectionDialog.h 1.39 KiB
/**
* \file
* \author Karsten Rink
* \date 2011-03-16
* \brief Definition of the MshQualitySelectionDialog class.
*
* \copyright
* Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include "MeshEnums.h"
#include "ui_MeshQualitySelection.h"
#include <QDialog>
class VtkMeshSource;
/**
* \brief A dialog for selecting a mesh quality metric
*/
class MeshQualitySelectionDialog : public QDialog, private Ui_MeshQualitySelection
{
Q_OBJECT
public:
MeshQualitySelectionDialog(QDialog* parent = nullptr);
~MeshQualitySelectionDialog(void);
/// Returns selected metric
MeshLib::MeshQualityType getSelectedMetric() const { return _metric; }
/// Returns true if a histogram needs to be calculated
bool getHistogram() const { return this->histogramCheckBox->isChecked(); }
/// Returns selected path for histogram (or empty string if no histogram is required)
std::string getHistogramPath() const { return _histogram_path; }
private:
MeshLib::MeshQualityType _metric;
std::string _histogram_path;
private slots:
void on_histogramCheckBox_toggled(bool is_checked) const;
void on_histogramPathButton_pressed();
void accept();
void reject();
};