#include <SMESHGUI_Meshio.h>
Public Member Functions | |
| SMESHGUI_Meshio () | |
| Constructor. More... | |
| virtual | ~SMESHGUI_Meshio () |
| Destructor. More... | |
Static Public Member Functions | |
| static void | ExportMesh (const meshList &aMeshList, const QString &targetFileName, const QString &selectedFilter) |
| Export mesh through an intermediate MED file. More... | |
| static SMESH::mesh_array_var | ImportMesh (SMESH::SMESH_Gen_ptr theComponentMesh, const QString &filename, QStringList &errors, const QString &selectedFilter=QString()) |
| Import mesh through an intermediate MED file. More... | |
| static const QStringList & | GetAllFilters () |
| Returns all filter File dialog. More... | |
| static const QStringList & | GetImportFileFilter () |
| Returns a filter for Import File dialog. More... | |
| static const QStringList & | GetExportFileFilter () |
| Returns a filter for Export File dialog. More... | |
| static QString | GetFileName (QString &selectedFilter, const bool isOpen=false) |
| Opens file dialog and returns a chosen target name. More... | |
| static bool | CheckMeshCount (const meshList &aMeshList) |
| Check and warn about exporting many shapes. More... | |
| static bool | IsMeshioInstalled () |
| Returns true if meshio package is installed. More... | |
| static bool | IsConverterInstalled (SMESHIOConverter::ExternalConverter converter=SMESHIOConverter::ExternalConverter::Gmsh) |
| Returns true if convert package is installed. More... | |
Private Types | |
| using | meshList = QList< QPair< SMESH::SMESH_IDSource_var, QString > > |
|
private |
| SMESHGUI_Meshio::SMESHGUI_Meshio | ( | ) |
Constructor.
|
virtual |
Destructor.
Check and warn about exporting many shapes.
References SMESHGUI::desktop(), and MESSAGE.
|
static |
Export mesh through an intermediate MED file.
References SMESHGUI::desktop(), SMESH_Meshio::GetConverterForExtension(), IsConverterInstalled(), and SMESHIOConverter::Unknown.
|
static |
Returns all filter File dialog.
References SMESHIOConverter::ExtensionMap.
Referenced by GetExportFileFilter(), and GetImportFileFilter().
|
static |
|
static |
Opens file dialog and returns a chosen target name.
References SMESHGUI::desktop(), and GetExportFileFilter().
|
static |
Returns a filter for Import File dialog.
References GetAllFilters().
|
static |
Import mesh through an intermediate MED file.
References SMESH::DRS_OK.
|
static |
Returns true if convert package is installed.
References SMESHGUI::desktop(), and SMESH_Meshio::IsConverterInstalled().
Referenced by ExportMesh().
|
static |
Returns true if meshio package is installed.
References SMESHGUI::desktop(), and SMESH_Meshio::IsMeshioInstalled().