Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYAcousticPathFinder.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3  * This file is part of Code_TYMPAN (R).
4  * Code_TYMPAN (R) is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  * Code_TYMPAN (R) is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
14  */
15 
16 #ifndef __TYACOUSTICPATHFINDER__
17 #define __TYACOUSTICPATHFINDER__
18 
20 #include <gtest/gtest_prod.h>
21 
22 class TYSolver;
23 class TYTrajet;
24 
30 {
31 public:
35  virtual ~TYAcousticPathFinder();
36 
45  virtual void computePath(const std::deque<TYSIntersection>& tabIntersect, const TYTrajet& trajet,
46  TabPoint3D& ptsTop, TabPoint3D& ptsLeft, TabPoint3D& ptsRight);
48  virtual void init();
49 
50 private:
51  FRIEND_TEST(test_TYAcousticPathFinder, computePath);
54 
55  bool computeParcoursLateraux(const std::deque<TYSIntersection>& tabIntersect, const OSegment3D& rayon,
56  const bool& dessus, TabPoint3D& ptsLeft, TabPoint3D& ptsRight) const;
57 
60 };
61 
62 #endif // __TYACOUSTICPATHFINDER__
std::vector< OPoint3D > TabPoint3D
Definition: 3d.h:483
Class to define a segment.
Definition: 3d.h:1141
Build the acoustic path for the 9613 family solvers.
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.
bool _bCalcTrajetHorizontaux
Boolean to compute or not the horizontal trajectories.
TYSolver & _solver
Reference to the solver.
virtual ~TYAcousticPathFinder()
Destructor.
virtual void init()
Initialize the class parameters.
bool computeParcoursLateraux(const std::deque< TYSIntersection > &tabIntersect, const OSegment3D &rayon, const bool &dessus, TabPoint3D &ptsLeft, TabPoint3D &ptsRight) const
FRIEND_TEST(test_TYAcousticPathFinder, computePath)
TYAcousticPathFinder(TYSolver &solver)
Constructor.
Class which represents the Solver for 9613 family solvers.
Definition: TYSolver.h:36
This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths,...
Definition: TYTrajet.h:33