OGS
StratWindow.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
5
6#include "GeoLib/Station.h"
7
10 std::map<std::string, DataHolderLib::Color>* stratColors,
11 QWidget* parent)
12 : QWidget(parent)
13{
14 setupUi(this);
15 stationView->setRenderHints(QPainter::Antialiasing);
16 stationView->setStation(station, stratColors);
18}
19
21{
22 this->close();
23}
24
26{
27 int width = (stationView->getWidth() > 800) ? 800 : stationView->getWidth();
28 int height =
29 (stationView->getHeight() > 600) ? 600 : stationView->getHeight();
30 resize(width, height);
31}
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)