OGS
|
The DataView is table view which acts as a base class for displaying several OGS data formats.
Definition at line 35 of file MeshView.h.
#include <MeshView.h>
Classes | |
struct | MeshAction |
Public Slots | |
void | updateView () |
Signals | |
void | elementSelected (vtkUnstructuredGridAlgorithm const *const, unsigned, bool) |
void | enableSaveButton (bool) |
void | enableRemoveButton (bool) |
void | meshSelected (MeshLib::Mesh const &) |
void | openMeshFile (int) |
void | qualityCheckRequested (MeshLib::VtkMappedMeshSource *) |
void | removeSelectedMeshComponent () |
void | requestCondSetupDialog (const std::string &, const GeoLib::GEOTYPE, const std::size_t, bool on_points) |
void | requestMeshRemoval (const QModelIndex &) |
void | requestMeshToGeometryConversion (const MeshLib::Mesh *) |
void | loadFEMCondFileRequested (const std::string) |
void | saveMeshAction () |
Public Member Functions | |
MeshView (QWidget *parent=nullptr) | |
~MeshView () override | |
Protected Slots | |
void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override |
Is called when the selection of this view changes. | |
Private Slots | |
void | openMap2dMeshDialog () |
Opens a dialog for mapping 2d meshes. | |
void | openRasterDataToMeshDialog () |
Opens a dialog for assigning raster data to the mesh. | |
void | openMeshEditDialog () |
Opens a dialog for editing meshes. | |
void | openValuesEditDialog () |
Opens a dialog for editing material groups. | |
void | openAddLayerDialog () |
Opens a dialog for adding a layer to the mesh. | |
void | addMesh () |
Adds a new mesh. | |
void | addDIRECTSourceTerms () |
void | extractSurfaceMesh () |
void | exportToTetGen () |
void | loadDIRECTSourceTerms () |
void | convertMeshToGeometry () |
void | exportToShapefile () const |
void | removeMesh () |
Remove the currently selected mesh. | |
void | writeToFile () const |
Calls the FileDialog to save a mesh to a file. | |
void | checkMeshQuality () |
Calls the dialog for calculating an element quality metric. | |
Private Member Functions | |
void | contextMenuEvent (QContextMenuEvent *event) override |
|
explicit |
Definition at line 46 of file MeshView.cpp.
|
overridedefault |
|
privateslot |
Definition at line 439 of file MeshView.cpp.
|
privateslot |
Adds a new mesh.
Definition at line 97 of file MeshView.cpp.
References ImportFileType::OGS_MSH, and openMeshFile().
Referenced by extractSurfaceMesh(), openAddLayerDialog(), openMap2dMeshDialog(), openMeshEditDialog(), and openRasterDataToMeshDialog().
|
privateslot |
Calls the dialog for calculating an element quality metric.
Definition at line 452 of file MeshView.cpp.
References qualityCheckRequested(), and MeshItem::vtkSource().
Referenced by contextMenuEvent().
|
overrideprivate |
Definition at line 117 of file MeshView.cpp.
References checkMeshQuality(), convertMeshToGeometry(), exportToShapefile(), exportToTetGen(), extractSurfaceMesh(), MeshLib::Mesh::getDimension(), MeshItem::getMesh(), openAddLayerDialog(), openMap2dMeshDialog(), openMeshEditDialog(), openRasterDataToMeshDialog(), and openValuesEditDialog().
|
privateslot |
Definition at line 353 of file MeshView.cpp.
References getMesh(), and requestMeshToGeometryConversion().
Referenced by contextMenuEvent().
|
signal |
Referenced by selectionChanged().
|
signal |
Referenced by removeMesh(), and selectionChanged().
|
signal |
Referenced by removeMesh(), and selectionChanged().
|
privateslot |
Definition at line 361 of file MeshView.cpp.
References OGSError::box(), LastSavedFileDirectory::getDir(), getMesh(), MeshLib::Mesh::getName(), LastSavedFileDirectory::setDir(), and FileIO::SHPInterface::write2dMeshToSHP().
Referenced by contextMenuEvent().
|
privateslot |
Definition at line 390 of file MeshView.cpp.
References getMesh(), and FileIO::TetGenInterface::writeTetGenSmesh().
Referenced by contextMenuEvent().
|
privateslot |
Definition at line 320 of file MeshView.cpp.
References addMesh(), OGSError::box(), getMesh(), MeshToolsLib::MeshSurfaceExtraction::getMeshSurface(), SurfaceExtractionDialog::getNormal(), and SurfaceExtractionDialog::getTolerance().
Referenced by contextMenuEvent().
|
privateslot |
Definition at line 446 of file MeshView.cpp.
References loadFEMCondFileRequested().
|
signal |
Referenced by loadDIRECTSourceTerms().
|
signal |
Referenced by selectionChanged().
|
privateslot |
Opens a dialog for adding a layer to the mesh.
Definition at line 283 of file MeshView.cpp.
References MeshToolsLib::addLayerToMesh(), addMesh(), OGSError::box(), getMesh(), AddLayerToMeshDialog::getName(), AddLayerToMeshDialog::getThickness(), and AddLayerToMeshDialog::isTopLayer().
Referenced by contextMenuEvent().
|
privateslot |
Opens a dialog for mapping 2d meshes.
Definition at line 175 of file MeshView.cpp.
References addMesh(), OGSError::box(), MeshMapping2DDialog::getIgnoreNoData(), MeshModel::getMesh(), MeshMapping2DDialog::getNewMeshName(), MeshMapping2DDialog::getNoDataReplacement(), MeshMapping2DDialog::getRasterPath(), MeshMapping2DDialog::getStaticValue(), MeshToolsLib::MeshLayerMapper::layerMapping(), MeshToolsLib::MeshLayerMapper::mapToStaticValue(), FileIO::AsciiRasterInterface::readRaster(), and MeshMapping2DDialog::useRasterMapping().
Referenced by contextMenuEvent().
|
privateslot |
Opens a dialog for editing meshes.
Definition at line 259 of file MeshView.cpp.
References addMesh(), and MeshModel::getMesh().
Referenced by contextMenuEvent().
|
signal |
Referenced by addMesh().
|
privateslot |
Opens a dialog for assigning raster data to the mesh.
Definition at line 220 of file MeshView.cpp.
References addMesh(), OGSError::box(), RasterDataToMeshDialog::createNodeArray(), RasterDataToMeshDialog::getArrayName(), MeshModel::getMesh(), RasterDataToMeshDialog::getMeshName(), MeshLib::Mesh::getName(), RasterDataToMeshDialog::getNoDataReplacement(), RasterDataToMeshDialog::getRasterPath(), MeshToolsLib::RasterDataToMesh::projectToElements(), MeshToolsLib::RasterDataToMesh::projectToNodes(), and FileIO::AsciiRasterInterface::readRaster().
Referenced by contextMenuEvent().
|
privateslot |
Opens a dialog for editing material groups.
Definition at line 271 of file MeshView.cpp.
References MeshModel::getMesh().
Referenced by contextMenuEvent().
|
signal |
Referenced by checkMeshQuality().
|
privateslot |
Remove the currently selected mesh.
Definition at line 102 of file MeshView.cpp.
References OGSError::box(), enableRemoveButton(), enableSaveButton(), and requestMeshRemoval().
|
signal |
Referenced by selectionChanged().
|
signal |
|
signal |
Referenced by removeMesh().
|
signal |
Referenced by convertMeshToGeometry().
|
signal |
|
overrideprotectedslot |
Is called when the selection of this view changes.
Definition at line 67 of file MeshView.cpp.
References elementSelected(), enableRemoveButton(), enableSaveButton(), meshSelected(), TreeItem::parentItem(), removeSelectedMeshComponent(), TreeItem::row(), and MeshItem::vtkSource().
|
slot |
Definition at line 55 of file MeshView.cpp.
|
privateslot |
Calls the FileDialog to save a mesh to a file.
Definition at line 418 of file MeshView.cpp.
References OGSError::box(), and getMesh().