Code_TYMPAN  4.2.0
Industrial site acoustic simulation
Enumerations | Functions
leafTreatment Namespace Reference

Leaf treatment. More...

Enumerations

enum  treatment { FIRST = 0, ALL_BEFORE_TRIANGLE, ALL_BEFORE_VISIBLE, ALL }
 

Functions

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 tmin. More...
 
decimal keepAllBeforeTriangle (std::list< Intersection > &currentIntersections, decimal currentTmin)
 Keep all intersections encountered before intersecting a visible shape and before reaching currentTmin, and return the tmin of the intersection with the triangle (only the cylinders used for diffraction edge are considered invisible) More...
 
decimal keepAllBeforeVisible (std::list< Intersection > &currentIntersections, decimal currentTmin)
 Keep all intersections encountered before intersecting a triangle and before reaching currentTmin, and return the tmin of the intersection with the triangle. More...
 
decimal keepAll (std::list< Intersection > &currentIntersections, decimal currentTmin)
 Keep all intersections before reaching currentTmin and return the tmin of the first one encountered. More...
 

Detailed Description

Leaf treatment.

Enumeration Type Documentation

◆ treatment

Enumerator
FIRST 

FIRST.

ALL_BEFORE_TRIANGLE 

ALL_BEFORE_TRIANGLE.

ALL_BEFORE_VISIBLE 

ALL_BEFORE_VISIBLE.

ALL 

ALL.

Definition at line 29 of file LeafTreatment.h.

Function Documentation

◆ keepAll()

decimal leafTreatment::keepAll ( std::list< Intersection > &  currentIntersections,
decimal  currentTmin 
)

Keep all intersections before reaching currentTmin and return the tmin of the first one encountered.

Definition at line 140 of file LeafTreatment.cpp.

Here is the caller graph for this function:

◆ keepAllBeforeTriangle()

decimal leafTreatment::keepAllBeforeTriangle ( std::list< Intersection > &  currentIntersections,
decimal  currentTmin 
)

Keep all intersections encountered before intersecting a visible shape and before reaching currentTmin, and return the tmin of the intersection with the triangle (only the cylinders used for diffraction edge are considered invisible)

Definition at line 79 of file LeafTreatment.cpp.

Here is the caller graph for this function:

◆ keepAllBeforeVisible()

decimal leafTreatment::keepAllBeforeVisible ( std::list< Intersection > &  currentIntersections,
decimal  currentTmin 
)

Keep all intersections encountered before intersecting a triangle and before reaching currentTmin, and return the tmin of the intersection with the triangle.

Definition at line 110 of file LeafTreatment.cpp.

Here is the caller graph for this function:

◆ keepFirst()

decimal leafTreatment::keepFirst ( std::list< Intersection > &  currentIntersections,
decimal  currentTmin 
)

Keep only the first intersection encountered before reaching currentTmin and return its corresponding tmin.

Definition at line 45 of file LeafTreatment.cpp.

Here is the caller graph for this function:

◆ keepFunction()

decimal leafTreatment::keepFunction ( treatment  choice,
std::list< Intersection > &  currentIntersections,
decimal  currentTmin 
)

Definition at line 22 of file LeafTreatment.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: