![]() |
Blue Brain BioExplorer
|
#include <OptiXEngine.h>
Public Member Functions | |
OptiXEngine (ParametersManager ¶metersManager) | |
~OptiXEngine () | |
void | commit () final |
Commits changes to the engine. This includes scene modifications, camera modifications and renderer modifications. More... | |
Vector2ui | getMinimumFrameSize () const final |
Returns the minimum frame size in pixels supported by this engine. More... | |
FrameBufferPtr | createFrameBuffer (const std::string &name, const Vector2ui &frameSize, FrameBufferFormat frameBufferFormat) const final |
Factory method to create an engine-specific framebuffer. More... | |
ScenePtr | createScene (AnimationParameters &animationParameters, GeometryParameters &geometryParameters, VolumeParameters &volumeParameters, FieldParameters &fieldParameters) const final |
Factory method to create an engine-specific scene. More... | |
CameraPtr | createCamera () const final |
Factory method to create an engine-specific camera. More... | |
RendererPtr | createRenderer (const AnimationParameters &animationParameters, const RenderingParameters &renderingParameters) const final |
Factory method to create an engine-specific renderer. More... | |
![]() | |
virtual PLATFORM_API void | preRender () |
Executes engine-specific pre-render operations. More... | |
virtual PLATFORM_API void | postRender () |
Executes engine-specific post-render operations. More... | |
PLATFORM_API | Engine (ParametersManager ¶metersManager) |
Engine Constructor. More... | |
virtual PLATFORM_API | ~Engine ()=default |
PLATFORM_API void | render () |
Renders the current scene and populates the frame buffer accordingly. More... | |
PLATFORM_API Scene & | getScene () |
Returns the scene. More... | |
PLATFORM_API FrameBuffer & | getFrameBuffer () |
Returns the frame buffer. More... | |
PLATFORM_API const Camera & | getCamera () const |
Returns the camera. More... | |
PLATFORM_API Camera & | getCamera () |
PLATFORM_API Renderer & | getRenderer () |
Returns the renderer. More... | |
PLATFORM_API void | setKeepRunning (bool keepRunning) |
Sets a flag to continue or stop rendering. More... | |
PLATFORM_API bool | getKeepRunning () const |
Returns a boolean indicating whether the user wants to continue rendering. More... | |
PLATFORM_API Statistics & | getStatistics () |
Returns statistics information. More... | |
PLATFORM_API bool | continueRendering () const |
Returns a boolean indicating whether render calls shall be continued based on current accumulation settings. More... | |
PLATFORM_API const auto & | getParametersManager () const |
Returns the parameter manager. More... | |
PLATFORM_API void | addFrameBuffer (FrameBufferPtr frameBuffer) |
Adds a frame buffer to the list to be filled during rendering. More... | |
PLATFORM_API void | removeFrameBuffer (FrameBufferPtr frameBuffer) |
Removes a frame buffer from the list of buffers that are filled during rendering. More... | |
PLATFORM_API const std::vector< FrameBufferPtr > & | getFrameBuffers () const |
Returns all registered frame buffers that are used during rendering. More... | |
PLATFORM_API void | clearFrameBuffers () |
Clears all frame buffers. More... | |
PLATFORM_API void | resetFrameBuffers () |
Resets all frame buffers. More... | |
PLATFORM_API void | setRendererType (const std::string &name) |
Adds a new renderer type with optional properties. More... | |
PLATFORM_API void | addRendererType (const std::string &name, const PropertyMap &properties={}) |
Adds a new renderer type with optional properties. More... | |
PLATFORM_API const strings & | getRendererTypes () const |
Returns all renderer types. More... | |
PLATFORM_API void | addCameraType (const std::string &name, const PropertyMap &properties={}) |
Adds a new camera type with optional properties. More... | |
Additional Inherited Members | |
![]() | |
PLATFORM_API std::function< void()> | triggerRender {[] {}} |
Callback when a new frame shall be triggered. Currently called by event plugins Deflect and Rockets. More... | |
![]() | |
std::string | _rendererType {RENDERER_PROPERTY_TYPE_BASIC} |
ParametersManager & | _parametersManager |
ScenePtr | _scene |
CameraPtr | _camera |
RendererPtr | _renderer |
std::vector< FrameBufferPtr > | _frameBuffers |
Statistics | _statistics |
strings | _rendererTypes |
bool | _keepRunning {true} |
OptiX implementation of the ray-tracing engine.
Definition at line 36 of file OptiXEngine.h.
core::engine::optix::OptiXEngine::OptiXEngine | ( | ParametersManager & | parametersManager | ) |
Definition at line 46 of file OptiXEngine.cpp.
core::engine::optix::OptiXEngine::~OptiXEngine | ( | ) |
Definition at line 67 of file OptiXEngine.cpp.
|
finalvirtual |
Commits changes to the engine. This includes scene modifications, camera modifications and renderer modifications.
Reimplemented from core::Engine.
Definition at line 242 of file OptiXEngine.cpp.
|
finalvirtual |
Factory method to create an engine-specific camera.
Implements core::Engine.
Definition at line 237 of file OptiXEngine.cpp.
|
finalvirtual |
Factory method to create an engine-specific framebuffer.
name | The name of the frame buffer. |
frameSize | The size of the frame buffer. |
frameBufferFormat | The frame buffer format. |
Implements core::Engine.
Definition at line 224 of file OptiXEngine.cpp.
|
finalvirtual |
Factory method to create an engine-specific renderer.
animationParameters | The animation parameters. |
renderingParameters | The rendering parameters. |
Implements core::Engine.
Definition at line 231 of file OptiXEngine.cpp.
|
finalvirtual |
Factory method to create an engine-specific scene.
animationParameters | The animation parameters. |
geometryParameters | The geometry parameters. |
volumeParameters | The volume parameters. |
Implements core::Engine.
Definition at line 218 of file OptiXEngine.cpp.
|
finalvirtual |
Returns the minimum frame size in pixels supported by this engine.
Implements core::Engine.
Definition at line 247 of file OptiXEngine.cpp.