OGS
|
A view for the GeoTreeModel.
Definition at line 28 of file GeoTreeView.h.
#include <GeoTreeView.h>
Signals | |
void | enableSaveButton (bool) |
Saves FEM Conditions associated with the given geometry. | |
void | enableRemoveButton (bool) |
void | geoItemSelected (const vtkPolyDataAlgorithm *, int) |
void | geometryMappingRequested (const std::string &) |
void | removeGeoItemSelection () |
void | listRemoved (std::string name, GeoLib::GEOTYPE) |
void | loadFEMCondFileRequested (std::string) |
void | openGeometryFile (int) |
void | saveToFileRequested (QString, QString) const |
void | requestCondSetupDialog (const std::string &, const GeoLib::GEOTYPE, const std::size_t, bool on_points) |
void | requestLineEditDialog (const std::string &) |
void | requestNameChangeDialog (const std::string &, const GeoLib::GEOTYPE, const std::size_t) |
void | requestPointToStationConversion (std::string const &) |
Public Member Functions | |
GeoTreeView (QWidget *parent=nullptr) | |
Constructor. | |
void | updateView () |
Update the view to visualise changes made to the underlying data. | |
Protected Slots | |
void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override |
Instructions if the selection of items in the view has changed. | |
void | selectionChangedFromOutside (const QItemSelection &selected, const QItemSelection &deselected) |
Instructions if the selection of items in the view has changed by events outside the view (i.e. by actions made in the visualisation). | |
Private Slots | |
void | addGeometry () |
void | loadFEMConditions () |
Allows to add FEM Conditions to a process. | |
void | on_Clicked (QModelIndex idx) |
void | connectPolylines () |
Calls a LineEditDialog. | |
void | convertPointsToStations () |
void | mapGeometry () |
void | setNameForElement () |
Calls a SetNameDialog. | |
void | setObjectAsCondition () |
Private Member Functions | |
void | contextMenuEvent (QContextMenuEvent *e) override |
Actions to be taken after a right mouse click is performed in the station view. | |
void | setElementAsCondition (bool set_on_points=false) |
Calls a FEMConditionSetupDialog. | |
void | setObjectPointsAsCondition () |
void | writeToFile () const |
Saves a geometry in a file. | |
void | removeGeometry () |
Removes a whole geometry or parts of it. | |
|
explicit |
|
privateslot |
Definition at line 244 of file GeoTreeView.cpp.
References ImportFileType::OGS_GEO, and openGeometryFile().
|
privateslot |
Calls a LineEditDialog.
Definition at line 236 of file GeoTreeView.cpp.
References TreeItem::data(), and requestLineEditDialog().
Referenced by contextMenuEvent().
|
overrideprivate |
Actions to be taken after a right mouse click is performed in the station view.
Definition at line 133 of file GeoTreeView.cpp.
References connectPolylines(), convertPointsToStations(), mapGeometry(), GeoLib::POINT, GeoLib::POLYLINE, setNameForElement(), setObjectAsCondition(), and setObjectPointsAsCondition().
|
privateslot |
Definition at line 226 of file GeoTreeView.cpp.
References TreeItem::data(), and requestPointToStationConversion().
Referenced by contextMenuEvent().
|
signal |
Referenced by removeGeometry(), and selectionChanged().
|
signal |
Saves FEM Conditions associated with the given geometry.
Referenced by removeGeometry(), and selectionChanged().
|
signal |
Referenced by selectionChanged().
|
signal |
Referenced by mapGeometry().
|
signal |
Referenced by removeGeometry().
|
signal |
Referenced by loadFEMConditions().
|
privateslot |
Allows to add FEM Conditions to a process.
Definition at line 342 of file GeoTreeView.cpp.
References TreeItem::data(), and loadFEMCondFileRequested().
|
privateslot |
Definition at line 308 of file GeoTreeView.cpp.
References TreeItem::data(), and geometryMappingRequested().
Referenced by contextMenuEvent().
|
privateslot |
Definition at line 39 of file GeoTreeView.cpp.
|
signal |
Referenced by addGeometry().
|
signal |
Referenced by selectionChanged().
|
private |
Removes a whole geometry or parts of it.
Definition at line 249 of file GeoTreeView.cpp.
References OGSError::box(), TreeItem::data(), enableRemoveButton(), enableSaveButton(), listRemoved(), TreeItem::parentItem(), GeoLib::POINT, GeoLib::POLYLINE, and GeoLib::SURFACE.
|
signal |
Referenced by setElementAsCondition().
|
signal |
Referenced by connectPolylines().
|
signal |
Referenced by setNameForElement().
|
signal |
Referenced by convertPointsToStations().
|
signal |
Referenced by writeToFile().
|
overrideprotectedslot |
Instructions if the selection of items in the view has changed.
Definition at line 44 of file GeoTreeView.cpp.
References TreeItem::child(), TreeItem::data(), enableRemoveButton(), enableSaveButton(), geoItemSelected(), TreeItem::parentItem(), GeoLib::POLYLINE, removeGeoItemSelection(), TreeItem::row(), GeoLib::SURFACE, and GeoObjectListItem::vtkSource().
|
protectedslot |
Instructions if the selection of items in the view has changed by events outside the view (i.e. by actions made in the visualisation).
Definition at line 120 of file GeoTreeView.cpp.
|
private |
Calls a FEMConditionSetupDialog.
Definition at line 284 of file GeoTreeView.cpp.
References TreeItem::data(), GeoObjectListItem::getType(), TreeItem::parentItem(), requestCondSetupDialog(), and TreeItem::row().
Referenced by setObjectAsCondition(), and setObjectPointsAsCondition().
|
privateslot |
Calls a SetNameDialog.
Definition at line 296 of file GeoTreeView.cpp.
References TreeItem::data(), GeoObjectListItem::getType(), TreeItem::parentItem(), requestNameChangeDialog(), and TreeItem::row().
Referenced by contextMenuEvent().
|
inlineprivateslot |
Definition at line 65 of file GeoTreeView.h.
References setElementAsCondition().
Referenced by contextMenuEvent().
|
inlineprivate |
Definition at line 66 of file GeoTreeView.h.
References setElementAsCondition().
Referenced by contextMenuEvent().
void GeoTreeView::updateView | ( | ) |
Update the view to visualise changes made to the underlying data.
Definition at line 30 of file GeoTreeView.cpp.
|
private |
Saves a geometry in a file.
Definition at line 316 of file GeoTreeView.cpp.
References OGSError::box(), TreeItem::data(), LastSavedFileDirectory::getDir(), saveToFileRequested(), and LastSavedFileDirectory::setDir().