OGS
Vtu2GridDialog.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 <QDialog>
7#include <QStringListModel>
8#include <memory>
9
11#include "ui_Vtu2Grid.h"
12
13class MeshModel;
14
15/*
16 * \brief A dialog window for calling methods to create a 3D Voxelgrid from
17 * multiple 2D vtu meshes
18 */
19class Vtu2GridDialog : public QDialog, private Ui_Vtu2Grid
20{
21 Q_OBJECT
22
23public:
24 explicit Vtu2GridDialog(MeshModel& mesh_model, QDialog* parent = nullptr);
25
26private:
28 QStringListModel _allMeshes;
29
30private slots:
32 void accept() override;
34 void reject() override { this->done(QDialog::Rejected); };
40};
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