OGS
|
A view for the StationTreeModel.
Definition at line 27 of file StationTreeView.h.
#include <StationTreeView.h>
Signals | |
void | enableSaveButton (bool) |
void | enableRemoveButton (bool) |
void | geoItemSelected (const vtkPolyDataAlgorithm *, int) |
void | geometryMappingRequested (const std::string &) |
void | removeGeoItemSelection () |
void | itemSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
void | openStationListFile (int) |
void | propertiesDialogRequested (std::string name) |
void | requestNameChangeDialog (const std::string &, std::size_t) |
void | stationListExportRequested (std::string listName, std::string fileName) |
void | stationListRemoved (std::string name) |
void | stationListSaved (QString listName, QString fileName) |
void | diagramRequested (QModelIndex &) |
Public Member Functions | |
StationTreeView (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 | addStationList () |
void | displayStratigraphy () |
void | exportList () |
void | exportStation () |
void | mapStations () |
void | removeStationList () |
void | setNameForElement () |
Calls a SetNameDialog. | |
void | writeToFile () |
void | showDiagramPrefsDialog () |
Private Member Functions | |
void | contextMenuEvent (QContextMenuEvent *e) override |
Actions to be taken after a right mouse click is performed in the station view. | |
void | writeStratigraphiesAsImages (QString listName) |
Create image files from all stratigraphies in a borehole vector. | |
|
explicit |
Constructor.
Definition at line 30 of file StationTreeView.cpp.
|
privateslot |
Definition at line 189 of file StationTreeView.cpp.
References ImportFileType::OGS_STN, and openStationListFile().
|
overrideprivate |
Actions to be taken after a right mouse click is performed in the station view.
Definition at line 92 of file StationTreeView.cpp.
References displayStratigraphy(), exportList(), exportStation(), mapStations(), setNameForElement(), and showDiagramPrefsDialog().
|
signal |
Referenced by showDiagramPrefsDialog().
|
privateslot |
Definition at line 165 of file StationTreeView.cpp.
References VtkStationSource::getColorLookupTable(), and StationTreeModel::vtkSource().
Referenced by contextMenuEvent().
|
signal |
Referenced by removeStationList(), and selectionChanged().
|
signal |
Referenced by removeStationList(), and selectionChanged().
|
privateslot |
Definition at line 217 of file StationTreeView.cpp.
References TreeItem::data(), LastSavedFileDirectory::getDir(), LastSavedFileDirectory::setDir(), and stationListExportRequested().
Referenced by contextMenuEvent().
|
privateslot |
Definition at line 238 of file StationTreeView.cpp.
References LastSavedFileDirectory::getDir(), LastSavedFileDirectory::setDir(), and FileIO::GMSInterface::writeBoreholesToGMS().
Referenced by contextMenuEvent().
|
signal |
Referenced by selectionChanged().
|
signal |
Referenced by mapStations().
|
signal |
|
privateslot |
Definition at line 156 of file StationTreeView.cpp.
References TreeItem::data(), and geometryMappingRequested().
Referenced by contextMenuEvent().
|
signal |
Referenced by addStationList().
|
signal |
|
signal |
Referenced by selectionChanged().
|
privateslot |
Definition at line 257 of file StationTreeView.cpp.
References OGSError::box(), TreeItem::data(), enableRemoveButton(), enableSaveButton(), and stationListRemoved().
|
signal |
Referenced by setNameForElement().
|
overrideprotectedslot |
Instructions if the selection of items in the view has changed.
Definition at line 46 of file StationTreeView.cpp.
References enableRemoveButton(), enableSaveButton(), geoItemSelected(), TreeItem::parentItem(), removeGeoItemSelection(), and TreeItem::row().
|
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 79 of file StationTreeView.cpp.
|
privateslot |
Calls a SetNameDialog.
Definition at line 146 of file StationTreeView.cpp.
References TreeItem::data(), TreeItem::parentItem(), requestNameChangeDialog(), and TreeItem::row().
Referenced by contextMenuEvent().
|
privateslot |
Definition at line 278 of file StationTreeView.cpp.
References diagramRequested().
Referenced by contextMenuEvent().
|
signal |
Referenced by exportList().
|
signal |
Referenced by removeStationList().
|
signal |
Referenced by writeToFile().
void StationTreeView::updateView | ( | ) |
Update the view to visualise changes made to the underlying data.
Definition at line 37 of file StationTreeView.cpp.
|
private |
Create image files from all stratigraphies in a borehole vector.
Definition at line 284 of file StationTreeView.cpp.
References VtkStationSource::getColorLookupTable(), getName(), BaseItem::getStations(), and StationTreeModel::vtkSource().
|
privateslot |
Definition at line 194 of file StationTreeView.cpp.
References OGSError::box(), TreeItem::data(), LastSavedFileDirectory::getDir(), LastSavedFileDirectory::setDir(), and stationListSaved().