OGS
|
A conversion tool for ogs5 and ogs6 files
Definition at line 23 of file OGSFileConverter.h.
#include <OGSFileConverter.h>
Public Member Functions | |
OGSFileConverter (std::string const &gmsh_path, QWidget *parent=nullptr) | |
Constructor. | |
~OGSFileConverter () override | |
Destructor. | |
Private Slots | |
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 file name + updated extension. | |
void | convertGLI2GML (const QStringList &input, const QString &output) const |
void | convertVTU2MSH (const QStringList &input, const QString &output) const |
void | convertMSH2VTU (const QStringList &input, const QString &output) const |
void | on_gml2gliButton_pressed () const |
void | on_gli2gmlButton_pressed () const |
void | on_vtu2mshButton_pressed () const |
void | on_msh2vtuButton_pressed () const |
void | on_closeDialogButton_pressed () |
Private Member Functions | |
bool | fileExists (const std::string &file_name) const |
Checks if a given file already exists. | |
Private Attributes | |
std::string const | _gmsh_path |
|
explicit |
Constructor.
Definition at line 32 of file OGSFileConverter.cpp.
|
overridedefault |
Destructor.
|
privateslot |
Definition at line 88 of file OGSFileConverter.cpp.
References _gmsh_path, OGSError::box(), BaseLib::IO::XMLInterface::export_name, BaseLib::extractBaseName(), fileExists(), FileIO::Legacy::readGLIFileV4(), GeoLib::GEOObjects::removePointVec(), GeoLib::GEOObjects::removePolylineVec(), GeoLib::GEOObjects::removeSurfaceVec(), BaseLib::IO::writeStringToFile(), and BaseLib::IO::Writer::writeToString().
Referenced by on_gli2gmlButton_pressed().
|
privateslot |
Converts all files in the input list and writes the new files to the output directory with the same file name + updated extension.
Definition at line 41 of file OGSFileConverter.cpp.
References OGSError::box(), fileExists(), GeoLib::GEOObjects::getGeometryNames(), GeoLib::IO::XmlGmlInterface::readFile(), GeoLib::GEOObjects::removePointVec(), GeoLib::GEOObjects::removePolylineVec(), GeoLib::GEOObjects::removeSurfaceVec(), and FileIO::Legacy::writeGLIFileV4().
Referenced by on_gml2gliButton_pressed().
|
privateslot |
Definition at line 174 of file OGSFileConverter.cpp.
References OGSError::box(), fileExists(), MeshLib::IO::Legacy::MeshIO::loadMeshFromFile(), and MeshLib::IO::VtuInterface::writeToFile().
Referenced by on_msh2vtuButton_pressed().
|
privateslot |
Definition at line 139 of file OGSFileConverter.cpp.
References OGSError::box(), fileExists(), MeshLib::IO::VtuInterface::readVTUFile(), MeshLib::IO::Legacy::MeshIO::setMesh(), BaseLib::IO::writeStringToFile(), and BaseLib::IO::Writer::writeToString().
Referenced by on_vtu2mshButton_pressed().
|
private |
Checks if a given file already exists.
Definition at line 250 of file OGSFileConverter.cpp.
References BaseLib::extractBaseName(), and OGSError::question().
Referenced by convertGLI2GML(), convertGML2GLI(), convertMSH2VTU(), and convertVTU2MSH().
|
privateslot |
Definition at line 245 of file OGSFileConverter.cpp.
|
privateslot |
Definition at line 218 of file OGSFileConverter.cpp.
References convertGLI2GML(), FileListDialog::getInputFileList(), FileListDialog::getOutputDir(), GLI, and GML.
|
privateslot |
Definition at line 209 of file OGSFileConverter.cpp.
References convertGML2GLI(), FileListDialog::getInputFileList(), FileListDialog::getOutputDir(), GLI, and GML.
|
privateslot |
Definition at line 236 of file OGSFileConverter.cpp.
References convertMSH2VTU(), FileListDialog::getInputFileList(), FileListDialog::getOutputDir(), MSH, and VTU.
|
privateslot |
Definition at line 227 of file OGSFileConverter.cpp.
References convertVTU2MSH(), FileListDialog::getInputFileList(), FileListDialog::getOutputDir(), MSH, and VTU.
|
private |
Definition at line 37 of file OGSFileConverter.h.
Referenced by convertGLI2GML().