![]() |
Blue Brain BioExplorer
|
#include <OptiXRenderer.h>
Public Member Functions | |
OptiXRenderer (const AnimationParameters &animationParameters, const RenderingParameters &renderingParameters) | |
void | render (FrameBufferPtr frameBuffer) final |
Virtual method to render a FrameBuffer This method is implemented in specific engine renderers to draw the FrameBuffer. More... | |
void | commit () final |
This virtual method is implemented in specific engine renderers to signal that rendering is complete. More... | |
void | setCamera (CameraPtr camera) final |
Set camera for renderer This virtual method is implemented in specific engine renderers to set the camera for rendering. More... | |
PickResult | pick (const Vector2f &pickPos) final |
Pick method This method is used to pick a point on the scene and returns PickResult struct with hit boolean value and position. More... | |
![]() | |
virtual float | getVariance () const |
Get variance from previous render() This method returns the variance from the previous render() call. More... | |
PLATFORM_API | Renderer (const AnimationParameters &animationParameters, const RenderingParameters &renderingParameters) |
Constructs the Renderer object with animationParameters and renderingParameters. More... | |
void | setEngine (Engine *engine) |
Sets the _scene pointer to a specified ScenePtr. More... | |
PLATFORM_API bool | getHeadLight () const |
PLATFORM_API void | setHeadLight (const bool value) |
PLATFORM_API void | setMaxAccumFrames (const size_t value) |
PLATFORM_API size_t | getMaxAccumFrames () const |
PLATFORM_API uint32_t | getSamplesPerPixel () const |
PLATFORM_API void | setSamplesPerPixel (const uint32_t value) |
PLATFORM_API uint32_t | getSubsampling () const |
PLATFORM_API void | setSubsampling (const uint32_t subsampling) |
PLATFORM_API const Vector3d & | getBackgroundColor () const |
PLATFORM_API void | setBackgroundColor (const Vector3d &value) |
PLATFORM_API bool | getAccumulation () const |
![]() | |
void | setCurrentType (const std::string &type) |
const std::string & | getCurrentType () const |
template<typename T > | |
void | updateProperty (const std::string &name, const T &value, const bool triggerCallback=true) |
bool | hasProperty (const std::string &name) const |
template<typename T > | |
T | getProperty (const std::string &name) const |
template<typename T > | |
T | getPropertyOrValue (const std::string &name, T val) const |
void | setProperties (const PropertyMap &properties) |
void | setProperties (const std::string &type, const PropertyMap &properties) |
void | updateProperties (const PropertyMap &properties) |
const auto & | getPropertyMap () const |
const auto & | getPropertyMap (const std::string &type) const |
strings | getTypes () const |
void | clonePropertiesFrom (const PropertyObject &obj) |
![]() | |
BaseObject ()=default | |
virtual | ~BaseObject ()=default |
BaseObject (const BaseObject &) | |
BaseObject & | operator= (const BaseObject &rhs) |
bool | isModified () const |
void | resetModified () |
void | markModified (const bool triggerCallback=true) |
void | onModified (const ModifiedCallback &callback) |
void | clearModifiedCallback () |
Additional Inherited Members | |
![]() | |
using | ModifiedCallback = std::function< void(const BaseObject &)> |
![]() | |
template<typename T > | |
void | _updateValue (T &member, const T &newValue, const bool triggerCallback=true) |
template<class T > | |
bool | _isEqual (const T &a, const T &b, typename std::enable_if< std::is_floating_point< T >::value >::type *=0) |
template<class T > | |
bool | _isEqual (const T &a, const T &b, typename std::enable_if<!std::is_floating_point< T >::value >::type *=0) |
![]() | |
const AnimationParameters & | _animationParameters |
const RenderingParameters & | _renderingParameters |
Engine * | _engine {nullptr} |
bool | _accumulation {true} |
bool | _headLight {true} |
Vector3d | _backgroundColor {0., 0., 0.} |
uint32_t | _spp {1} |
uint32_t | _subsampling {1} |
size_t | _maxAccumFrames {100} |
![]() | |
std::string | _currentType |
std::map< std::string, PropertyMap > | _properties |
OptiX specific renderer
This object is the OptiX specific implementation of a renderer
Definition at line 41 of file OptiXRenderer.h.
core::engine::optix::OptiXRenderer::OptiXRenderer | ( | const AnimationParameters & | animationParameters, |
const RenderingParameters & | renderingParameters | ||
) |
Definition at line 40 of file OptiXRenderer.cpp.
|
finalvirtual |
This virtual method is implemented in specific engine renderers to signal that rendering is complete.
Implements core::Renderer.
Definition at line 68 of file OptiXRenderer.cpp.
|
finalvirtual |
Pick method This method is used to pick a point on the scene and returns PickResult struct with hit boolean value and position.
pickPos | Vector2f with pick position coordinates |
Reimplemented from core::Renderer.
Definition at line 124 of file OptiXRenderer.cpp.
|
finalvirtual |
Virtual method to render a FrameBuffer This method is implemented in specific engine renderers to draw the FrameBuffer.
frameBuffer | Ptr to FrameBuffer that will be drawn |
Implements core::Renderer.
Definition at line 47 of file OptiXRenderer.cpp.
|
finalvirtual |
Set camera for renderer This virtual method is implemented in specific engine renderers to set the camera for rendering.
camera | CameraPtr of a camera object to set |
Implements core::Renderer.
Definition at line 117 of file OptiXRenderer.cpp.