Blue Brain BioExplorer
core::EngineFactory Class Reference

#include <EngineFactory.h>

Public Member Functions

 EngineFactory (int argc, const char **argv, ParametersManager &parametersManager)
 Constructor. More...
 
Enginecreate (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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ EngineFactory()

core::EngineFactory::EngineFactory ( int  argc,
const char **  argv,
ParametersManager parametersManager 
)

Constructor.

Parameters
argcNumber of command line arguments
argvCommand line arguments
parametersManagerContainer for all parameters (application, rendering, geometry, scene)

Definition at line 41 of file EngineFactory.cpp.

Member Function Documentation

◆ create()

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.

Parameters
nameof the engine library, e.g. OSPRayEngine
Returns
A pointer to the engine, null if the engine could not be instantiated

Definition at line 48 of file EngineFactory.cpp.


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