OGS
MeshAnalysisDialog.h
Go to the documentation of this file.
1
15#pragma once
16
17#include <memory>
18
19#include "ui_MeshAnalysis.h"
20#include <QDialog>
21
23
24namespace MeshLib {
25 class Mesh;
26}
27
31class MeshAnalysisDialog : public QDialog, private Ui_MeshAnalysis
32{
33 Q_OBJECT
34
35public:
36 explicit MeshAnalysisDialog(
37 std::vector<std::unique_ptr<MeshLib::Mesh>> const& mesh_vec,
38 QDialog* parent = nullptr);
40
41private:
43 void nodesMsgOutput(std::vector<std::size_t> const& node_ids, std::vector<std::size_t> const& collapsibleNodeIds);
44
46 void elementsMsgOutput(const std::vector<ElementErrorCode> &error_codes);
47
48 std::vector<std::unique_ptr<MeshLib::Mesh>> const& _mesh_vec;
49
50private slots:
53
55 void on_closeButton_pressed() { this->close(); }
56};
Definition of ElementErrorCodes.
A dialog window for calling mesh analysis methods.
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.