OGS
Vtu2GridDialog.h
Go to the documentation of this file.
1
14#pragma once
15
16#include <QDialog>
17#include <QStringListModel>
18#include <memory>
19
21#include "ui_Vtu2Grid.h"
22
23class MeshModel;
24
25/*
26 * \brief A dialog window for calling methods to create a 3D Voxelgrid from
27 * multiple 2D vtu meshes
28 */
29class Vtu2GridDialog : public QDialog, private Ui_Vtu2Grid
30{
31 Q_OBJECT
32
33public:
34 explicit Vtu2GridDialog(MeshModel& mesh_model, QDialog* parent = nullptr);
35
36private:
38 QStringListModel _allMeshes;
39
40private slots:
42 void accept() override;
44 void reject() override { this->done(QDialog::Rejected); };
50};
Definition of ElementErrorCodes.
void on_xlineEdit_textChanged()
Vtu2GridDialog(MeshModel &mesh_model, QDialog *parent=nullptr)
void on_zlineEdit_textChanged()
void updateExpectedVoxel()
As the x/y/z input changes an estimation of the expected Voxel is given.
MeshModel & _mesh_model
void on_ylineEdit_textChanged()
void accept() override
Instructions if the OK-Button has been pressed.
void reject() override
Instructions if the Cancel-Button has been pressed.
QStringListModel _allMeshes