79 #ifdef TEST_ACCELERATION_RECEPTORS
164 #ifdef TEST_ACCELERATION_RECEPTORS
208 #ifdef TEST_ACCELERATION_RECEPTORS
Class defining the configuration of the acoustic ray tracer.
static AcousticRaytracerConfiguration * get()
Get access to the configuration.
Base class of Event, Material, PostFilter, Ray, Repere, Scene, Shape, Simulation, Source.
Base class for engines (DefaultEngine, ParallelDefaultEngine,...)
A manager class for Material.
Receptor inherits from a Sphere Shape.
void setId(unsigned int _id)
This class mainly define a mesh (list of Shape) used by the Simulation object.
void addShape(Shape *shape)
Add a shape to the list.
Class hosting all the informations needed for ray tracing. It contains the function to launch the ray...
engineChoice engineC
Enum giving the Engine choice.
void setSolver(Solver *_solver)
Tool function to set the acoustic solver for the simulation.
Solver * solver
Pointer to a solver (acoustic method)
Scene scene
Description of the geometry in an accelerated structure.
AcousticRaytracerConfiguration * getConfiguration()
Get the configuration.
void clean()
Clean the simulation: the scene, sources, and receptors and all the rays are deleted.
void addRecepteur(Recepteur &r)
Tool function to add quickly a receptor for the simulation.
Engine * getEngine()
Get the engine.
void addSource(const Source &s)
Tool function to add a source to the simulation.
std::vector< Recepteur > recepteurs
All the acoustic receptors for the Simulation.
Engine * engine
Pointer to the selected Engine.
void setMaterialManager(MaterialManager *_materialManager)
Set/Get the pointer to the MaterialManager.
MaterialManager * materialManager
Pointer to a MaterialManager object.
Solver * getSolver()
Get the acoustic solver.
virtual ~Simulation()
Destructor.
void setEngine(engineChoice engine=DEFAULT)
Set the engine (by default, the DefaultEngine)
std::vector< Source > sources
All the acoustic sources for the Simulation.
Scene * getScene()
Get a pointer to the scene.
std::vector< Recepteur > & getRecepteurs()
Return a vector of all receptors of the scene.
Simulation(const Simulation &other)
Copy constructor.
std::vector< Source > & getSources()
Return the sources list of the scene.
MaterialManager * getMaterialManager()
bool launchSimulation()
Program main loop. Extract all the rays from the sources then treat them. The loop finishes when the ...
Scene receptors_landscape
Geometric distribution of receptors.
AcousticRaytracerConfiguration * configuration
Pointer to the Acoustic RayTracer configuration.
unsigned int compteurRecepteur
Receptor counter.
Scene * get_receptors_landscape()
Return the geometric distribution of receptors.
unsigned int compteurSource
Source counter.
The Solver class gives an interface to the developer to add easily a new acoustic method using ray tr...