153 #endif // __TY_CHEMIN__ void setType(const int &type)
Change the path type.
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).
bool operator==(const TYChemin &other) const
Operator ==.
bool operator!=(const TYChemin &other) const
Operator !=.
double getLongueur()
Get/Set the path length.
void build_eq_path(const TYTabEtape &tabEtapes)
build an acoustic_path from the tab of etapes
double _longueur
Total path length.
std::deque< TYChemin > TYTabChemin
TYChemin collection.
OSpectreComplex _attenuation
Attenuation spectrum of the path.
acoustic_path * _eq_path
Equivalent acoustic_path.
double getDistance()
Get/Set the distance between source and receptor.
const double getDistance() const
double _distance
Direct distance between source and receptor.
const OSpectreComplex & getAttenuation() const
void calcAttenuation(const TYTabEtape &tabEtapes, const AtmosphericConditions &atmos)
Compute the global attenuation on the path.
void setDistance(const double &distance)
const double getLongueur() const
void setAttenuation(const OSpectreComplex &att)
Set the attenuation.
std::deque< TYEtape > TYTabEtape
TYEtape collection.
void setLongueur(const double &longueur)
Class for the definition of atmospheric conditions.
virtual ~TYChemin()
Destructor.
TYChemin & operator=(const TYChemin &other)
Operator =.
acoustic_path * get_ray(OPoint3D ptR)
OSpectreComplex & getAttenuation()
Return the path attenuation.
TYTypeChemin _typeChemin
Path type (has an influence on the algorithm)
int getType() const
Return the path type.