Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYDalle.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_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:432
#define OPROTODECL(classname)
Definition: TYElement.h:65
#define TY_EXTENSION_DECL_ONLY(classname)
Definition: TYElement.h:386
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