24 #define TEST_ACCELERATION_RECEPTORS
39 #ifdef TEST_ACCELERATION_RECEPTORS
112 Engine(
Scene* _scene, std::vector<Source>* _sources,
Solver* _solver, std::vector<Recepteur>* _recepteurs)
145 void setSources(std::vector<Source>* _sources)
struct _validRay validRay
Base class for engines (DefaultEngine, ParallelDefaultEngine,...)
void setSolver(Solver *_solver)
Set the Solver.
void setSources(std::vector< Source > *_sources)
Set the Sources.
void setScene(Scene *_scene)
Set the Scene.
Scene * recepteurs
Pointer to all the sources.
Scene * scene
Pointer to the scene.
Scene * getScene()
Get the Scene.
virtual ~Engine()
Destructor.
Engine(Scene *_scene, std::vector< Source > *_sources, Solver *_solver, Scene *_recepteurs)
Constructor.
Solver * solver
Pointer to the solver.
unsigned long long int rayCounter
Ray counter.
Engine()
Default constructor.
virtual bool process()
If implemented, process and return true if success.
virtual void runStructureBenchmark()
If implemented, run a benchmark for the engine.
Solver * getSolver()
Get the Solver.
std::vector< Source > * sources
Pointer to all the receptors.
virtual unsigned long long int getRayCounter()
std::vector< Source > * getSources()
Get the Sources.
Engine(const Engine &other)
Copy constructor.
: Describes a ray by a pair of unsigned int. The first one gives the source number (in the range 0-40...
This class mainly define a mesh (list of Shape) used by the Simulation object.
The Solver class gives an interface to the developer to add easily a new acoustic method using ray tr...
bool valid
Boolean set to True if the ray is validated, which means an event occurs.
Ray * r
Pointer to a ray. Should not be NULL.