OGS
NetCdfConfigureDialog.h
Go to the documentation of this file.
1
11
#pragma once
12
13
#include <QDialog>
14
#include <netcdf>
15
16
#include "
MeshLib/Mesh.h
"
17
#include "ui_NetCdfConfigure.h"
18
19
class
VtkGeoImageSource
;
20
29
class
NetCdfConfigureDialog
:
public
QDialog,
private
Ui_NetCdfConfigure
30
{
31
Q_OBJECT
32
33
public
:
34
explicit
NetCdfConfigureDialog
(
const
std::string& fileName,
35
QDialog* parent =
nullptr
);
36
~NetCdfConfigureDialog
()
override
;
37
MeshLib::Mesh
*
getMesh
() {
return
_currentMesh
.get(); };
38
std::string
getName
();
39
VtkGeoImageSource
*
getRaster
() {
return
_currentRaster
; };
40
41
private
slots:
42
void
accept
()
override
;
43
void
reject
()
override
;
44
void
on_comboBoxVariable_currentIndexChanged
(
int
id
);
45
void
on_comboBoxDim1_currentIndexChanged
(
int
id
);
46
void
on_comboBoxDim2_currentIndexChanged
(
int
id
);
47
void
on_comboBoxDim3_currentIndexChanged
(
int
id
);
48
void
on_comboBoxDim4_currentIndexChanged
(
int
id
);
49
void
on_radioMesh_toggled
(
bool
isTrue);
50
51
private
:
54
int
setVariableSelect
();
55
void
setDimensionSelect
();
56
void
getDimEdges
(std::string
const
& name,
57
unsigned
& size,
58
double
& firstValue,
59
double
& lastValue);
60
void
createDataObject
();
61
int
getTimeStep
()
const
;
62
int
getDim4
()
const
;
63
double
getResolution
();
64
QString
setName
();
65
void
reverseNorthSouth
(
double
* data, std::size_t width, std::size_t height);
66
67
netCDF::NcFile
_currentFile
;
68
netCDF::NcVar
_currentVar
;
69
std::unique_ptr<MeshLib::Mesh>
_currentMesh
;
70
VtkGeoImageSource
*
_currentRaster
;
71
std::string
_currentPath
;
72
};
Mesh.h
Definition of the Mesh class.
MeshLib::Mesh
Definition
Mesh.h:43
NetCdfConfigureDialog
The dialog for converting data from NetCDF-files into OGS data structures. While NetCDF files can inc...
Definition
NetCdfConfigureDialog.h:30
NetCdfConfigureDialog::_currentRaster
VtkGeoImageSource * _currentRaster
Definition
NetCdfConfigureDialog.h:70
NetCdfConfigureDialog::on_comboBoxDim3_currentIndexChanged
void on_comboBoxDim3_currentIndexChanged(int id)
Definition
NetCdfConfigureDialog.cpp:126
NetCdfConfigureDialog::getRaster
VtkGeoImageSource * getRaster()
Definition
NetCdfConfigureDialog.h:39
NetCdfConfigureDialog::on_radioMesh_toggled
void on_radioMesh_toggled(bool isTrue)
Definition
NetCdfConfigureDialog.cpp:408
NetCdfConfigureDialog::_currentMesh
std::unique_ptr< MeshLib::Mesh > _currentMesh
Definition
NetCdfConfigureDialog.h:69
NetCdfConfigureDialog::createDataObject
void createDataObject()
Definition
NetCdfConfigureDialog.cpp:283
NetCdfConfigureDialog::_currentPath
std::string _currentPath
Definition
NetCdfConfigureDialog.h:71
NetCdfConfigureDialog::getMesh
MeshLib::Mesh * getMesh()
Definition
NetCdfConfigureDialog.h:37
NetCdfConfigureDialog::setName
QString setName()
Definition
NetCdfConfigureDialog.cpp:369
NetCdfConfigureDialog::on_comboBoxVariable_currentIndexChanged
void on_comboBoxVariable_currentIndexChanged(int id)
Definition
NetCdfConfigureDialog.cpp:92
NetCdfConfigureDialog::reverseNorthSouth
void reverseNorthSouth(double *data, std::size_t width, std::size_t height)
Definition
NetCdfConfigureDialog.cpp:386
NetCdfConfigureDialog::getDim4
int getDim4() const
Definition
NetCdfConfigureDialog.cpp:247
NetCdfConfigureDialog::getName
std::string getName()
Definition
NetCdfConfigureDialog.cpp:378
NetCdfConfigureDialog::on_comboBoxDim1_currentIndexChanged
void on_comboBoxDim1_currentIndexChanged(int id)
Definition
NetCdfConfigureDialog.cpp:100
NetCdfConfigureDialog::_currentFile
netCDF::NcFile _currentFile
Definition
NetCdfConfigureDialog.h:67
NetCdfConfigureDialog::NetCdfConfigureDialog
NetCdfConfigureDialog(const std::string &fileName, QDialog *parent=nullptr)
Definition
NetCdfConfigureDialog.cpp:28
NetCdfConfigureDialog::setVariableSelect
int setVariableSelect()
Definition
NetCdfConfigureDialog.cpp:156
NetCdfConfigureDialog::on_comboBoxDim2_currentIndexChanged
void on_comboBoxDim2_currentIndexChanged(int id)
Definition
NetCdfConfigureDialog.cpp:112
NetCdfConfigureDialog::accept
void accept() override
Definition
NetCdfConfigureDialog.cpp:59
NetCdfConfigureDialog::setDimensionSelect
void setDimensionSelect()
Definition
NetCdfConfigureDialog.cpp:177
NetCdfConfigureDialog::reject
void reject() override
Definition
NetCdfConfigureDialog.cpp:87
NetCdfConfigureDialog::getResolution
double getResolution()
Definition
NetCdfConfigureDialog.cpp:261
NetCdfConfigureDialog::getTimeStep
int getTimeStep() const
Definition
NetCdfConfigureDialog.cpp:242
NetCdfConfigureDialog::~NetCdfConfigureDialog
~NetCdfConfigureDialog() override
Definition
NetCdfConfigureDialog.cpp:53
NetCdfConfigureDialog::getDimEdges
void getDimEdges(std::string const &name, unsigned &size, double &firstValue, double &lastValue)
Definition
NetCdfConfigureDialog.cpp:224
NetCdfConfigureDialog::_currentVar
netCDF::NcVar _currentVar
Definition
NetCdfConfigureDialog.h:68
NetCdfConfigureDialog::on_comboBoxDim4_currentIndexChanged
void on_comboBoxDim4_currentIndexChanged(int id)
Definition
NetCdfConfigureDialog.cpp:142
VtkGeoImageSource
The VtkVisPipeline source object of a geo-referenced image (file).
Definition
VtkGeoImageSource.h:40
Applications
DataExplorer
VtkVis
NetCdfConfigureDialog.h
Generated by
1.11.0