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
20
29class NetCdfConfigureDialog : public QDialog, private Ui_NetCdfConfigure
30{
31 Q_OBJECT
32
33public:
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();
40
41private slots:
42 void accept() override;
43 void reject() override;
49 void on_radioMesh_toggled(bool isTrue);
50
51private:
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;
71 std::string _currentPath;
72};
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)
NetCdfConfigureDialog(const std::string &fileName, QDialog *parent=nullptr)
void on_comboBoxDim2_currentIndexChanged(int id)
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).