Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TYAcousticPathFinder Class Reference

Build the acoustic path for the 9613 solver. More...

#include <TYAcousticPathFinder.h>

Collaboration diagram for TYAcousticPathFinder:
Collaboration graph
[legend]

Public Member Functions

 TYAcousticPathFinder (TYSolver &solver)
 Constructor. More...
 
virtual ~TYAcousticPathFinder ()
 Destructor. More...
 
virtual void computePath (const std::deque< TYSIntersection > &tabIntersect, const TYTrajet &trajet, TabPoint3D &ptsTop, TabPoint3D &ptsLeft, TabPoint3D &ptsRight)
 Compute a path between a source and a receptor. The receptor is not included in the path. More...
 
virtual void init ()
 Initialize the class parameters. More...
 
 TYAcousticPathFinder (TYSolver &solver)
 Constructor. More...
 
virtual ~TYAcousticPathFinder ()
 Destructor. More...
 
virtual void computePath (const std::deque< TYSIntersection > &tabIntersect, const TYTrajet &trajet, TabPoint3D &ptsTop, TabPoint3D &ptsLeft, TabPoint3D &ptsRight)
 Compute a path between a source and a receptor. The receptor is not included in the path. More...
 
virtual void init ()
 Initialize the class parameters. More...
 

Private Member Functions

 FRIEND_TEST (test_TYAcousticPathFinder, computePath)
 
bool computeParcoursLateraux (const std::deque< TYSIntersection > &tabIntersect, const OSegment3D &rayon, const bool &dessus, TabPoint3D &ptsLeft, TabPoint3D &ptsRight) const
 
 FRIEND_TEST (test_TYAcousticPathFinder, computePath)
 
bool computeParcoursLateraux (const std::deque< TYSIntersection > &tabIntersect, const OSegment3D &rayon, const bool &dessus, TabPoint3D &ptsLeft, TabPoint3D &ptsRight) const
 

Private Attributes

TYSolver_solver
 Reference to the solver. More...
 
bool _bCalcTrajetHorizontaux
 Boolean to compute or not the horizontal trajectories. More...
 

Detailed Description

Build the acoustic path for the 9613 solver.

Build the acoustic path for the default solver.

Definition at line 29 of file TYAcousticPathFinder.h.

Constructor & Destructor Documentation

◆ TYAcousticPathFinder() [1/2]

TYAcousticPathFinder::TYAcousticPathFinder ( TYSolver solver)

Constructor.

Definition at line 21 of file TYAcousticPathFinder.cpp.

◆ ~TYAcousticPathFinder() [1/2]

TYAcousticPathFinder::~TYAcousticPathFinder ( )
virtual

Destructor.

Definition at line 25 of file TYAcousticPathFinder.cpp.

◆ TYAcousticPathFinder() [2/2]

TYAcousticPathFinder::TYAcousticPathFinder ( TYSolver solver)

Constructor.

◆ ~TYAcousticPathFinder() [2/2]

virtual TYAcousticPathFinder::~TYAcousticPathFinder ( )
virtual

Destructor.

Member Function Documentation

◆ computeParcoursLateraux() [1/2]

bool TYAcousticPathFinder::computeParcoursLateraux ( const std::deque< TYSIntersection > &  tabIntersect,
const OSegment3D rayon,
const bool &  dessus,
TabPoint3D ptsLeft,
TabPoint3D ptsRight 
) const
private

Definition at line 51 of file TYAcousticPathFinder.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ computeParcoursLateraux() [2/2]

bool TYAcousticPathFinder::computeParcoursLateraux ( const std::deque< TYSIntersection > &  tabIntersect,
const OSegment3D rayon,
const bool &  dessus,
TabPoint3D ptsLeft,
TabPoint3D ptsRight 
) const
private

◆ computePath() [1/2]

void TYAcousticPathFinder::computePath ( const std::deque< TYSIntersection > &  tabIntersect,
const TYTrajet trajet,
TabPoint3D ptsTop,
TabPoint3D ptsLeft,
TabPoint3D ptsRight 
)
virtual

Compute a path between a source and a receptor. The receptor is not included in the path.

Parameters
tabIntersectArray of intersections
trajetTrajectories
ptsTopPath (array of points) in case of face visualization (_bCalcTrajetHorizontaux false)
ptsLeftPath (array of points) in case of top visualization (_bCalcTrajetHorizontaux true)
ptsRightPath (array of points) in case of top visualization (_bCalcTrajetHorizontaux true)

Definition at line 32 of file TYAcousticPathFinder.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ computePath() [2/2]

virtual void TYAcousticPathFinder::computePath ( const std::deque< TYSIntersection > &  tabIntersect,
const TYTrajet trajet,
TabPoint3D ptsTop,
TabPoint3D ptsLeft,
TabPoint3D ptsRight 
)
virtual

Compute a path between a source and a receptor. The receptor is not included in the path.

Parameters
tabIntersectArray of intersections
trajetTrajectories
ptsTopPath (array of points) in case of face visualization (_bCalcTrajetHorizontaux false)
ptsLeftPath (array of points) in case of top visualization (_bCalcTrajetHorizontaux true)
ptsRightPath (array of points) in case of top visualization (_bCalcTrajetHorizontaux true)

◆ FRIEND_TEST() [1/2]

TYAcousticPathFinder::FRIEND_TEST ( test_TYAcousticPathFinder  ,
computePath   
)
private

◆ FRIEND_TEST() [2/2]

TYAcousticPathFinder::FRIEND_TEST ( test_TYAcousticPathFinder  ,
computePath   
)
private

◆ init() [1/2]

void TYAcousticPathFinder::init ( )
virtual

Initialize the class parameters.

Definition at line 27 of file TYAcousticPathFinder.cpp.

Here is the call graph for this function:

◆ init() [2/2]

virtual void TYAcousticPathFinder::init ( )
virtual

Initialize the class parameters.

Member Data Documentation

◆ _bCalcTrajetHorizontaux

bool TYAcousticPathFinder::_bCalcTrajetHorizontaux
private

Boolean to compute or not the horizontal trajectories.

Definition at line 59 of file TYAcousticPathFinder.h.

◆ _solver

TYSolver & TYAcousticPathFinder::_solver
private

Reference to the solver.

Definition at line 53 of file TYAcousticPathFinder.h.


The documentation for this class was generated from the following files: