Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYParoi.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 
16 /*
17  *
18  *
19  *
20  *
21  */
22 
23 #ifndef __TY_PAROI__
24 #define __TY_PAROI__
25 
28 
32 class TYParoi : public TYElement
33 {
36 
37  // Methodes
38 public:
42  TYParoi();
46  TYParoi(const TYParoi& other);
50  virtual ~TYParoi();
51 
53  TYParoi& operator=(const TYParoi& other);
55  bool operator==(const TYParoi& other) const;
57  bool operator!=(const TYParoi& other) const;
58 
67  virtual bool deepCopy(const TYElement* pOther, bool copyId = true, bool pUseCopyTag = false);
68 
69  virtual std::string toString() const;
70 
71  virtual DOM_Element toXML(DOM_Element& domElement);
72  virtual int fromXML(DOM_Element domElement);
73 
77  double getEpaisseur() const
78  {
79  return _epaisseur;
80  }
81 
85  void setEpaisseur(double epaisseur)
86  {
87  _epaisseur = epaisseur;
88  }
89 
94  {
95  return _matStruct._pObj;
96  }
97 
102  {
103  return _matStruct._pObj;
104  }
105 
110  {
111  _matStruct = mat;
112  _matStruct->setParent(this);
113  }
114 
119  {
120  return _matFace1._pObj;
121  }
122 
127  {
128  return _matFace1._pObj;
129  }
130 
135  {
136  _matFace1 = mat;
137  _matFace1->setParent(this);
138  }
139 
144  {
145  return _matFace2._pObj;
146  }
147 
152  {
153  return _matFace2._pObj;
154  }
155 
160  {
161  _matFace2 = mat;
162  _matFace2->setParent(this);
163  }
164 
165  // Membres
166 protected:
168  double _epaisseur;
169 
176 };
177 #endif // __TY_PAROI__
QDomElement DOM_Element
Definition: QT2DOM.h:30
#define OPROTODECL(classname)
Definition: TYElement.h:65
#define TY_EXTENSION_DECL_ONLY(classname)
Definition: TYElement.h:386
T * _pObj
The real pointer, must derived IRefCount.
Definition: smartptr.h:307
void setParent(TYElement *pParent)
Definition: TYElement.h:692
virtual DOM_Element toXML(DOM_Element &domElement)
Definition: TYParoi.cpp:119
void setMatStruct(const LPTYMateriauConstruction mat)
Definition: TYParoi.h:109
TYMateriauConstruction * getMatStruct()
Definition: TYParoi.h:93
LPTYMateriauConstruction _matStruct
Materiau interne.
Definition: TYParoi.h:171
TYParoi()
Definition: TYParoi.cpp:29
void setEpaisseur(double epaisseur)
Definition: TYParoi.h:85
virtual ~TYParoi()
Definition: TYParoi.cpp:48
const TYMateriauConstruction * getMatStruct() const
Definition: TYParoi.h:101
double getEpaisseur() const
Definition: TYParoi.h:77
const TYMateriauConstruction * getMatFace1() const
Definition: TYParoi.h:126
TYParoi & operator=(const TYParoi &other)
Operateur =.
Definition: TYParoi.cpp:50
double _epaisseur
Epaisseur.
Definition: TYParoi.h:168
TYMateriauConstruction * getMatFace2()
Definition: TYParoi.h:143
virtual int fromXML(DOM_Element domElement)
Definition: TYParoi.cpp:132
LPTYMateriauConstruction _matFace2
Materiau face 2 (exterieure)
Definition: TYParoi.h:175
const TYMateriauConstruction * getMatFace2() const
Definition: TYParoi.h:151
void setMatFace2(const LPTYMateriauConstruction &mat)
Definition: TYParoi.h:159
bool operator!=(const TYParoi &other) const
Operateur !=.
Definition: TYParoi.cpp:91
bool operator==(const TYParoi &other) const
Operateur ==.
Definition: TYParoi.cpp:63
void setMatFace1(const LPTYMateriauConstruction &mat)
Definition: TYParoi.h:134
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
Definition: TYParoi.cpp:96
LPTYMateriauConstruction _matFace1
Materiau face 1 (interieure)
Definition: TYParoi.h:173
virtual std::string toString() const
Definition: TYParoi.cpp:114
TYMateriauConstruction * getMatFace1()
Definition: TYParoi.h:118