#include <Solver.h>
|
| | BasicSolver () |
| |
| | ~BasicSolver () |
| |
| virtual bool | postTreatmentScene (Scene *scene, std::vector< Source > &sources, std::vector< Recepteur > &recepteurs) |
| | Virtual function to post-process the Scene. It has two phases: transform the meta-objects and load the Scene. During the first phase, we iterate on the different meta-objects lists and are extracted elements for the ray tracer. Typically, a wall object would be transformed in a set of Primitives, extract polylines from punctual Sources,... The Scene will be loaded with objects related to acoustic calculation which are not present into the physical description of the Scene. For instance, diffraction edges are modeled by a cylinder and should be generated. More...
|
| |
| virtual bool | valideIntersection (Ray *r, Intersection *inter) |
| | Validation function for an intersection. If the intersection is validated, an event is created and added on the ray. More...
|
| |
| virtual bool | valideRayon (Ray *r) |
| | Ray validation. The developer may, for instance, choose a filtering on the rays and only validate single paths. If the ray is valid, it is added to the valid rays list and will be used for the export. More...
|
| |
| virtual bool | invalidRayon (Ray *r) |
| | Method to arrange the invalid rays. The invalid rays are put away into a debug_ray array in order to visualize all of the rays. More...
|
| |
| virtual void | finish () |
| | End the operations. More...
|
| |
| | Solver () |
| | Default constructor. More...
|
| |
| | Solver (Solver *_solver) |
| | Copy constructor. More...
|
| |
| virtual double | leafTreatment (vector< Intersection > &primitives) |
| | Leaf treatment function for accelerators. The default is to keep only the first intersection. It is possible to keep all the intersections which happens before a type specific intersection. For instance, we can keep all the intersections before an intersection with a triangle considered as blocking. More...
|
| |
| virtual deque< Ray * > * | getValidRays () |
| | Return a pointer to the validated rays list. More...
|
| |
| deque< Ray * > * | getDebugRays () |
| | Return a pointer to the invalidated rays list. More...
|
| |
| virtual void | clean () |
| | Delete the valid rays array. More...
|
| |
| virtual bool | loadParameters () |
| | Load the computation parameters. More...
|
| |
Definition at line 133 of file Solver.h.
◆ BasicSolver()
| BasicSolver::BasicSolver |
( |
| ) |
|
|
inline |
◆ ~BasicSolver()
| BasicSolver::~BasicSolver |
( |
| ) |
|
|
inline |
◆ finish()
| void BasicSolver::finish |
( |
| ) |
|
|
virtual |
◆ invalidRayon()
| bool BasicSolver::invalidRayon |
( |
Ray * |
r | ) |
|
|
virtual |
Method to arrange the invalid rays. The invalid rays are put away into a debug_ray array in order to visualize all of the rays.
- Parameters
-
- Returns
- Return true if the ray has been invalidated.
Reimplemented from Solver.
Definition at line 173 of file Solver.cpp.
◆ postTreatmentScene()
| bool BasicSolver::postTreatmentScene |
( |
Scene * |
scene, |
|
|
std::vector< Source > & |
sources, |
|
|
std::vector< Recepteur > & |
recepteurs |
|
) |
| |
|
virtual |
Virtual function to post-process the Scene. It has two phases: transform the meta-objects and load the Scene. During the first phase, we iterate on the different meta-objects lists and are extracted elements for the ray tracer. Typically, a wall object would be transformed in a set of Primitives, extract polylines from punctual Sources,... The Scene will be loaded with objects related to acoustic calculation which are not present into the physical description of the Scene. For instance, diffraction edges are modeled by a cylinder and should be generated.
- Parameters
-
| scene | Scene to post-process |
| sources | Sources |
| recepteurs | Receptors |
- Returns
- Return true if success
Reimplemented from Solver.
Definition at line 82 of file Solver.cpp.
◆ valideIntersection()
Validation function for an intersection. If the intersection is validated, an event is created and added on the ray.
- Parameters
-
| r | : Ray |
| inter | : Intersection to validate |
- Returns
- Return true if the validation is done
- Warning
- The validation functions should agree with the primitives types in the Scene. The unsupported primitives types should throw an exception if not handled by the simulation.
Reimplemented from Solver.
Definition at line 125 of file Solver.cpp.
◆ valideRayon()
| bool BasicSolver::valideRayon |
( |
Ray * |
r | ) |
|
|
virtual |
Ray validation. The developer may, for instance, choose a filtering on the rays and only validate single paths. If the ray is valid, it is added to the valid rays list and will be used for the export.
- Parameters
-
| r | : Ray to validate. The ray should have a source and a receiver. |
- Returns
- Return true if the ray has been validated.
Reimplemented from Solver.
Definition at line 159 of file Solver.cpp.
◆ _useFresnelArea
| bool BasicSolver::_useFresnelArea |
Flag to use Fresnel weighting.
Definition at line 160 of file Solver.h.
◆ selectorManagerIntersection
◆ selectorManagerValidation
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan-fbessou/checkouts/latest/Tympan/geometric_methods/AcousticRaytracer/Acoustic/Solver.h
- /home/docs/checkouts/readthedocs.org/user_builds/code-tympan-fbessou/checkouts/latest/Tympan/geometric_methods/AcousticRaytracer/Acoustic/Solver.cpp