![]() |
Blue Brain BioExplorer
|
#include <EngineFactory.h>
Public Member Functions | |
EngineFactory (int argc, const char **argv, ParametersManager ¶metersManager) | |
Constructor. More... | |
Engine * | create (const std::string &name) |
Create an instance of the engine corresponding the given name. If the name is incorrect, a null pointer is returned. More... | |
The engine factory is in charge of instantiating engines according to their name (ospray, optix or firerays). If Core does not find the 3rd party library at compilation time, the according lib is not generated and the get method returns a null pointer.
Definition at line 36 of file EngineFactory.h.
core::EngineFactory::EngineFactory | ( | int | argc, |
const char ** | argv, | ||
ParametersManager & | parametersManager | ||
) |
Constructor.
argc | Number of command line arguments |
argv | Command line arguments |
parametersManager | Container for all parameters (application, rendering, geometry, scene) |
Definition at line 41 of file EngineFactory.cpp.
Engine * core::EngineFactory::create | ( | const std::string & | name | ) |
Create an instance of the engine corresponding the given name. If the name is incorrect, a null pointer is returned.
name | of the engine library, e.g. OSPRayEngine |
Definition at line 48 of file EngineFactory.cpp.