Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYBatimentModelerFrame.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 
27 #ifndef __TY_BATIMENT_MODELER_FRAME__
28 #define __TY_BATIMENT_MODELER_FRAME__
29 
30 #include <qwidget.h>
32 #include "TYModelerFrame.h"
33 
39 {
40  Q_OBJECT
41 
42 public:
47  TYBatimentModelerFrame(LPTYBatiment pBatiment = 0, QWidget* parent = 0, const char* name = 0,
48  Qt::WindowFlags f = QFlag(0));
53  virtual ~TYBatimentModelerFrame();
54 
59  void setBatiment(LPTYBatiment pBatiment);
65  {
66  return _pBatiment;
67  }
68 
71  {
77  };
78 
79 public slots:
80  virtual void setEditorMode(int mode);
81  virtual void updatePreferences();
82  virtual bool close();
83 
84  void calculDistribution();
85 
86  virtual void closeEvent(QCloseEvent* pEvent); // closeEvent is overriden
87 
88 protected:
91 
94 
97 
100 
102  static int _nbInstance;
103 };
104 
105 #endif //__TY_BATIMENT_MODELER_FRAME__
Classe generique pour une fenetre de modeleur (fichier header)
const char * name
Classe Modeler specialisee pour l'edition des batiments.
virtual ~TYBatimentModelerFrame()
Destructeur.
TYEtageEditor * _pEtageEditor
Editor pour la construction d'etage.
TYSourceEditor * _pSourceEditor
Editor pour l'ajout d'une source ponctuelle.
static int _nbInstance
Nombre d'instance de type TYBatimentModelerFrame.
LPTYBatiment _pBatiment
Un pointeur sur le bâtiment a editer.
void setBatiment(LPTYBatiment pBatiment)
Set/Get du bâtiment a editer.
TYBatimentModelerFrame(LPTYBatiment pBatiment=0, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=QFlag(0))
Constructeur par defaut.
virtual void setEditorMode(int mode)
virtual void closeEvent(QCloseEvent *pEvent)
TYSilosEditor * _pSilosEditor
Editor pour la construction de silos.
MachineModelerMode
Les differents modes d'edition d'un Batiment.
Construit un etage a partir des points saisis.
Definition: TYEtageEditor.h:51
Classe generique pour une fenetre de modeleur.
gestion de l'edition d'un silo
Definition: TYSilosEditor.h:36
gestion de l'edition d'une source