OGS
Layers2GridDialog.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 <string>
9#include <vector>
10
12#include "ui_Layers2Grid.h"
13
14class MeshModel;
15
16/*
17 * \brief A dialog window for calling methods to create a 3D Voxelgrid from
18 * multiple 2D vtu meshes
19 */
20class Layers2GridDialog : public QDialog, private Ui_Layers2Grid
21{
22 Q_OBJECT
23
24public:
25 explicit Layers2GridDialog(MeshModel& mesh_model,
26 QDialog* parent = nullptr);
27
28private:
30 QStringListModel _layeredMeshes;
31 QStringListModel _neglectedMeshes;
32
33private slots:
35 void accept() override;
37 void reject() override { this->done(QDialog::Rejected); };
51};
void reject() override
Instructions if the Cancel-Button has been pressed.
void on_upOrderButton_pressed()
Instructions if the "↑"-button has been pressed.
void on_downOrderButton_pressed()
Instructions if the "↓"-button has been pressed.
void on_deleteMeshButton_pressed()
Instructions if the ">>" button has been pressed.
void accept() override
Instructions if the OK-Button has been pressed.
QStringListModel _neglectedMeshes
void on_orderButton_pressed()
Instructions if the "order mesh"-button has been pressed.
QStringListModel _layeredMeshes
Layers2GridDialog(MeshModel &mesh_model, QDialog *parent=nullptr)
void updateExpectedVoxel()
As the x/y/z input changes an estimation of the expected Voxel is given.