6#include <QGraphicsScene>
23 std::map<std::string, DataHolderLib::Color>* stratColors =
nullptr,
24 QObject* parent =
nullptr);
32 void addDepthLabels(std::vector<GeoLib::Point*> profile,
double offset);
36 const QFont &font = QFont());
40 std::vector<GeoLib::Point*> profile,
45 std::map<std::string, DataHolderLib::Color>* stratColors =
nullptr);
A borehole as a geometric object.
A QGraphicsTextItem that will ignore all geometric transformations.
A 2D bar visualisation of a borehole stratigraphy.
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.