Code_TYMPAN  4.4.0
Industrial site acoustic simulation
LeafTreatment.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 LEAF_TREATMENT_H
17 #define LEAF_TREATMENT_H
18 
19 #include "Geometry/Shape.h"
20 
21 #include <list>
22 
26 namespace leafTreatment
27 {
28 
30 {
31  FIRST = 0,
34  ALL
35 };
36 
37 // This function is only used by grid accelerator
38 decimal keepFunction(treatment choice, std::list<Intersection>& currentIntersections, decimal currentTmin);
39 
43 decimal keepFirst(std::list<Intersection>& currentIntersections, decimal currentTmin);
44 
49 decimal keepAllBeforeTriangle(std::list<Intersection>& currentIntersections, decimal currentTmin);
50 
54 decimal keepAllBeforeVisible(std::list<Intersection>& currentIntersections, decimal currentTmin);
55 
59 decimal keepAll(std::list<Intersection>& currentIntersections, decimal currentTmin);
60 
61 }; // namespace leafTreatment
62 
63 #endif
float decimal
Definition: mathlib.h:45
Leaf treatment.
decimal keepAll(std::list< Intersection > &currentIntersections, decimal currentTmin)
Keep all intersections before reaching currentTmin and return the tmin of the first one encountered.
@ ALL_BEFORE_TRIANGLE
ALL_BEFORE_TRIANGLE.
Definition: LeafTreatment.h:32
@ ALL_BEFORE_VISIBLE
ALL_BEFORE_VISIBLE.
Definition: LeafTreatment.h:33
decimal keepAllBeforeVisible(std::list< Intersection > &currentIntersections, decimal currentTmin)
Keep all intersections encountered before intersecting a triangle and before reaching currentTmin,...
decimal keepAllBeforeTriangle(std::list< Intersection > &currentIntersections, decimal currentTmin)
Keep all intersections encountered before intersecting a visible shape and before reaching currentTmi...
decimal keepFunction(treatment choice, std::list< Intersection > &currentIntersections, decimal currentTmin)
decimal keepFirst(std::list< Intersection > &currentIntersections, decimal currentTmin)
Keep only the first intersection encountered before reaching currentTmin and return its corresponding...