Code_TYMPAN  4.2.0
Industrial site acoustic simulation
TYAcousticPathFinder.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012> <EDF-R&D> <FRANCE>
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for more details.
11  * You should have received a copy of the GNU General Public License along
12  * with this program; if not, write to the Free Software Foundation, Inc.,
13  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
14 */
15 
16 #ifndef __TYACOUSTICPATHFINDER__
17 #define __TYACOUSTICPATHFINDER__
18 
19 #include "TYSolverDefines.h"
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, TabPoint3D& ptsTop, TabPoint3D& ptsLeft, TabPoint3D& ptsRight);
47  virtual void init();
48 
49 private :
50  FRIEND_TEST(test_TYAcousticPathFinder, computePath);
53 
54  bool computeParcoursLateraux(const std::deque<TYSIntersection>& tabIntersect, const OSegment3D& rayon, const bool& dessus, TabPoint3D& ptsLeft, TabPoint3D& ptsRight) const;
55 
58 };
59 
60 #endif // __TYACOUSTICPATHFINDER__
FRIEND_TEST(test_TYAcousticPathFinder, computePath)
bool computeParcoursLateraux(const std::deque< TYSIntersection > &tabIntersect, const OSegment3D &rayon, const bool &dessus, TabPoint3D &ptsLeft, TabPoint3D &ptsRight) const
Default solver.
Definition: TYSolver.h:38
std::vector< OPoint3D > TabPoint3D
Definition: 3d.h:481
virtual ~TYAcousticPathFinder()
Destructor.
virtual void init()
Initialize the class parameters.
This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths, in addition to the direct path.
Definition: TYTrajet.h:35
TYSolver & _solver
Reference to the solver.
Build the acoustic path for the default solver.
Class to define a segment.
Definition: 3d.h:1087
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.
TYAcousticPathFinder(TYSolver &solver)
Constructor.