Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYSourceBafflee.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 #ifndef __TY_SOURCE_BAFFLEE__
21 #define __TY_SOURCE_BAFFLEE__
22 
24 #include "TYSourcePonctuelle.h"
25 
26 class OSegment3D;
27 
35 {
37 
38  // Methodes
39 public:
47  TYSourceBafflee(const TYSourceBafflee& other);
51  virtual ~TYSourceBafflee();
52 
56  bool operator==(const TYSourceBafflee& other) const;
58  bool operator!=(const TYSourceBafflee& 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 
78  // void setAcousticRectangle(LPTYAcousticRectangle pAcousticRectangle) ;
79  void setAcousticRectangle(LPTYRectangle pAcousticRectangle);
80 
84  // LPTYAcousticRectangle getAcousticRectangle() { return _pAcousticRectangle; }
86  {
87  return _pAcousticRectangle;
88  }
89 
93  // const LPTYAcousticRectangle getAcousticRectangle() const { return _pAcousticRectangle; }
95  {
96  return _pAcousticRectangle;
97  }
98 
99  // Membres
100 protected:
103 };
104 
107 
113 typedef std::vector<LPTYSourceBaffleeGeoNode> TYTabSourceBaffleeGeoNode;
114 
115 #endif // __TY_SOURCE_BAFFLEE__
QDomElement DOM_Element
Definition: QT2DOM.h:30
#define OPROTODECL(classname)
Definition: TYElement.h:65
SmartPtr< TYSourceBafflee > LPTYSourceBafflee
Smart Pointer sur TYSourceBafflee.
SmartPtr< TYSourceBaffleeGeoNode > LPTYSourceBaffleeGeoNode
Smart Pointer sur TYSourceBaffleeGeoNode.
TYGeometryNode TYSourceBaffleeGeoNode
Noeud geometrique de type TYSourceBafflee.
std::vector< LPTYSourceBaffleeGeoNode > TYTabSourceBaffleeGeoNode
Collection de noeuds geometriques de type TYSourceBafflee.
Class to define a segment.
Definition: 3d.h:1089
void setAcousticRectangle(LPTYRectangle pAcousticRectangle)
LPTYRectangle _pAcousticRectangle
Le rectangle acoustique associe a cette source.
virtual std::string toString() const
virtual ~TYSourceBafflee()
TYSourceBafflee & operator=(const TYSourceBafflee &other)
Operateur =.
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
bool operator==(const TYSourceBafflee &other) const
Operateur ==.
virtual DOM_Element toXML(DOM_Element &domElement)
bool operator!=(const TYSourceBafflee &other) const
Operateur !=.
virtual int fromXML(DOM_Element domElement)
LPTYRectangle getAcousticRectangle()
const LPTYRectangle getAcousticRectangle() const