Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYBatimentModelerFrame.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 
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 = Qt::SubWindow);
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.
TYBatimentModelerFrame(LPTYBatiment pBatiment=0, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=Qt::SubWindow)
Constructeur par defaut.
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.
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
Generic class for a modeler window.
gestion de l'edition d'un silo
Definition: TYSilosEditor.h:36
gestion de l'edition d'une source