Code_TYMPAN  4.4.0
Industrial site acoustic simulation
LeafTreatment.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 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...