Code_TYMPAN  4.2.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 
33 
47 class TYEtape
48 {
49  // Methods
50 public:
58  enum EtapeType
59  {
63  };
64 
69  TYEtape();
74  TYEtape(const TYEtape& other);
80  virtual ~TYEtape();
81 
82 
84  TYEtape& operator=(const TYEtape& other);
86  bool operator==(const TYEtape& other) const;
88  bool operator!=(const TYEtape& other) const;
95  ACOUSTIC_EVENT_TYPES getType() const { return _type; }
99  void setType(ACOUSTIC_EVENT_TYPES etapeType) { _type = etapeType; }
100 
107  OPoint3D getPoint() const { return _pt; }
108  void setPoint(const OPoint3D& pt) { _pt = pt; }
109 
118  const OSpectreComplex getAbsorption() const { return _Absorption; }
122  void setAbsorption(const OSpectreComplex& Abso) { _Absorption = Abso; }
123 
132  const OSpectre getAttenuation() const { return _Attenuation; }
136  void setAttenuation(const OSpectre& Att) { _Attenuation = Att; }
137  acoustic_event* asEvent() const;
138 
139  // Membres
140 public:
145 };
146 
147 
149 typedef std::deque<TYEtape> TYTabEtape;
150 
151 
152 #endif // __TY_ETAPE__
OSpectre _Attenuation
attenuation Spectrum
Definition: TYEtape.h:144
ACOUSTIC_EVENT_TYPES getType() const
Set/Get du type de cette etape.
Definition: TYEtape.h:95
This class store data and provide functions to manipulate event in the acoustic context.
Definition: acoustic_path.h:39
ACOUSTIC_EVENT_TYPES
Definition: acoustic_path.h:21
TYEtape()
Constructor.
Definition: TYEtape.cpp:20
The TYEtape class is used to describe a part (a step) of a path (TYChemin) for the computation of tra...
Definition: TYEtape.h:47
OPoint3D getPoint() const
Get/Set of the first point of the step.
Definition: TYEtape.h:107
void setAbsorption(const OSpectreComplex &Abso)
Definition: TYEtape.h:122
const OSpectre getAttenuation() const
Definition: TYEtape.h:132
void setPoint(const OPoint3D &pt)
Definition: TYEtape.h:108
bool operator!=(const TYEtape &other) const
Operator !=.
Definition: TYEtape.cpp:57
OSpectre getAttenuation()
Get/Set the attenuation spectrum associated to this step.
Definition: TYEtape.h:131
OPoint3D _pt
The starting point of this step.
Definition: TYEtape.h:142
bool operator==(const TYEtape &other) const
Operator ==.
Definition: TYEtape.cpp:45
void setAttenuation(const OSpectre &Att)
Definition: TYEtape.h:136
acoustic_event * asEvent() const
Definition: TYEtape.cpp:62
virtual ~TYEtape()
Destructor.
Definition: TYEtape.cpp:29
OSpectreComplex getAbsorption()
Get/Set the absorption spectrum associated to the first point of the step.
Definition: TYEtape.h:117
void setType(ACOUSTIC_EVENT_TYPES etapeType)
Definition: TYEtape.h:99
std::deque< TYEtape > TYTabEtape
TYEtape collection.
Definition: TYEtape.h:149
ACOUSTIC_EVENT_TYPES _type
Acoustic event type.
Definition: TYEtape.h:141
The 3D point class.
Definition: 3d.h:484
EtapeType
Indique le type de l&#39;etape.
Definition: TYEtape.h:58
Store acoustic power values for different frequencies.
Definition: spectre.h:49
OSpectreComplex _Absorption
absorption Spectrum
Definition: TYEtape.h:143
const OSpectreComplex getAbsorption() const
Definition: TYEtape.h:118
TYEtape & operator=(const TYEtape &other)
Operator =.
Definition: TYEtape.cpp:33