20 : asrc(asrc_), arcpt(arcpt_), _distance(0.0)
33 for (
unsigned int i = 0; i <
_tabRays.size(); i++)
126 return _chemins[0].getAttenuation();
133 int firstReflex = -1;
134 unsigned int indiceDebutEffetEcran = 0;
138 for (i = 0; i < this->
_chemins.size(); i++)
147 sTemp =
_chemins[i].getAttenuation();
148 s =
s + sTemp * sTemp;
160 attDirect = attDirect + sTemp * sTemp;
166 for (i = 0; i <
s.getNbValues(); i++)
170 indiceDebutEffetEcran = i;
176 if (firstReflex != -1)
180 for (i = firstReflex; i <
_chemins.size(); i++)
184 attDirect = attDirect + sTemp;
188 for (i = 0; i < indiceDebutEffetEcran; i++)
201 for (
size_t i = 0; i <
_chemins.size(); i++)
Class for the definition of atmospheric conditions.
double distFrom(const OPoint3D &pt) const
Computes the distance from this point to another.
static OSpectreOctave getEmptyLinSpectre(const double &valInit=1.0E-20)
Create a physical quantity spectrum.
double * getTabValReel() override
Get an array of the real values of the spectrum.
Representation of one of the most optimal path between source and receptor: S—>R. The class TYChemin ...
This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths,...
tympan::AcousticReceptor & arcpt
Business receptor.
OPoint3D _ptS
Source point definition in the site frame.
OSpectreOctave getPEnergetique(const AtmosphericConditions &atmos)
Compute the acoustic pressure in octave bands on the journey.
OPoint3D _ptR
Receptor point definition in the site frame.
TYTabChemin _chemins
Paths collection.
void addCheminDirect(const TYChemin &chemin)
Add a new path to the array of direct paths.
TYTrajet & operator=(const TYTrajet &other)
Operator =.
OSpectreOctave getPNoOp()
Return the attenuation without computation (computed by an external function)
void addChemin(const TYChemin &chemin)
Add a new path.
std::vector< acoustic_path * > _tabRays
Vector of rays equivalent to chemin.
bool operator!=(const TYTrajet &other) const
Operator !=.
tympan::source_idx asrc_idx
TYTabChemin _cheminsDirect
Direct paths collection (without obstacles)
virtual ~TYTrajet()
Destructor.
tympan::receptor_idx arcpt_idx
void reset()
Reset method.
tympan::AcousticSource & asrc
Business source.
std::vector< acoustic_path * > & get_tab_rays()
double _distance
Distance between source and receptor.
bool operator==(const TYTrajet &other) const
Operator ==.
TYTrajet(tympan::AcousticSource &asrc_, tympan::AcousticReceptor &arcpt_)
Constructor.
Describes an acoustic receptor.
Point position
Destructor.
Describes an acoustic source.
Point position
Destructor.
static LPSolverConfiguration get()
Get the configuration.
This file provides class for solver configuration.