OGS
|
A view in which to display the stratigraphy of a borehole.
Definition at line 30 of file StratView.h.
#include <StratView.h>
Public Member Functions | |
StratView (QWidget *parent=nullptr) | |
~StratView () override | |
void | setStation (GeoLib::StationBorehole *station, std::map< std::string, DataHolderLib::Color > *stratColors=nullptr) |
Sets the Borehole whose data should be visualised. | |
int | getHeight () |
Returns the height of the bounding rectangle of all objects within the scene. | |
int | getWidth () |
Returns the width of the bounding rectangle of all objects within the scene. | |
void | saveAsImage (QString fileName) |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *event) override |
Resizes the scene. | |
Private Member Functions | |
void | initialize () |
Initialises the view. | |
QSize | minimumSizeHint () const override |
The minimum size of the window. | |
QSize | sizeHint () const override |
The default size of the window. | |
void | update () |
Updates the view automatically when a Borehole is added or when the window containing the view changes its state. | |
Private Attributes | |
StratScene * | _scene {nullptr} |
|
inlineexplicit |
|
override |
Definition at line 21 of file StratView.cpp.
References _scene.
|
inline |
Returns the height of the bounding rectangle of all objects within the scene.
Definition at line 45 of file StratView.h.
References _scene.
|
inline |
Returns the width of the bounding rectangle of all objects within the scene.
Definition at line 48 of file StratView.h.
References _scene.
|
private |
Initialises the view.
Definition at line 35 of file StratView.cpp.
References update().
Referenced by setStation().
|
inlineoverrideprivate |
The minimum size of the window.
Definition at line 61 of file StratView.h.
References _scene, and StratScene::MARGIN.
|
overrideprotected |
void StratView::saveAsImage | ( | QString | fileName | ) |
Definition at line 59 of file StratView.cpp.
References _scene, StratScene::MARGIN, and update().
void StratView::setStation | ( | GeoLib::StationBorehole * | station, |
std::map< std::string, DataHolderLib::Color > * | stratColors = nullptr ) |
Sets the Borehole whose data should be visualised.
Definition at line 26 of file StratView.cpp.
References _scene, and initialize().
|
inlineoverrideprivate |
The default size of the window.
Definition at line 67 of file StratView.h.
References _scene, and StratScene::MARGIN.
|
private |
Updates the view automatically when a Borehole is added or when the window containing the view changes its state.
Definition at line 49 of file StratView.cpp.
References _scene, and StratScene::MARGIN.
Referenced by initialize(), resizeEvent(), and saveAsImage().
|
private |
Definition at line 75 of file StratView.h.
Referenced by ~StratView(), getHeight(), getWidth(), minimumSizeHint(), saveAsImage(), setStation(), sizeHint(), and update().