openPSTD  2.0
Open source simulation for sound propagation in urban environments
DomainProperties.h
1 // This file is part of openPSTD. //
3 // //
4 // openPSTD is free software: you can redistribute it and/or modify //
5 // it under the terms of the GNU General Public License as published by //
6 // the Free Software Foundation, either version 3 of the License, or //
7 // (at your option) any later version. //
8 // //
9 // openPSTD is distributed in the hope that it will be useful, //
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
12 // GNU General Public License for more details. //
13 // //
14 // You should have received a copy of the GNU General Public License //
15 // along with openPSTD. If not, see <http://www.gnu.org/licenses/>. //
16 // //
18 
20 //
21 // Date:
22 //
23 //
24 // Authors:
25 //
26 //
27 // Purpose:
28 //
29 //
31 
32 //
33 // Created by michiel on 1-9-2015.
34 //
35 
36 #ifndef OPENPSTD_DOMAINPROPERTIES_H
37 #define OPENPSTD_DOMAINPROPERTIES_H
38 
39 #include <QDialog>
40 #include <ui_DomainProperties.h>
41 #include <memory>
42 #include <kernel/KernelInterface.h>
43 
44 namespace OpenPSTD
45 {
46  namespace GUI
47  {
48 
49  class DomainProperties : public QDialog
50  {
51  Q_OBJECT
52 
53  public:
54  explicit DomainProperties(QWidget *parent = 0);
55 
56  float AbsorptionT();
57 
58  float AbsorptionB();
59 
60  float AbsorptionL();
61 
62  float AbsorptionR();
63 
64  bool LRT();
65 
66  bool LRB();
67 
68  bool LRL();
69 
70  bool LRR();
71 
72  void SetAbsorptionT(float value);
73 
74  void SetAbsorptionB(float value);
75 
76  void SetAbsorptionL(float value);
77 
78  void SetAbsorptionR(float value);
79 
80  void SetLRT(bool value);
81 
82  void SetLRB(bool value);
83 
84  void SetLRL(bool value);
85 
86  void SetLRR(bool value);
87 
88  void SetDomain(Kernel::DomainConf d);
89 
90  Kernel::DomainConf GetDomain();
91 
92  private:
94  std::unique_ptr<Ui_DomainProperties> ui;
95  };
96 
97  }
98 }
99 
100 #endif //OPENPSTD_DOMAINPROPERTIES_H
This is the general namespace of the OpenPSTD application.
Definition: Boundary.cpp:33
Definition: DomainProperties.h:49
Interface representation of the domain.
Definition: KernelInterface.h:166