Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYEtape.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_ETAPE__
24 #define __TY_ETAPE__
25 
29 
30 #include <vector>
31 #include <deque>
32 
46 class TYEtape
47 {
48  // Methods
49 public:
56  enum EtapeType
57  {
61  };
62 
72  TYEtape(const TYEtape& other);
78  virtual ~TYEtape();
79 
81  TYEtape& operator=(const TYEtape& other);
83  bool operator==(const TYEtape& other) const;
85  bool operator!=(const TYEtape& other) const;
93  {
94  return _type;
95  }
99  void setType(ACOUSTIC_EVENT_TYPES etapeType)
100  {
101  _type = etapeType;
102  }
103 
111  {
112  return _pt;
113  }
114  void setPoint(const OPoint3D& pt)
115  {
116  _pt = pt;
117  }
118 
127  {
128  return _Absorption;
129  }
131  {
132  return _Absorption;
133  }
137  void setAbsorption(const OSpectreComplex& Abso)
138  {
139  _Absorption = Abso;
140  }
141 
150  {
151  return _Attenuation;
152  }
153  const OSpectre getAttenuation() const
154  {
155  return _Attenuation;
156  }
160  void setAttenuation(const OSpectre& Att)
161  {
162  _Attenuation = Att;
163  }
165 
166  // Membres
167 public:
169  OPoint3D _pt;
172 };
173 
175 typedef std::deque<TYEtape> TYTabEtape;
176 
177 #endif // __TY_ETAPE__
All base classes related to 3D manipulation.
std::deque< TYEtape > TYTabEtape
TYEtape collection.
Definition: TYEtape.h:193
ACOUSTIC_EVENT_TYPES
Definition: acoustic_path.h:22
The 3D point class.
Definition: 3d.h:487
The TYEtape class is used to describe a part (a step) of a path (TYChemin) for the computation of tra...
Definition: TYEtape.h:47
OSpectre _Attenuation
attenuation Spectrum
Definition: TYEtape.h:171
void setAttenuation(const OSpectre &Att)
Definition: TYEtape.h:160
virtual ~TYEtape()
const OSpectreComplex getAbsorption() const
Definition: TYEtape.h:130
OPoint3D _pt
The starting point of this step.
Definition: TYEtape.h:186
bool operator!=(const TYEtape &other) const
Operator !=.
TYEtape & operator=(const TYEtape &other)
Operator =.
ACOUSTIC_EVENT_TYPES _type
Acoustic event type.
Definition: TYEtape.h:185
EtapeType
EtapeType : Indique le type de l'etape. EtapeType::EtapeInfra : Reflexion sur un element d'infrastruc...
Definition: TYEtape.h:57
@ EtapeInfra
Definition: TYEtape.h:58
@ EtapeForet
Definition: TYEtape.h:60
@ EtapeTopo
Definition: TYEtape.h:59
bool operator==(const TYEtape &other) const
Operator ==.
OSpectre getAttenuation()
Definition: TYEtape.h:149
ACOUSTIC_EVENT_TYPES getType() const
Definition: TYEtape.h:92
void setAbsorption(const OSpectreComplex &Abso)
Definition: TYEtape.h:137
void setPoint(const OPoint3D &pt)
Definition: TYEtape.h:114
OSpectreOctave _Absorption
absorption Spectrum
Definition: TYEtape.h:187
OSpectreOctave _Attenuation
attenuation Spectrum
Definition: TYEtape.h:188
OPoint3D getPoint() const
Definition: TYEtape.h:110
acoustic_event * asEvent() const
OSpectreComplex getAbsorption()
Definition: TYEtape.h:126
void setType(ACOUSTIC_EVENT_TYPES etapeType)
Definition: TYEtape.h:99
TYEtape(const TYEtape &other)
const OSpectre getAttenuation() const
Definition: TYEtape.h:153
OSpectreComplex _Absorption
absorption Spectrum
Definition: TYEtape.h:170
This class store data and provide functions to manipulate event in the acoustic context.
Definition: acoustic_path.h:40