Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYTask9613Solver.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 __TY_TASK_9613SOLVER__
17 #define __TY_TASK_9613SOLVER__
18 
19 #include <deque>
22 
23 class TYSolver9613Solver;
24 class TYTrajet9613Solver;
25 
29 class TYTask9613Solver : public TYTask
30 {
31 public:
42  const tympan::triangle_pool_t& triangles, const tympan::material_pool_t& materials,
43  TYTrajet9613Solver& trajet, int nNbTrajets);
44 
45 private:
49  virtual void getRayonFromTrajet(OSegment3D& rayon) override;
50 
54  virtual void selectFaces(OSegment3D& rayon) override;
55 
59  virtual void computePath(TabPoint3D& ptsTop, TabPoint3D& ptsLeft, TabPoint3D& ptsRight) override;
60 
64  void launchAcousticComputation(TabPoint3D& ptsTop, TabPoint3D& ptsLeft, TabPoint3D& ptsRight) override;
65 
66 private:
68 
70 };
71 
72 #endif // __TY_TASK_9613SOLVER__
std::vector< OPoint3D > TabPoint3D
Definition: 3d.h:483
Class to define a segment.
Definition: 3d.h:1141
Task of a thread collection for Tympan.
virtual void getRayonFromTrajet(OSegment3D &rayon) override
Build a ray from the source->receptor Trajet.
void launchAcousticComputation(TabPoint3D &ptsTop, TabPoint3D &ptsLeft, TabPoint3D &ptsRight) override
Delegate to solver the acoustic computation for this task.
TYTask9613Solver(TYSolver9613Solver &solver, const tympan::nodes_pool_t &nodes, const tympan::triangle_pool_t &triangles, const tympan::material_pool_t &materials, TYTrajet9613Solver &trajet, int nNbTrajets)
Constructor.
TYTrajet9613Solver & _trajet
Reference to the path.
TYSolver9613Solver & _solver
Reference to the solver.
virtual void selectFaces(OSegment3D &rayon) override
Delegate to solver the build of the intersecting faces between the scene and the ray.
virtual void computePath(TabPoint3D &ptsTop, TabPoint3D &ptsLeft, TabPoint3D &ptsRight) override
Delegate to solver the computation of the intersecting top, left and right points between the scene a...
Task of a thread collection for Tympan.
Definition: TYTask.h:30
This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths,...
std::deque< Point > nodes_pool_t
std::deque< material_ptr_t > material_pool_t
Definition: entities.hpp:56
std::deque< AcousticTriangle > triangle_pool_t
Array of AcousticTriangle.
Definition: entities.hpp:214