Code_TYMPAN  4.2.0
Industrial site acoustic simulation
Public Member Functions | Protected Member Functions | List of all members
DefaultCurvRayEngine Class Reference

Engine for analytical ray curve tracing. More...

#include <DefaultCurvRayEngine.h>

Inheritance diagram for DefaultCurvRayEngine:
Inheritance graph
[legend]
Collaboration diagram for DefaultCurvRayEngine:
Collaboration graph
[legend]

Public Member Functions

 DefaultCurvRayEngine ()
 
 DefaultCurvRayEngine (Scene *_scene, std::vector< Source > *_sources, Solver *_solver, std::vector< Recepteur > *_recepteurs)
 
 DefaultCurvRayEngine (const DefaultCurvRayEngine &other)
 
virtual ~DefaultCurvRayEngine ()
 
virtual bool process ()
 If implemented, process and return true if success. More...
 
- Public Member Functions inherited from DefaultEngine
 DefaultEngine ()
 Constructors. More...
 
 DefaultEngine (Scene *_scene, std::vector< Source > *_sources, Solver *_solver, Scene *_recepteurs)
 
 DefaultEngine (const DefaultEngine &other)
 Copy constructor. More...
 
virtual ~DefaultEngine ()
 Destructor. More...
 
virtual void runStructureBenchmark ()
 If implemented, run a benchmark for the engine. More...
 
RaygenRay ()
 Create rays from the sources. More...
 
- Public Member Functions inherited from Engine
 Engine ()
 Default constructor. More...
 
 Engine (Scene *_scene, std::vector< Source > *_sources, Solver *_solver, Scene *_recepteurs)
 Constructor. More...
 
 Engine (const Engine &other)
 Copy constructor. More...
 
virtual ~Engine ()
 Destructor. More...
 
ScenegetScene ()
 Get the Scene. More...
 
void setScene (Scene *_scene)
 Set the Scene. More...
 
std::vector< Source > * getSources ()
 Get the Sources. More...
 
void setSources (std::vector< Source > *_sources)
 Set the Sources. More...
 
SolvergetSolver ()
 Get the Solver. More...
 
void setSolver (Solver *_solver)
 Set the Solver. More...
 
virtual unsigned long long int getRayCounter ()
 

Protected Member Functions

virtual bool traitementRay (Ray *r, std::list< validRay > &result)
 Ray treatment method. More...
 
- Protected Member Functions inherited from DefaultEngine
void searchForReceptor (const decimal &tmin, Ray *r)
 Search if a ray intersects a receptor before traveling a tmin distance (NB: this is the only place in the code where a ray is added to the solver's list of valid rays) More...
 
void initialReceptorTargeting ()
 Initialize the rays treatment stack by a loop on the receptors. More...
 
void copyRayAndAddToStack (Ray *r)
 Copy a ray and use its last event to generate a response to use as the copy's direction (used to handle the generation of rays by diffraction events) More...
 

Additional Inherited Members

- Protected Attributes inherited from DefaultEngine
std::stack< Ray *, std::deque< Ray * > > pile_traitement
 Treatment stack containing the rays to treat. More...
 
unsigned long long int nbRayonsTraites
 Treated rays number. More...
 
- Protected Attributes inherited from Engine
Scenescene
 Pointer to the scene. More...
 
std::vector< Source > * sources
 Pointer to all the receptors. More...
 
Scenerecepteurs
 Pointer to all the sources. More...
 
Solversolver
 Pointer to the solver. More...
 
unsigned long long int rayCounter
 Ray counter. More...
 

Detailed Description

Engine for analytical ray curve tracing.

Definition at line 59 of file DefaultCurvRayEngine.h.

Constructor & Destructor Documentation

◆ DefaultCurvRayEngine() [1/3]

DefaultCurvRayEngine::DefaultCurvRayEngine ( )
inline

Definition at line 63 of file DefaultCurvRayEngine.h.

◆ DefaultCurvRayEngine() [2/3]

DefaultCurvRayEngine::DefaultCurvRayEngine ( Scene _scene,
std::vector< Source > *  _sources,
Solver _solver,
std::vector< Recepteur > *  _recepteurs 
)
inline

Definition at line 65 of file DefaultCurvRayEngine.h.

◆ DefaultCurvRayEngine() [3/3]

DefaultCurvRayEngine::DefaultCurvRayEngine ( const DefaultCurvRayEngine other)
inline

Definition at line 68 of file DefaultCurvRayEngine.h.

◆ ~DefaultCurvRayEngine()

virtual DefaultCurvRayEngine::~DefaultCurvRayEngine ( )
inlinevirtual

Definition at line 76 of file DefaultCurvRayEngine.h.

Here is the call graph for this function:

Member Function Documentation

◆ process()

bool DefaultCurvRayEngine::process ( )
virtual

If implemented, process and return true if success.

Reimplemented from DefaultEngine.

Definition at line 28 of file DefaultCurvRayEngine.cpp.

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

◆ traitementRay()

bool DefaultCurvRayEngine::traitementRay ( Ray r,
std::list< validRay > &  result 
)
protectedvirtual

Ray treatment method.

Parameters
rRay to treat
resultUpdated valid rays list
Returns

Reimplemented from DefaultEngine.

Definition at line 88 of file DefaultCurvRayEngine.cpp.

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

The documentation for this class was generated from the following files: