Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYSourceCheminee.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 #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:64
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:1141
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)