25 #include <gtest/gtest_prod.h> 214 #endif // __TY_TRAJET__ This file provides the declaration of the entities of the model, which inherit from BaseEntity...
TYTabChemin _chemins
Paths collection.
void setSpectre(const OSpectre &spectre)
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).
void setDistance(const double &distance)
void setPtSetPtR(const OPoint3D &pt1, const OPoint3D &pt2)
Get/Set points for source and receptor.
size_t getNbChemins()
Return the number of path in *this (in addition to the direct path).
OSpectre getPInterference(const AtmosphericConditions &atmos)
Compute the quadratic pressure on the journey.
OPoint3D _ptB
Point B of the segment.
OPoint3D _ptA
Point A of the segment.
tympan::receptor_idx arcpt_idx
void addChemin(const TYChemin &chemin)
Add a new path.
OSpectre _sLP
Spectrum at the receptor point of the journey which integrates geometrical divergence and the source ...
OPoint3D _ptR
Receptor point definition in the site frame.
TYTrajet & operator=(const TYTrajet &other)
Operator =.
bool operator==(const TYTrajet &other) const
Operator ==.
std::deque< TYChemin > TYTabChemin
TYChemin collection.
OSpectre getPEnergetique(const AtmosphericConditions &atmos)
Compute the acoustic pressure (phase modulation) on the journey.
double getDistance()
Get/Set the distance between source and receptor.
tympan::AcousticReceptor & arcpt
Business receptor.
TYTabChemin _cheminsDirect
Direct paths collection (without obstacles)
FRIEND_TEST(test_TYTrajet, getPInterference)
TYTrajet(tympan::AcousticSource &asrc_, tympan::AcousticReceptor &arcpt_)
Constructor.
OSpectre & getSpectre()
Get/Set the spectrum at the receptor point.
TYTabChemin & getCheminsDirect()
Return an array of the direct paths.
void reset()
Reset method.
void getPtSetPtRfromOSeg3D(OSegment3D &seg) const
TYTabChemin & getChemins()
Return the collection of paths of *this.
TYChemin getChemin(int index)
Return a path thanks to its index.
void setPtSetPtRfromOSeg3D(const OSegment3D &seg)
Get/Set points for source and receptor with an OSegment3D.
This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths, in addition to the direct path.
virtual ~TYTrajet()
Destructor.
void getPtSetPtR(OPoint3D &pt1, OPoint3D &pt2)
double _distance
Distance between source and receptor.
void addCheminDirect(const TYChemin &chemin)
Add a new path to the array of direct paths.
const OSpectre getSpectre() const
OSpectre correctTiers(const OSpectreComplex &si, const OSpectreComplex &sj, const AtmosphericConditions &atmos, const double &ri, const double &rj) const
const double getDistance() const
OSpectre getPNoOp()
Return the attenuation without computation (computed by an external function)
Describes an acoustic receptor.
std::vector< acoustic_path * > _tabRays
Vector of rays equivalent to chemin.
Representation of one of the most optimal path between source and receptor: S—>R.
Class to define a segment.
tympan::source_idx asrc_idx
OPoint3D _ptS
Source point definition in the site frame.
Describes an acoustic source.
Class for the definition of atmospheric conditions.
Store acoustic power values for different frequencies.
std::vector< acoustic_path * > & get_tab_rays()
tympan::AcousticSource & asrc
Business source.
bool operator!=(const TYTrajet &other) const
Operator !=.