OGS
AddFaultsToVoxelGridDialog.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_AddFaultsToVoxelGrid.h"
12
13class MeshModel;
14
15/*
16 * \brief A dialog window for calling methods to include one or multiple
17 * faults in a 3D voxelgrid.
18 */
19class AddFaultsToVoxelGridDialog : public QDialog,
20 private Ui_AddFaultsToVoxelGrid
21{
22 Q_OBJECT
23
24public:
25 explicit AddFaultsToVoxelGridDialog(MeshModel& mesh_model,
26 QDialog* parent = nullptr);
27
28private:
30 QStringListModel _voxelGrids;
31 QStringListModel _meshes2D;
32 QStringListModel _selFaults;
33
34private slots:
36 void accept() override;
38 void reject() override { this->done(QDialog::Rejected); };
43};
AddFaultsToVoxelGridDialog(MeshModel &mesh_model, QDialog *parent=nullptr)
void on_selectDataButton_pressed()
Instructions if the ">>-button" has been pressed.
void reject() override
Instructions if the Cancel-Button has been pressed.
void accept() override
Instructions if the OK-Button has been pressed.
void on_deselectDataButton_pressed()
Instructions if the "<<-button" has been pressed.