Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYBoundaryNoiseMapEditor.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3  * This file is part of Code_TYMPAN (R).
4  * Code_TYMPAN (R) 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  * Code_TYMPAN (R) is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
14  */
15 
26 #ifndef __TY_BOUNDARY_NOISE_MAP_EDITOR__
27 #define __TY_BOUNDARY_NOISE_MAP_EDITOR__
28 
29 #include <qdialog.h>
30 #include <qlineedit.h>
31 #include <qradiobutton.h>
32 // Added by qt3to4:
33 #include <QBoxLayout>
34 #include <QLabel>
35 
36 #include "TYPolyLineEditor.h"
39 
40 class TabPointsWidget;
46 {
47  Q_OBJECT
48 
49 public:
52 
53 public slots:
57  void endBoundaryNoiseMap();
58 
63  void updateMinimumDensity(double thickness);
64 
70  bool checkValidity(bool& forceOpened);
74  void createPropertiesDlg(bool forceOpened);
75 
79  void dialogConfirmed(double height, double thickness, bool closed, double distance, bool forceOpened);
80 
81  virtual void slotMousePressed(int x, int y, Qt::MouseButton button, Qt::KeyboardModifiers state);
82 
83 protected:
86 
89 
92 };
93 
94 #endif // __TY_BOUNDARY_NOISE_MAP_EDITOR__
SpinBox converting comas to points (header file)
gestion de l'edition d'une polyligne (fichier header)
Creation of a TYBoundaryNoiseMap.
void updateMinimumDensity(double thickness)
Update the minimum value of the density thanks to the new thickness value.
TYBoundaryNoiseMapEditor(TYSiteModelerFrame *pModeler)
TYDoubleSpinBox * _pDistanceSpinBox
Density spin box.
void createPropertiesDlg(bool forceOpened)
Create the properties dialog that will pop up once the user finishes the polyline creation.
TYDoubleSpinBox * _pThicknessSpinBox
Thickness spin box.
TabPointsWidget * _tabPtsW
Geometry description.
void endBoundaryNoiseMap()
Build a BoundaryNoiseMap from an array of points.
bool checkValidity(bool &forceOpened)
Return true if the polyline is valid and can be built. It also tells if the polyline should be opened...
void dialogConfirmed(double height, double thickness, bool closed, double distance, bool forceOpened)
When the user confirms the boundary noise map creation after the properties dialog pop up.
virtual void slotMousePressed(int x, int y, Qt::MouseButton button, Qt::KeyboardModifiers state)
gestion de l'edition d'une polyligne
Classe Modeler specialisee pour l'edition des sites.