28 std::map<std::string, DataHolderLib::Color>* stratColors)
37 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
38 setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
51 QRectF viewRect =
_scene->itemsBoundingRect();
52 _scene->setSceneRect(viewRect);
56 fitInView(sceneInView, Qt::IgnoreAspectRatio);
63 QRectF viewRect =
_scene->itemsBoundingRect();
65 QImage::Format_ARGB32);
66 QPainter painter(&img);
68 this->render(&painter);
Definition of the Station class.
Definition of the StratView class.
A borehole as a geometric object.
The scene for the visualisation of the stratigraphy of a borehole.
static const int MARGIN
The margin between the boundary of the scene and the bounding box of all items within the scene.
void saveAsImage(QString fileName)
void update()
Updates the view automatically when a Borehole is added or when the window containing the view change...
void initialize()
Initialises the view.
void setStation(GeoLib::StationBorehole *station, std::map< std::string, DataHolderLib::Color > *stratColors=nullptr)
Sets the Borehole whose data should be visualised.
void resizeEvent(QResizeEvent *event) override
Resizes the scene.