Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYMachineModelerFrame.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_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 = Qt::SubWindow);
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)
TYMachineModelerFrame(LPTYMachine pMachine=0, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=Qt::SubWindow)
virtual void setEditorMode(int mode)
TYBoxEditor * _pBoxEditor
Box editor.
LPTYMachine _pMachine
Un pointeur sur la machine a editer.
virtual void closeEvent(QCloseEvent *pEvent)
TYSemiCylinderEditor * _pSemiCylinderEditor
Semi cylinder editor.
TYCylinderEditor * _pCylinderEditor
Cylinder editor.
Generic class for a modeler window.
gestion de l'edition d'un 1/2 cylindre