OGS
|
The scene for the visualisation of the stratigraphy of a borehole.
Definition at line 28 of file StratScene.h.
#include <StratScene.h>
Public Member Functions | |
StratScene (GeoLib::StationBorehole *station, std::map< std::string, DataHolderLib::Color > *stratColors=nullptr, QObject *parent=nullptr) | |
Constructor. | |
~StratScene () override | |
Static Public Attributes | |
static const int | MARGIN = 50 |
The margin between the boundary of the scene and the bounding box of all items within the scene. | |
Private Member Functions | |
void | addDepthLabels (std::vector< GeoLib::Point * > profile, double offset) |
Adds text labels indicating the depth at the beginning and end of each soil layer. | |
QNonScalableGraphicsTextItem * | addNonScalableText (const QString &text, const QFont &font=QFont()) |
Add a non-scalable text item to the scene. | |
void | addSoilNameLabels (std::vector< std::string > soilNames, std::vector< GeoLib::Point * > profile, double offset) |
Adds text labels indicating the name of each soil layer. | |
StratBar * | addStratBar (GeoLib::StationBorehole *station, std::map< std::string, DataHolderLib::Color > *stratColors=nullptr) |
Add a stratigraphy-bar to the scene. | |
|
explicit |
Constructor.
Definition at line 26 of file StratScene.cpp.
References addDepthLabels(), addNonScalableText(), addSoilNameLabels(), addStratBar(), QNonScalableGraphicsTextItem::boundingRect(), StratBar::boundingRect(), GeoLib::StationBorehole::getDepth(), GeoLib::Station::getName(), GeoLib::StationBorehole::getProfile(), GeoLib::StationBorehole::getSoilNames(), and MARGIN.
|
overridedefault |
|
private |
Adds text labels indicating the depth at the beginning and end of each soil layer.
Definition at line 74 of file StratScene.cpp.
References addNonScalableText(), and MARGIN.
Referenced by StratScene().
|
private |
Add a non-scalable text item to the scene.
Definition at line 95 of file StratScene.cpp.
Referenced by StratScene(), addDepthLabels(), and addSoilNameLabels().
|
private |
Adds text labels indicating the name of each soil layer.
Definition at line 104 of file StratScene.cpp.
References addNonScalableText(), and MARGIN.
Referenced by StratScene().
|
private |
Add a stratigraphy-bar to the scene.
Definition at line 131 of file StratScene.cpp.
Referenced by StratScene().
|
static |
The margin between the boundary of the scene and the bounding box of all items within the scene.
Definition at line 39 of file StratScene.h.
Referenced by StratScene(), addDepthLabels(), addSoilNameLabels(), StratView::minimumSizeHint(), StratView::saveAsImage(), StratView::sizeHint(), and StratView::update().