Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYDalle.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 
16 /*
17  *
18  *
19  *
20  *
21  */
22 
23 #ifndef __TY_DALLE__
24 #define __TY_DALLE__
25 
27 #include "TYParoi.h"
28 
33 class TYDalle : public TYAcousticPolygon
34 {
38 
39  // Methodes
40 public:
44  TYDalle();
48  TYDalle(const TYDalle& other);
52  virtual ~TYDalle();
53 
55  TYDalle& operator=(const TYDalle& other);
57  bool operator==(const TYDalle& other) const;
59  bool operator!=(const TYDalle& other) const;
60 
74  virtual bool deepCopy(const TYElement* pOther, bool copyId = true, bool pUseCopyTag = false);
75 
76  virtual std::string toString() const;
77 
78  virtual DOM_Element toXML(DOM_Element& domElement);
79  virtual int fromXML(DOM_Element domElement);
80 
85  {
86  return _pParoi;
87  }
91  const LPTYParoi getParoi() const
92  {
93  return _pParoi;
94  }
98  void setParoi(const LPTYParoi pParoi);
99 
103  void setParoiLocked(const bool& bVal);
105  {
106  return _bParoiLocked;
107  }
108  const bool isParoiLocked() const
109  {
110  return _bParoiLocked;
111  }
112 
119 
120  // Membres
121 protected:
124 
130 };
131 
132 #endif // __TY_DALLE__
QDomElement DOM_Element
Definition: QT2DOM.h:30
#define TY_EXT_GRAPHIC_DECL_ONLY(classname)
Definition: TYElement.h:430
#define OPROTODECL(classname)
Definition: TYElement.h:64
#define TY_EXTENSION_DECL_ONLY(classname)
Definition: TYElement.h:385
TYMateriauConstruction * getMateriau()
Surcharge de la methode getMateriau pour la dalle.
Definition: TYDalle.cpp:170
const LPTYParoi getParoi() const
Definition: TYDalle.h:91
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
Definition: TYDalle.cpp:97
bool operator!=(const TYDalle &other) const
Operateur !=.
Definition: TYDalle.cpp:92
const bool isParoiLocked() const
Definition: TYDalle.h:108
virtual ~TYDalle()
Definition: TYDalle.cpp:63
LPTYParoi _pParoi
Une paroi associee a cette dalle.
Definition: TYDalle.h:123
virtual std::string toString() const
Definition: TYDalle.cpp:113
bool isParoiLocked()
Definition: TYDalle.h:104
virtual DOM_Element toXML(DOM_Element &domElement)
Definition: TYDalle.cpp:118
bool operator==(const TYDalle &other) const
Operateur ==.
Definition: TYDalle.cpp:76
void setParoiLocked(const bool &bVal)
Definition: TYDalle.cpp:160
LPTYParoi getParoi()
Definition: TYDalle.h:84
virtual int fromXML(DOM_Element domElement)
Definition: TYDalle.cpp:128
bool _bParoiLocked
Definition: TYDalle.h:129
void setParoi(const LPTYParoi pParoi)
Definition: TYDalle.cpp:148
TYDalle()
Definition: TYDalle.cpp:28
TYDalle & operator=(const TYDalle &other)
Operateur =.
Definition: TYDalle.cpp:65