OGS
TranslateDataDialog.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
12#include "ui_TranslateData.h"
13
14namespace MeshLib
15{
16class Mesh;
17}
18
19class MeshModel;
20
21class GEOModels;
22
26class TranslateDataDialog : public QDialog, private Ui_TranslateData
27{
28 Q_OBJECT
29
30public:
31 explicit TranslateDataDialog(MeshModel* mesh_model,
32 GEOModels* geo_models,
33 QDialog* parent = nullptr);
34
35private:
36 void moveGeometry(Eigen::Vector3d const& displacement,
37 std::string const& name);
38 void moveMesh(Eigen::Vector3d const& displacement, std::string const& name);
41 QStringListModel _allData;
42 QStringListModel _selData;
43
44private slots:
46 void accept() override;
48 void reject() override { this->done(QDialog::Rejected); };
53
54signals:
55 void meshAdded(MeshLib::Mesh const* mesh);
56};
GEOModels connects the data management class GEOObjects and the GUI. It inherits from GeoLib::GEOObje...
Definition GEOModels.h:26
void accept() override
Instructions if the OK-Button has been pressed.
QStringListModel _allData
void meshAdded(MeshLib::Mesh const *mesh)
QStringListModel _selData
void moveGeometry(Eigen::Vector3d const &displacement, std::string const &name)
TranslateDataDialog(MeshModel *mesh_model, GEOModels *geo_models, QDialog *parent=nullptr)
void moveMesh(Eigen::Vector3d const &displacement, std::string const &name)
void on_deselectDataButton_pressed()
Instructions if the "<<-button" has been pressed.
void reject() override
Instructions if the Cancel-Button has been pressed.
void on_selectDataButton_pressed()
Instructions if the ">>-button" has been pressed.