OGS
MeshElementRemovalDialog.h
Go to the documentation of this file.
1
15#pragma once
16
17#include "ui_MeshElementRemoval.h"
18
19#include <QDialog>
20#include <array>
21
23
24
26{
27class Project;
28}
29
30namespace MeshLib {
31class Mesh;
32}
33
37class MeshElementRemovalDialog : public QDialog, private Ui_MeshElementRemoval
38{
39 Q_OBJECT
40
41public:
43 QDialog* parent = nullptr);
45
46private slots:
47 void on_boundingBoxCheckBox_toggled(bool is_checked);
48 void on_invertBoundingBoxCheckBox_toggled(bool const is_checked);
49 void on_elementTypeCheckBox_toggled(bool is_checked);
50 void on_scalarArrayCheckBox_toggled(bool is_checked);
51 void on_insideButton_toggled(bool is_checked);
54 void on_xMinEdit_textChanged() { aabb_edits[0] = true; }
55 void on_xMaxEdit_textChanged() { aabb_edits[1] = true; }
56 void on_yMinEdit_textChanged() { aabb_edits[2] = true; }
57 void on_yMaxEdit_textChanged() { aabb_edits[3] = true; }
58 void on_zMinEdit_textChanged() { aabb_edits[4] = true; }
59 void on_zMaxEdit_textChanged() { aabb_edits[5] = true; }
60 void accept() override;
61 void reject() override;
62
63private:
64 std::size_t addScalarArrays(MeshLib::Mesh const& mesh) const;
65 void enableScalarArrayWidgets(bool enable) const;
66
67 template <typename T>
69
70 void toggleScalarEdits(bool outside) const;
71
74 std::array<bool, 6> aabb_edits;
75
76signals:
78};
A dialog window for settung up a database connection.
~MeshElementRemovalDialog() override
void setRangeValues(MeshLib::PropertyVector< T > const &vec)
void on_elementTypeCheckBox_toggled(bool is_checked)
MeshElementRemovalDialog(DataHolderLib::Project const &project, QDialog *parent=nullptr)
Constructor.
void toggleScalarEdits(bool outside) const
DataHolderLib::Project const & _project
void on_insideButton_toggled(bool is_checked)
void on_invertBoundingBoxCheckBox_toggled(bool const is_checked)
void meshAdded(MeshLib::Mesh *mesh)
void on_scalarArrayCheckBox_toggled(bool is_checked)
void on_scalarArrayComboBox_currentIndexChanged(int idx)
std::size_t addScalarArrays(MeshLib::Mesh const &mesh) const
void enableScalarArrayWidgets(bool enable) const
void on_boundingBoxCheckBox_toggled(bool is_checked)