17#include <QGraphicsScene>
34 std::map<std::string, DataHolderLib::Color>* stratColors =
nullptr,
35 QObject* parent =
nullptr);
43 void addDepthLabels(std::vector<GeoLib::Point*> profile,
double offset);
47 const QFont &font = QFont());
51 std::vector<GeoLib::Point*> profile,
56 std::map<std::string, DataHolderLib::Color>* stratColors =
nullptr);
Definition of the Color class.
Definition of the StationBorehole class.
A borehole as a geometric object.
A QGraphicsTextItem that will ignore all geometric transformations.
A 2D bar visualisation of a borehole stratigraphy.
The scene for the visualisation of the stratigraphy of a borehole.
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.
StratScene(GeoLib::StationBorehole *station, std::map< std::string, DataHolderLib::Color > *stratColors=nullptr, QObject *parent=nullptr)
Constructor.
void addDepthLabels(std::vector< GeoLib::Point * > profile, double offset)
Adds text labels indicating the depth at the beginning and end of each soil layer.
static const int MARGIN
The margin between the boundary of the scene and the bounding box of all items within the scene.
StratBar * addStratBar(GeoLib::StationBorehole *station, std::map< std::string, DataHolderLib::Color > *stratColors=nullptr)
Add a stratigraphy-bar to the scene.