OGS
CondFromRasterDialog.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 #include "ui_CondFromRaster.h"
18 #include <QDialog>
19 
20 namespace MeshLib {
21  class Mesh;
22 }
23 
25 
29 class CondFromRasterDialog : public QDialog, private Ui_CondFromRaster
30 {
31  Q_OBJECT
32 
33 public:
34  explicit CondFromRasterDialog(std::vector<MeshLib::Mesh*> msh_vec,
35  QDialog* parent = nullptr);
36  ~CondFromRasterDialog() override;
37 
38 private:
39  const std::vector<MeshLib::Mesh*> _msh_vec;
41 
42 private slots:
43  void on_integrateButton_toggled(bool isSelected);
45 
47  void accept() override;
48 
50  void reject() override;
51 
52 signals:
53  void directNodesWritten(std::string);
54  void transmitDisValues(std::vector< std::pair<std::size_t,double> >);
55 };
A dialog window for creating DIRECT boundary conditions from raster files.
void accept() override
Instructions if the OK-Button has been pressed.
StrictDoubleValidator * _scale_validator
void reject() override
Instructions if the Cancel-Button has been pressed.
void transmitDisValues(std::vector< std::pair< std::size_t, double > >)
CondFromRasterDialog(std::vector< MeshLib::Mesh * > msh_vec, QDialog *parent=nullptr)
void on_integrateButton_toggled(bool isSelected)
void directNodesWritten(std::string)
const std::vector< MeshLib::Mesh * > _msh_vec
A validator for an input field which only accepts decimals. Source code adapted from StackOverflow