OGS
StratWindow.cpp
Go to the documentation of this file.
1
16
17#include "GeoLib/Station.h"
18
21 std::map<std::string, DataHolderLib::Color>* stratColors,
22 QWidget* parent)
23 : QWidget(parent)
24{
25 setupUi(this);
26 stationView->setRenderHints(QPainter::Antialiasing);
27 stationView->setStation(station, stratColors);
29}
30
32{
33 this->close();
34}
35
37{
38 int width = (stationView->getWidth() > 800) ? 800 : stationView->getWidth();
39 int height =
40 (stationView->getHeight() > 600) ? 600 : stationView->getHeight();
41 resize(width, height);
42}
Definition of the Station class.
Definition of the StratWindow class.
A borehole as a geometric object.
void on_closeButton_clicked()
void resizeWindow()
Automatically resize window based on the measurements of the borehole.
StratWindow(GeoLib::StationBorehole *station, std::map< std::string, DataHolderLib::Color > *stratColors=nullptr, QWidget *parent=nullptr)