OGS
OGSFileConverter.h
Go to the documentation of this file.
1
15#pragma once
16
17#include "ui_OGSFileConverter.h"
18#include <QDialog>
19
23class OGSFileConverter : public QDialog, private Ui_OGSFileConverter
24{
25 Q_OBJECT
26
27public:
29 explicit OGSFileConverter(std::string const& gmsh_path,
30 QWidget* parent = nullptr);
33
34private:
36 bool fileExists(const std::string &file_name) const;
37 std::string const _gmsh_path;
38
39private slots:
41 void convertGML2GLI(const QStringList &input, const QString &output) const;
42 void convertGLI2GML(const QStringList &input, const QString &output) const;
43 void convertVTU2MSH(const QStringList &input, const QString &output) const;
44 void convertMSH2VTU(const QStringList &input, const QString &output) const;
45
46 void on_gml2gliButton_pressed() const;
47 void on_gli2gmlButton_pressed() const;
48 void on_vtu2mshButton_pressed() const;
49 void on_msh2vtuButton_pressed() const;
51};
bool fileExists(const std::string &file_name) const
Checks if a given file already exists.
void on_vtu2mshButton_pressed() const
void convertGLI2GML(const QStringList &input, const QString &output) const
std::string const _gmsh_path
void on_msh2vtuButton_pressed() const
void on_closeDialogButton_pressed()
void on_gml2gliButton_pressed() const
~OGSFileConverter() override
Destructor.
void convertVTU2MSH(const QStringList &input, const QString &output) const
void convertGML2GLI(const QStringList &input, const QString &output) const
Converts all files in the input list and writes the new files to the output directory with the same f...
void convertMSH2VTU(const QStringList &input, const QString &output) const
void on_gli2gmlButton_pressed() const