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
4
#include "
DataView/StratView/StratWindow.h
"
5
6
#include "
GeoLib/Station.h
"
7
8
StratWindow::StratWindow
(
9
GeoLib::StationBorehole
* station,
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);
17
resizeWindow
();
18
}
19
20
void
StratWindow::on_closeButton_clicked
()
21
{
22
this->close();
23
}
24
25
void
StratWindow::resizeWindow
()
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
}
Station.h
StratWindow.h
GeoLib::StationBorehole
A borehole as a geometric object.
Definition
StationBorehole.h:21
StratWindow::on_closeButton_clicked
void on_closeButton_clicked()
Definition
StratWindow.cpp:20
StratWindow::resizeWindow
void resizeWindow()
Automatically resize window based on the measurements of the borehole.
Definition
StratWindow.cpp:25
StratWindow::StratWindow
StratWindow(GeoLib::StationBorehole *station, std::map< std::string, DataHolderLib::Color > *stratColors=nullptr, QWidget *parent=nullptr)
Definition
StratWindow.cpp:8
Applications
DataExplorer
DataView
StratView
StratWindow.cpp
Generated by
1.14.0