Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYBoundaryNoiseMapEditor.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012> <EDF-R&D> <FRANCE>
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for more details.
11  * You should have received a copy of the GNU General Public License along
12  * with this program; if not, write to the Free Software Foundation, Inc.,
13  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
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"
38 
39 class QDoubleSpinBox;
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 density, bool forceOpened);
80 
81  virtual void slotMousePressed(int x, int y, Qt::MouseButton button, Qt::KeyboardModifiers state);
82 
83 protected:
85  QDoubleSpinBox* _pDensitySpinBox;
86 
88  QDoubleSpinBox* _pThicknessSpinBox;
89 
92 };
93 
94 #endif // __TY_BOUNDARY_NOISE_MAP_EDITOR__
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.
QDoubleSpinBox * _pThicknessSpinBox
Thickness spin box.
TYBoundaryNoiseMapEditor(TYSiteModelerFrame *pModeler)
QDoubleSpinBox * _pDensitySpinBox
Density spin box.
void createPropertiesDlg(bool forceOpened)
Create the properties dialog that will pop up once the user finishes the polyline creation.
TabPointsWidget * _tabPtsW
Geometry description.
void endBoundaryNoiseMap()
Build a BoundaryNoiseMap from an array of points.
void dialogConfirmed(double height, double thickness, bool closed, double density, bool forceOpened)
When the user confirms the boundary noise map creation after the properties dialog pop up.
bool checkValidity(bool &forceOpened)
Return true if the polyline is valid and can be built. It also tells if the polyline should be opened...
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.