Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYMachineModelerFrame.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_MACHINE_MODELER_FRAME__
28 #define __TY_MACHINE_MODELER_FRAME__
29 
30 #include <qwidget.h>
32 #include "TYModelerFrame.h"
33 
39 {
40  Q_OBJECT
41 
42 public:
46  TYMachineModelerFrame(LPTYMachine pMachine = 0, QWidget* parent = 0, const char* name = 0,
47  Qt::WindowFlags f = QFlag(0));
51  virtual ~TYMachineModelerFrame();
52 
56  void setMachine(LPTYMachine pMachine);
61  {
62  return _pMachine;
63  }
64 
67  {
72  };
73 
74 public slots:
75  virtual void setEditorMode(int mode);
76  virtual void updatePreferences();
77  virtual bool close();
78 
79  void calculDistribution();
80  virtual void closeEvent(QCloseEvent* pEvent); // CloseEvent is overriden
81 
82 protected:
85 
92 
94  static int _nbInstance;
95 };
96 
97 #endif //__TY_MACHINE_MODELER_FRAME__
Classe generique pour une fenetre de modeleur (fichier header)
const char * name
Gestion de l'edition d'un boite.
Definition: TYBoxEditor.h:41
gestion de l'edition d'un cylindre
Classe Modeler specialisee pour l'edition des machines.
static int _nbInstance
Nombre d'instance de type TYMachineModelerFrame.
MachineModelerMode
Les differents modes d'edition d'une Machine.
void setMachine(LPTYMachine pMachine)
virtual void setEditorMode(int mode)
TYBoxEditor * _pBoxEditor
Box editor.
LPTYMachine _pMachine
Un pointeur sur la machine a editer.
TYMachineModelerFrame(LPTYMachine pMachine=0, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=QFlag(0))
virtual void closeEvent(QCloseEvent *pEvent)
TYSemiCylinderEditor * _pSemiCylinderEditor
Semi cylinder editor.
TYCylinderEditor * _pCylinderEditor
Cylinder editor.
Classe generique pour une fenetre de modeleur.
gestion de l'edition d'un 1/2 cylindre