16 #ifndef __TY_TRAJET_9613__
17 #define __TY_TRAJET_9613__
24 #include <gtest/gtest_prod.h>
All base classes related to 3D manipulation.
std::deque< TYChemin > TYTabChemin
TYChemin collection.
Representation of one of the most optimal path between source and receptor: S—>R.
Class for the definition of atmospheric conditions.
Class to define a segment.
OPoint3D _ptA
Point A of the segment.
OPoint3D _ptB
Point B of the segment.
OSpectreAbstract & toGPhy() const
Converts to physical quantity.
OSpectreAbstract & toTOct() const
Converts to one-third Octave.
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.
double getDistance()
Get/Set the distance between source and receptor.
void setPtSetPtRfromOSeg3D(const OSegment3D &seg)
Get/Set points for source and receptor with an OSegment3D.
const OSpectre getSpectre() const
OPoint3D _ptS
Source point definition in the site frame.
OSpectreOctave getPEnergetique(const AtmosphericConditions &atmos)
Compute the acoustic pressure in octave bands on the journey.
TYChemin getChemin(int index)
Return a path thanks to its index.
void getPtSetPtRfromOSeg3D(OSegment3D &seg) const
TYTabChemin & getCheminsDirect()
Return an array of the direct paths.
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 setDistance(const double &distance)
void addChemin(const TYChemin &chemin)
Add a new path.
void setPtSetPtR(const OPoint3D &pt1, const OPoint3D &pt2)
Get/Set points for source and receptor.
TYTabChemin & getChemins()
Return the collection of paths of *this.
std::vector< acoustic_path * > _tabRays
Vector of rays equivalent to chemin.
size_t getNbChemins()
Return the number of path in *this (in addition to the direct path).
bool operator!=(const TYTrajet &other) const
Operator !=.
tympan::source_idx asrc_idx
OSpectre getSpectre()
Get the spectrum in third-octave band at the receptor point \Used to build the result matrix by TYSol...
TYTabChemin _cheminsDirect
Direct paths collection (without obstacles)
virtual ~TYTrajet()
Destructor.
tympan::receptor_idx arcpt_idx
OSpectreOctave & getSpectreOct()
Get the spectrum in octave band at the receptor point \Used to compute the pressure spectrum in octav...
void reset()
Reset method.
void getPtSetPtR(OPoint3D &pt1, OPoint3D &pt2)
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.
const double getDistance() const
Describes an acoustic receptor.
Describes an acoustic source.
This file provides the declaration of the entities of the model, which inherit from BaseEntity.