Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYSourceCheminee.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_CHEMINEE__
21 #define __TY_SOURCE_CHEMINEE__
22 
24 
25 class OSegment3D;
26 
35 {
37 
38  // Methodes
39 public:
47  TYSourceCheminee(const TYSourceCheminee& other);
51  virtual ~TYSourceCheminee();
52 
56  bool operator==(const TYSourceCheminee& other) const;
58  bool operator!=(const TYSourceCheminee& 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);
83  // LPTYAcousticRectangle getAcousticRectangle() { return _pAcousticRectangle; }
85  {
86  return _pAcousticRectangle;
87  }
91  // const LPTYAcousticRectangle getAcousticRectangle() const { return _pAcousticRectangle; }
93  {
94  return _pAcousticRectangle;
95  }
96 
97  // Fonctions privees
98 private:
110  double normeQChem(const int& indice_Ka, const int& indice_theta, const double& ka,
111  const double& theta) const;
112 
113  // Membres
114 protected:
116  // LPTYAcousticRectangle _pAcousticRectangle;
118 };
119 
122 
128 typedef std::vector<LPTYSourceChemineeGeoNode> TYTabSourceChemineeGeoNode;
129 
130 #endif // __TY_SOURCE_CHEMINEE__
QDomElement DOM_Element
Definition: QT2DOM.h:30
#define OPROTODECL(classname)
Definition: TYElement.h:65
std::vector< LPTYSourceChemineeGeoNode > TYTabSourceChemineeGeoNode
Collection de noeuds geometriques de type TYSourceCheminee.
SmartPtr< TYSourceChemineeGeoNode > LPTYSourceChemineeGeoNode
Smart Pointer sur TYSourceChemineeGeoNode.
TYGeometryNode TYSourceChemineeGeoNode
Noeud geometrique de type TYSourceCheminee.
SmartPtr< TYSourceCheminee > LPTYSourceCheminee
Smart Pointer sur TYSourceCheminee.
Class to define a segment.
Definition: 3d.h:1089
LPTYRectangle _pAcousticRectangle
Le rectangle acoustique associe a cette source.
double normeQChem(const int &indice_Ka, const int &indice_theta, const double &ka, const double &theta) const
const LPTYRectangle getAcousticRectangle() const
bool operator!=(const TYSourceCheminee &other) const
Operateur !=.
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
TYSourceCheminee & operator=(const TYSourceCheminee &other)
Operateur =.
bool operator==(const TYSourceCheminee &other) const
Operateur ==.
virtual ~TYSourceCheminee()
void setAcousticRectangle(LPTYRectangle pAcousticRectangle)
virtual std::string toString() const
virtual int fromXML(DOM_Element domElement)
LPTYRectangle getAcousticRectangle()
virtual DOM_Element toXML(DOM_Element &domElement)