OGS
OGSFileConverter.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 "ui_OGSFileConverter.h"
7#include <QDialog>
8
12class OGSFileConverter : public QDialog, private Ui_OGSFileConverter
13{
14 Q_OBJECT
15
16public:
18 explicit OGSFileConverter(std::string const& gmsh_path,
19 QWidget* parent = nullptr);
22
23private:
25 bool fileExists(const std::string &file_name) const;
26 std::string const _gmsh_path;
27
28private slots:
30 void convertGML2GLI(const QStringList &input, const QString &output) const;
31 void convertGLI2GML(const QStringList &input, const QString &output) const;
32 void convertVTU2MSH(const QStringList &input, const QString &output) const;
33 void convertMSH2VTU(const QStringList &input, const QString &output) const;
34
35 void on_gml2gliButton_pressed() const;
36 void on_gli2gmlButton_pressed() const;
37 void on_vtu2mshButton_pressed() const;
38 void on_msh2vtuButton_pressed() const;
40};
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
OGSFileConverter(std::string const &gmsh_path, QWidget *parent=nullptr)
Constructor.
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