OGS
|
Main program window for the graphical user interface of OpenGeoSys.
Definition at line 38 of file mainwindow.h.
#include <mainwindow.h>
Signals | |
void | fileUsed (QString filename) |
void | fileOpenRequested (int) |
Public Member Functions | |
MainWindow (QWidget *parent=nullptr) | |
void | ShowWindow () |
void | HideWindow () |
void | loadFileOnStartUp (const QString &fileName) |
Protected Slots | |
void | showAddFaultsToVoxelGridDialog () |
void | showGeoDockWidget (bool show) |
void | showStationDockWidget (bool show) |
void | showMshDockWidget (bool show) |
void | showConditionDockWidget (bool show) |
void | showVisDockWidget (bool show) |
void | open (int file_type=0) |
Function calls for opening files. | |
void | save () |
Function calls for saving files. | |
void | callGMSH (std::vector< std::string > &selectedGeometries, unsigned param1, double param2, double param3, double param4, bool delete_geo_file) |
Function calls for generating GMSH files from the GUI. | |
void | exportBoreholesToGMS (std::string listName, std::string fileName) |
Function calls for GMS export. | |
void | FEMTestStart () |
Testing functionality for connection to FEM lib. | |
void | loadPetrelFiles () |
void | mapGeometry (const std::string &geo_name) |
void | convertMeshToGeometry (const MeshLib::Mesh *mesh) |
void | convertPointsToStations (std::string const &geo_name) |
void | openRecentFile () |
void | about () |
void | showAddPipelineFilterItemDialog (QModelIndex parentIndex) |
void | showDataExplorerSettingsDialog () |
void | showGeoNameDialog (const std::string &geometry_name, const GeoLib::GEOTYPE object_type, std::size_t id) |
Allows setting the name for a geometric object. | |
void | showStationNameDialog (const std::string &stn_vec_name, std::size_t id) |
Allows setting the name for a station. | |
void | showCreateStructuredGridDialog () |
Creates a structured grid with user-specified parameters. | |
void | showMeshElementRemovalDialog () |
Removal of mesh elements based on a number of criteria. | |
void | showDiagramPrefsDialog () |
Calls the diagram prefs dialog from the Tools menu. | |
void | showDiagramPrefsDialog (QModelIndex &index) |
void | showFileConverter () |
Calls the OGSFileConverter as an external tool. | |
void | showLicense () |
void | showLineEditDialog (const std::string &geoName) |
void | showGMSHPrefsDialog () |
void | showMergeGeometriesDialog () |
void | showMeshAnalysisDialog () |
void | showTranslateDataDialog () |
void | showLayers2GridDialog () |
void | showMeshQualitySelectionDialog (MeshLib::VtkMappedMeshSource *mshSource) |
void | showVisalizationPrefsDialog () |
void | showVtu2GridDialog () |
void | updateDataViews () |
void | writeGeometryToFile (QString gliName, QString fileName) |
void | writeStationListToFile (QString listName, QString fileName) |
void | on_actionExportVTK_triggered (bool checked=false) |
void | on_actionExportVRML2_triggered (bool checked=false) |
void | on_actionExportObj_triggered (bool checked=false) |
void | createPresentationMenu () |
void | startPresentationMode () |
void | quitPresentationMode () |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) override |
Private Member Functions | |
QMenu * | createImportFilesMenu () |
void | loadFile (ImportFileType::type t, const QString &fileName) |
void | loadFEMConditionsFromFile (const QString &fileName, std::string geoName="") |
void | readSettings () |
void | writeSettings () |
QString | getLastUsedDir () |
Private Attributes | |
DataHolderLib::Project | _project |
std::unique_ptr< MeshModel > | _meshModel |
std::unique_ptr< ElementTreeModel > | _elementModel |
std::unique_ptr< ProcessModel > | _processModel |
std::unique_ptr< FemConditionModel > | _conditionModel |
std::unique_ptr< VtkVisPipeline > | _vtkVisPipeline |
QList< QRect > | _screenGeometries |
std::unique_ptr< QWidget > | _vtkWidget |
QByteArray | _windowState |
std::unique_ptr< VisPrefsDialog > | _visPrefsDialog |
std::unique_ptr< GEOModels > | _geo_model |
|
explicit |
Definition at line 104 of file mainwindow.cpp.
References _conditionModel, _elementModel, _geo_model, _meshModel, _processModel, _project, _screenGeometries, _visPrefsDialog, _vtkVisPipeline, _vtkWidget, convertMeshToGeometry(), convertPointsToStations(), createImportFilesMenu(), createPresentationMenu(), exportBoreholesToGMS(), fileUsed(), DataHolderLib::Project::getGEOObjects(), mapGeometry(), RecentFiles::menu(), open(), openRecentFile(), readSettings(), showAddPipelineFilterItemDialog(), showConditionDockWidget(), showDiagramPrefsDialog(), showGeoDockWidget(), showGeoNameDialog(), showLineEditDialog(), showMeshQualitySelectionDialog(), showMshDockWidget(), showStationDockWidget(), showStationNameDialog(), showVisDockWidget(), updateDataViews(), writeGeometryToFile(), and writeStationListToFile().
|
protectedslot |
Definition at line 905 of file mainwindow.cpp.
References about(), GitInfoLib::GitInfo::git_version_sha1_short, and GitInfoLib::GitInfo::ogs_version.
Referenced by about().
|
protectedslot |
Function calls for generating GMSH files from the GUI.
Definition at line 1127 of file mainwindow.cpp.
References _project, FileIO::GMSH::AdaptiveMeshDensity, OGSError::box(), FileIO::GMSH::FixedMeshDensity, LastSavedFileDirectory::getDir(), DataHolderLib::Project::getGEOObjects(), getLastUsedDir(), ImportFileType::GMSH, INFO(), loadFile(), BaseLib::removeFile(), BaseLib::IO::writeStringToFile(), and BaseLib::IO::Writer::writeToString().
Referenced by showGMSHPrefsDialog().
|
overrideprotected |
Definition at line 435 of file mainwindow.cpp.
References writeSettings().
|
protectedslot |
Definition at line 1114 of file mainwindow.cpp.
References _project, MeshToolsLib::convertMeshToGeo(), and DataHolderLib::Project::getGEOObjects().
Referenced by MainWindow().
|
protectedslot |
Definition at line 1388 of file mainwindow.cpp.
References _project, OGSError::box(), GeoLib::geoPointsToStations(), and DataHolderLib::Project::getGEOObjects().
Referenced by MainWindow().
|
private |
Definition at line 925 of file mainwindow.cpp.
References ImportFileType::FEFLOW, ImportFileType::GMS, ImportFileType::GMSH, ImportFileType::GOCAD_TSURF, loadPetrelFiles(), ImportFileType::NETCDF, open(), ImportFileType::RASTER, ImportFileType::SHAPE, ImportFileType::TETGEN, and ImportFileType::VTK.
Referenced by MainWindow().
|
protectedslot |
Definition at line 1571 of file mainwindow.cpp.
References _screenGeometries, _vtkWidget, quitPresentationMode(), and startPresentationMode().
Referenced by MainWindow().
|
protectedslot |
Function calls for GMS export.
Definition at line 1119 of file mainwindow.cpp.
References _project, DataHolderLib::Project::getGEOObjects(), GeoLib::GEOObjects::getStationVec(), and FileIO::GMSInterface::writeBoreholesToGMS().
Referenced by MainWindow().
|
protectedslot |
Testing functionality for connection to FEM lib.
Definition at line 1477 of file mainwindow.cpp.
|
signal |
|
signal |
Referenced by MainWindow(), and loadFile().
|
private |
Definition at line 1651 of file mainwindow.cpp.
Referenced by callGMSH().
void MainWindow::HideWindow | ( | ) |
Definition at line 1484 of file mainwindow.cpp.
|
private |
|
private |
Definition at line 576 of file mainwindow.cpp.
References _meshModel, _processModel, _project, _vtkVisPipeline, GeoLib::GEOObjects::addStationVec(), OGSError::box(), ImportFileType::FEFLOW, fileUsed(), DataHolderLib::Project::getGEOObjects(), NetCdfConfigureDialog::getMesh(), NetCdfConfigureDialog::getName(), NetCdfConfigureDialog::getRaster(), ImportFileType::GMS, ImportFileType::GMSH, ImportFileType::GOCAD_TSURF, INFO(), FileIO::GMSH::isGMSHMeshFile(), VtkRaster::loadImage(), ImportFileType::NETCDF, VtkBGImageSource::New(), VtkGeoImageSource::New(), ImportFileType::OGS, ImportFileType::OGS_GEO, ImportFileType::OGS_MSH, ImportFileType::OGS_STN, ImportFileType::POLYRASTER, ImportFileType::RASTER, FileIO::GMSInterface::readBoreholesFromGMS(), FileIO::FEFLOWGeoInterface::readFEFLOWFile(), FileIO::FEFLOWMeshInterface::readFEFLOWFile(), FileIO::Gocad::GocadAsciiReader::readFile(), FileIO::XmlPrjInterface::readFile(), GeoLib::IO::XmlGmlInterface::readFile(), GeoLib::IO::XmlStnInterface::readFile(), FileIO::Legacy::readGLIFileV4(), FileIO::GMSH::readGMSHMesh(), VtkGeoImageSource::readImage(), FileIO::GMSInterface::readMesh(), MeshLib::IO::readMeshFromFile(), FileIO::TetGenInterface::readTetGenGeometry(), FileIO::TetGenInterface::readTetGenMesh(), VtkAlgorithmProperties::SetName(), VtkBGImageSource::SetRaster(), ImportFileType::SHAPE, ImportFileType::TETGEN, updateDataViews(), and ImportFileType::VTK.
Referenced by callGMSH(), loadFileOnStartUp(), open(), and openRecentFile().
void MainWindow::loadFileOnStartUp | ( | const QString & | fileName | ) |
Definition at line 1489 of file mainwindow.cpp.
References loadFile(), and ImportFileType::OGS.
|
protectedslot |
Definition at line 952 of file mainwindow.cpp.
References _project, and DataHolderLib::Project::getGEOObjects().
Referenced by createImportFilesMenu().
|
protectedslot |
Definition at line 1017 of file mainwindow.cpp.
References _geo_model, _project, MeshGeoToolsLib::GeoMapper::advancedMapOnMesh(), OGSError::box(), GeoOnMeshMappingDialog::getDataSetChoice(), GeoLib::DuplicateGeometry::getFinalizedOutputName(), DataHolderLib::Project::getGEOObjects(), DataHolderLib::Project::getMeshObjects(), GeoOnMeshMappingDialog::getNewGeoName(), FileIO::AsciiRasterInterface::getRasterFromASCFile(), MeshGeoToolsLib::GeoMapper::mapOnDEM(), MeshGeoToolsLib::GeoMapper::mapOnMesh(), and MeshLib::IO::readMeshFromFile().
Referenced by MainWindow().
|
protectedslot |
Definition at line 1550 of file mainwindow.cpp.
|
protectedslot |
Definition at line 1528 of file mainwindow.cpp.
|
protectedslot |
Definition at line 1498 of file mainwindow.cpp.
References _vtkVisPipeline, and VtkVisPipelineItem::writeToFile().
|
protectedslot |
Function calls for opening files.
Definition at line 501 of file mainwindow.cpp.
References ImportFileType::convertImportFileTypeToString(), ImportFileType::getFileSuffixString(), and loadFile().
Referenced by MainWindow(), and createImportFilesMenu().
|
protectedslot |
Definition at line 519 of file mainwindow.cpp.
References loadFile(), and ImportFileType::OGS.
Referenced by MainWindow().
|
protectedslot |
Definition at line 1635 of file mainwindow.cpp.
References _vtkWidget, and _windowState.
Referenced by createPresentationMenu(), and startPresentationMode().
|
private |
Definition at line 883 of file mainwindow.cpp.
Referenced by MainWindow().
|
protectedslot |
Function calls for saving files.
Definition at line 528 of file mainwindow.cpp.
References _project, OGSError::box(), FileIO::GMSH::FixedMeshDensity, LastSavedFileDirectory::getDir(), GeoLib::GEOObjects::getGeometryNames(), DataHolderLib::Project::getGEOObjects(), LastSavedFileDirectory::setDir(), BaseLib::IO::writeStringToFile(), and BaseLib::IO::Writer::writeToString().
|
protectedslot |
Definition at line 1369 of file mainwindow.cpp.
References _meshModel, and OGSError::box().
|
protectedslot |
Definition at line 988 of file mainwindow.cpp.
References _vtkVisPipeline.
Referenced by MainWindow().
|
protectedslot |
Definition at line 477 of file mainwindow.cpp.
Referenced by MainWindow().
|
protectedslot |
Creates a structured grid with user-specified parameters.
Definition at line 1330 of file mainwindow.cpp.
References _meshModel.
|
protectedslot |
Definition at line 1471 of file mainwindow.cpp.
|
protectedslot |
Calls the diagram prefs dialog from the Tools menu.
Definition at line 1275 of file mainwindow.cpp.
Referenced by MainWindow().
|
protectedslot |
Calls the diagram prefs dialog from the station list (i.e. for a specific station).
Definition at line 1257 of file mainwindow.cpp.
References _geo_model, OGSError::box(), and GeoLib::Station::getSensorData().
|
protectedslot |
Calls the OGSFileConverter as an external tool.
Definition at line 1247 of file mainwindow.cpp.
|
protectedslot |
Definition at line 441 of file mainwindow.cpp.
Referenced by MainWindow().
|
protectedslot |
Allows setting the name for a geometric object.
Definition at line 1292 of file mainwindow.cpp.
References _geo_model, _project, GeoLib::convertGeoTypeToString(), GeoLib::GEOObjects::getElementNameByID(), DataHolderLib::Project::getGEOObjects(), SetNameDialog::getNewName(), and GeoTreeModel::setNameForItem().
Referenced by MainWindow().
|
protectedslot |
Definition at line 1414 of file mainwindow.cpp.
References _project, callGMSH(), and DataHolderLib::Project::getGEOObjects().
|
protectedslot |
Definition at line 1358 of file mainwindow.cpp.
References _meshModel, and OGSError::box().
|
protectedslot |
Definition at line 899 of file mainwindow.cpp.
|
protectedslot |
Definition at line 1399 of file mainwindow.cpp.
References _geo_model, _project, DataHolderLib::Project::getGEOObjects(), and GeoLib::GEOObjects::getPolylineVecObj().
Referenced by MainWindow().
|
protectedslot |
Definition at line 1426 of file mainwindow.cpp.
References _project, OGSError::box(), MergeGeometriesDialog::getGeometryName(), DataHolderLib::Project::getGEOObjects(), MergeGeometriesDialog::getSelectedGeometries(), and GeoLib::GEOObjects::mergeGeometries().
|
protectedslot |
Definition at line 1346 of file mainwindow.cpp.
References _project, and DataHolderLib::Project::getMeshObjects().
|
protectedslot |
Removal of mesh elements based on a number of criteria.
Definition at line 1338 of file mainwindow.cpp.
References _meshModel, and _project.
|
protectedslot |
Definition at line 1441 of file mainwindow.cpp.
References _vtkVisPipeline, MeshQualitySelectionDialog::getHistogram(), MeshQualitySelectionDialog::getHistogramPath(), MeshLib::VtkMappedMeshSource::GetMesh(), MeshToolsLib::ElementQualityInterface::getQualityVector(), MeshQualitySelectionDialog::getSelectedMetric(), and MeshToolsLib::ElementQualityInterface::writeHistogram().
Referenced by MainWindow().
|
protectedslot |
Definition at line 465 of file mainwindow.cpp.
Referenced by MainWindow().
|
protectedslot |
Definition at line 453 of file mainwindow.cpp.
Referenced by MainWindow().
|
protectedslot |
Allows setting the name for a station.
Definition at line 1313 of file mainwindow.cpp.
References _project, DataHolderLib::Project::getGEOObjects(), SetNameDialog::getNewName(), GeoLib::GEOObjects::getStationVec(), and StationTreeModel::setNameForItem().
Referenced by MainWindow().
|
protectedslot |
Definition at line 1352 of file mainwindow.cpp.
References _geo_model, and _meshModel.
|
protectedslot |
Definition at line 1466 of file mainwindow.cpp.
References _visPrefsDialog.
|
protectedslot |
Definition at line 489 of file mainwindow.cpp.
Referenced by MainWindow().
|
protectedslot |
Definition at line 1378 of file mainwindow.cpp.
References _meshModel, and OGSError::box().
void MainWindow::ShowWindow | ( | ) |
Definition at line 1479 of file mainwindow.cpp.
|
protectedslot |
Definition at line 1606 of file mainwindow.cpp.
References _screenGeometries, _vtkWidget, _windowState, and quitPresentationMode().
Referenced by createPresentationMenu().
|
protectedslot |
Definition at line 875 of file mainwindow.cpp.
Referenced by MainWindow(), and loadFile().
|
protectedslot |
Definition at line 994 of file mainwindow.cpp.
References _project, BaseLib::IO::XMLInterface::export_name, DataHolderLib::Project::getGEOObjects(), FileIO::Legacy::writeAllDataToGLIFileV4(), BaseLib::IO::writeStringToFile(), and BaseLib::IO::Writer::writeToString().
Referenced by MainWindow().
|
private |
Definition at line 891 of file mainwindow.cpp.
Referenced by closeEvent().
|
protectedslot |
Definition at line 1010 of file mainwindow.cpp.
References _project, BaseLib::IO::XMLInterface::export_name, DataHolderLib::Project::getGEOObjects(), BaseLib::IO::writeStringToFile(), and BaseLib::IO::Writer::writeToString().
Referenced by MainWindow().
|
private |
Definition at line 137 of file mainwindow.h.
Referenced by MainWindow().
|
private |
Definition at line 135 of file mainwindow.h.
Referenced by MainWindow().
|
private |
Definition at line 145 of file mainwindow.h.
Referenced by MainWindow(), mapGeometry(), showDiagramPrefsDialog(), showGeoNameDialog(), showLineEditDialog(), and showTranslateDataDialog().
|
private |
Definition at line 134 of file mainwindow.h.
Referenced by MainWindow(), loadFile(), showAddFaultsToVoxelGridDialog(), showCreateStructuredGridDialog(), showLayers2GridDialog(), showMeshElementRemovalDialog(), showTranslateDataDialog(), and showVtu2GridDialog().
|
private |
Definition at line 136 of file mainwindow.h.
Referenced by MainWindow(), and loadFile().
|
private |
Definition at line 133 of file mainwindow.h.
Referenced by MainWindow(), callGMSH(), convertMeshToGeometry(), convertPointsToStations(), exportBoreholesToGMS(), loadFile(), loadPetrelFiles(), mapGeometry(), save(), showGeoNameDialog(), showGMSHPrefsDialog(), showLineEditDialog(), showMergeGeometriesDialog(), showMeshAnalysisDialog(), showMeshElementRemovalDialog(), showStationNameDialog(), writeGeometryToFile(), and writeStationListToFile().
|
private |
Definition at line 139 of file mainwindow.h.
Referenced by MainWindow(), createPresentationMenu(), and startPresentationMode().
|
private |
Definition at line 143 of file mainwindow.h.
Referenced by MainWindow(), and showVisalizationPrefsDialog().
|
private |
Definition at line 138 of file mainwindow.h.
Referenced by MainWindow(), loadFile(), on_actionExportVTK_triggered(), showAddPipelineFilterItemDialog(), and showMeshQualitySelectionDialog().
|
private |
Definition at line 140 of file mainwindow.h.
Referenced by MainWindow(), createPresentationMenu(), quitPresentationMode(), and startPresentationMode().
|
private |
Definition at line 141 of file mainwindow.h.
Referenced by quitPresentationMode(), and startPresentationMode().