OGS
MeshAnalysisDialog.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 <memory>
7
8#include "ui_MeshAnalysis.h"
9#include <QDialog>
10
12
13namespace MeshLib {
14 class Mesh;
15}
16
20class MeshAnalysisDialog : public QDialog, private Ui_MeshAnalysis
21{
22 Q_OBJECT
23
24public:
25 explicit MeshAnalysisDialog(
26 std::vector<std::unique_ptr<MeshLib::Mesh>> const& mesh_vec,
27 QDialog* parent = nullptr);
29
30private:
32 void nodesMsgOutput(std::vector<std::size_t> const& node_ids, std::vector<std::size_t> const& collapsibleNodeIds);
33
35 void elementsMsgOutput(const std::vector<ElementErrorCode> &error_codes);
36
37 std::vector<std::unique_ptr<MeshLib::Mesh>> const& _mesh_vec;
38
39private slots:
42
44 void on_closeButton_pressed() { this->close(); }
45};
void on_startButton_pressed()
Starts the analysis.
void on_closeButton_pressed()
Closes the dialog.
MeshAnalysisDialog(std::vector< std::unique_ptr< MeshLib::Mesh > > const &mesh_vec, QDialog *parent=nullptr)
void elementsMsgOutput(const std::vector< ElementErrorCode > &error_codes)
Prepares the output for the node message window.
~MeshAnalysisDialog() override
std::vector< std::unique_ptr< MeshLib::Mesh > > const & _mesh_vec
void nodesMsgOutput(std::vector< std::size_t > const &node_ids, std::vector< std::size_t > const &collapsibleNodeIds)
Prepares the output for the node message window.