Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYMurElement.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_MURELEMENT__
24 #define __TY_MURELEMENT__
25 
27 #include "TYParoi.h"
28 
33 {
37 
38  // Methodes
39 public:
43  TYMurElement();
47  TYMurElement(const TYMurElement& other);
51  virtual ~TYMurElement();
52 
54  TYMurElement& operator=(const TYMurElement& other);
56  bool operator==(const TYMurElement& other) const;
58  bool operator!=(const TYMurElement& other) const;
59 
68  virtual bool deepCopy(const TYElement* pOther, bool copyId = true, bool pUseCopyTag = false);
69 
70  virtual std::string toString() const;
71 
72  virtual DOM_Element toXML(DOM_Element& domElement);
73  virtual int fromXML(DOM_Element domElement);
74 
75  // Redefinie pour faire un setcolor a son parent
76  virtual void setColor(const OColor& color);
77 
78  virtual TYTabSourcePonctuelleGeoNode getSrcs() const;
79  virtual TYSourcePonctuelle srcPonctEquiv() const;
80  virtual void distriSrcs();
81  virtual bool setSrcsLw();
82 
83  virtual double surface() const;
84  virtual int intersects(const TYSurfaceInterface* pSurf, OSegment3D& seg) const;
85  virtual int intersects(const OSegment3D& seg, OPoint3D& pt) const;
86 
92  {
93  return _pParoi->getMatFace2();
94  }
95 
100  {
101  return _pParoi;
102  }
106  const LPTYParoi getParoi() const
107  {
108  return _pParoi;
109  }
113  void setParoi(const LPTYParoi pParoi)
114  {
115  _pParoi = pParoi;
116  _pParoi->setParent(this);
117  }
118 
119  // Membres
120 protected:
123 };
124 
130 typedef std::vector<LPTYMurElementGeoNode> TYTabMurElementGeoNode;
131 
132 #endif // __TY_MURELEMENT__
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
std::vector< LPTYMurElementGeoNode > TYTabMurElementGeoNode
Collection de noeuds geometriques de type TYMurElement.
Definition: TYMurElement.h:130
SmartPtr< TYMurElementGeoNode > LPTYMurElementGeoNode
Smart Pointer sur TYMurElementGeoNode.
Definition: TYMurElement.h:128
TYGeometryNode TYMurElementGeoNode
Noeud geometrique de type TYMurElement.
Definition: TYMurElement.h:126
std::vector< LPTYSourcePonctuelleGeoNode > TYTabSourcePonctuelleGeoNode
Collection de noeuds geometriques de type TYSourcePonctuelle.
Definition: color.h:31
The 3D point class.
Definition: 3d.h:487
Class to define a segment.
Definition: 3d.h:1141
void setParent(TYElement *pParent)
Definition: TYElement.h:699
LPTYParoi getParoi()
Definition: TYMurElement.h:99
virtual ~TYMurElement()
virtual TYSourcePonctuelle srcPonctEquiv() const
virtual int intersects(const TYSurfaceInterface *pSurf, OSegment3D &seg) const
virtual double surface() const
const LPTYParoi getParoi() const
Definition: TYMurElement.h:106
virtual void setColor(const OColor &color)
void setParoi(const LPTYParoi pParoi)
Definition: TYMurElement.h:113
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
virtual std::string toString() const
virtual LPTYMateriauConstruction getMateriau() const
Definition: TYMurElement.h:91
virtual int fromXML(DOM_Element domElement)
bool operator==(const TYMurElement &other) const
Operateur ==.
bool operator!=(const TYMurElement &other) const
Operateur !=.
LPTYParoi _pParoi
Paroi.
Definition: TYMurElement.h:122
virtual DOM_Element toXML(DOM_Element &domElement)
virtual TYTabSourcePonctuelleGeoNode getSrcs() const
virtual void distriSrcs()
virtual bool setSrcsLw()
TYMurElement & operator=(const TYMurElement &other)
Operateur =.
TYMateriauConstruction * getMatFace2()
Definition: TYParoi.h:143