Code_TYMPAN
4.2.0
Industrial site acoustic simulation
|
Representation of one of the most optimal path between source and receptor: S—>R. The class TYChemin represents a path between a Source and a receptor (Recepteur class). It's constituted of a collection of steps (TYEtape class). More...
#include <TYChemin.h>
Public Member Functions | |
TYChemin () | |
Constructor. More... | |
TYChemin (const TYChemin &other) | |
Copy contructor. More... | |
virtual | ~TYChemin () |
Destructor. More... | |
TYChemin & | operator= (const TYChemin &other) |
Operator =. More... | |
bool | operator== (const TYChemin &other) const |
Operator ==. More... | |
bool | operator!= (const TYChemin &other) const |
Operator !=. More... | |
void | calcAttenuation (const TYTabEtape &tabEtapes, const AtmosphericConditions &atmos) |
Compute the global attenuation on the path. More... | |
OSpectreComplex & | getAttenuation () |
Return the path attenuation. More... | |
const OSpectreComplex & | getAttenuation () const |
void | setAttenuation (const OSpectreComplex &att) |
Set the attenuation. More... | |
double | getLongueur () |
Get/Set the path length. More... | |
const double | getLongueur () const |
void | setLongueur (const double &longueur) |
double | getDistance () |
Get/Set the distance between source and receptor. More... | |
const double | getDistance () const |
void | setDistance (const double &distance) |
void | setType (const int &type) |
Change the path type. More... | |
int | getType () const |
Return the path type. More... | |
void | build_eq_path (const TYTabEtape &tabEtapes) |
build an acoustic_path from the tab of etapes More... | |
acoustic_path * | get_ray (OPoint3D ptR) |
Protected Attributes | |
TYTypeChemin | _typeChemin |
Path type (has an influence on the algorithm) More... | |
double | _longueur |
Total path length. More... | |
double | _distance |
Direct distance between source and receptor. More... | |
OSpectreComplex | _attenuation |
Attenuation spectrum of the path. More... | |
acoustic_path * | _eq_path |
Equivalent acoustic_path. More... | |
Representation of one of the most optimal path between source and receptor: S—>R. The class TYChemin represents a path between a Source and a receptor (Recepteur class). It's constituted of a collection of steps (TYEtape class).
Definition at line 38 of file TYChemin.h.
TYChemin::TYChemin | ( | ) |
TYChemin::TYChemin | ( | const TYChemin & | other | ) |
Copy contructor.
Definition at line 26 of file TYChemin.cpp.
|
virtual |
void TYChemin::build_eq_path | ( | const TYTabEtape & | tabEtapes | ) |
build an acoustic_path from the tab of etapes
Definition at line 150 of file TYChemin.cpp.
void TYChemin::calcAttenuation | ( | const TYTabEtape & | tabEtapes, |
const AtmosphericConditions & | atmos | ||
) |
Compute the global attenuation on the path.
Definition at line 72 of file TYChemin.cpp.
acoustic_path * TYChemin::get_ray | ( | OPoint3D | ptR | ) |
Definition at line 159 of file TYChemin.cpp.
|
inline |
Return the path attenuation.
const OSpectreComplex& getAttenuation()
Definition at line 77 of file TYChemin.h.
|
inline |
Definition at line 78 of file TYChemin.h.
|
inline |
Get/Set the distance between source and receptor.
const double getDistance() void setDistance(const double & distance)
Definition at line 105 of file TYChemin.h.
|
inline |
Definition at line 106 of file TYChemin.h.
|
inline |
Get/Set the path length.
const double getLongueur() void setLongueur(const double & longueur)
Definition at line 92 of file TYChemin.h.
|
inline |
Definition at line 93 of file TYChemin.h.
|
inline |
Return the path type.
Definition at line 121 of file TYChemin.h.
bool TYChemin::operator!= | ( | const TYChemin & | other | ) | const |
Operator =.
Definition at line 39 of file TYChemin.cpp.
bool TYChemin::operator== | ( | const TYChemin & | other | ) | const |
Operator ==.
Definition at line 53 of file TYChemin.cpp.
|
inline |
Set the attenuation.
Definition at line 84 of file TYChemin.h.
|
inline |
|
inline |
|
inline |
Change the path type.
Definition at line 114 of file TYChemin.h.
|
protected |
Attenuation spectrum of the path.
Definition at line 141 of file TYChemin.h.
|
protected |
Direct distance between source and receptor.
Definition at line 138 of file TYChemin.h.
|
protected |
Equivalent acoustic_path.
Definition at line 144 of file TYChemin.h.
|
protected |
Total path length.
Definition at line 135 of file TYChemin.h.
|
protected |
Path type (has an influence on the algorithm)
Definition at line 132 of file TYChemin.h.