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