OGS
TranslateDataDialog.h
Go to the documentation of this file.
1
14#pragma once
15
16#include <QDialog>
17#include <QStringListModel>
18#include <memory>
19
22#include "ui_TranslateData.h"
23
24namespace MeshLib
25{
26class Mesh;
27}
28
29class MeshModel;
30
31class GEOModels;
32
36class TranslateDataDialog : public QDialog, private Ui_TranslateData
37{
38 Q_OBJECT
39
40public:
41 explicit TranslateDataDialog(MeshModel* mesh_model,
42 GEOModels* geo_models,
43 QDialog* parent = nullptr);
44
45private:
46 void moveGeometry(Eigen::Vector3d const& displacement,
47 std::string const& name);
48 void moveMesh(Eigen::Vector3d const& displacement, std::string const& name);
51 QStringListModel _allData;
52 QStringListModel _selData;
53
54private slots:
56 void accept() override;
58 void reject() override { this->done(QDialog::Rejected); };
63
64signals:
65 void meshAdded(MeshLib::Mesh const* mesh);
66};
Definition of ElementErrorCodes.
GEOModels connects the data management class GEOObjects and the GUI. It inherits from GeoLib::GEOObje...
Definition GEOModels.h:37
A dialog window for calling translation methods.
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.
Functionality to move mesh nodes using a given displacement vec.