![]() |
Blue Brain BioExplorer
|
#include <OptiXFrameBuffer.h>
Public Member Functions | |
OptiXFrameBuffer (const std::string &name, const Vector2ui &size, FrameBufferFormat frameBufferFormat, const RenderingParameters &renderingParameters) | |
~OptiXFrameBuffer () | |
void | resize (const Vector2ui &size) final |
Resize the framebuffer to the new size. More... | |
void | map () final |
Map the buffer for reading with get*Buffer(). More... | |
void | unmap () final |
Unmap the buffer for reading with get*Buffer(). More... | |
void | setAccumulation (const bool accumulation) final |
Enable/disable accumulation state on the framebuffer. More... | |
std::unique_lock< std::mutex > | getScopeLock () |
const uint8_t * | getColorBuffer () const final |
Get the Color Buffer object. More... | |
const float * | getFloatBuffer () const final |
Get the Float Buffer object. More... | |
const float * | getDepthBuffer () const |
![]() | |
PLATFORM_API | FrameBuffer (const std::string &name, const Vector2ui &frameSize, FrameBufferFormat frameBufferFormat) |
FrameBuffer constructor. More... | |
virtual PLATFORM_API void | clear () |
Clear the framebuffer. More... | |
virtual PLATFORM_API Vector2ui | getSize () const |
Get the Size object. More... | |
virtual PLATFORM_API void | setFormat (FrameBufferFormat frameBufferFormat) |
Set a new framebuffer format. More... | |
virtual PLATFORM_API void | setSubsampling (const size_t) |
Set a new subsampling with a factor from 1 to x of the current size. More... | |
virtual PLATFORM_API void | createPixelOp (const std::string &) |
Create and set a pixelop (pre/post filter) on the framebuffer. More... | |
virtual PLATFORM_API void | updatePixelOp (const PropertyMap &) |
Update the current pixelop with the given properties. More... | |
PLATFORM_API size_t | getColorDepth () const |
Get the Color Depth object. More... | |
PLATFORM_API const Vector2ui & | getFrameSize () const |
Get the Frame Size object. More... | |
PLATFORM_API bool | getAccumulation () const |
Get the Accumulation object. More... | |
PLATFORM_API FrameBufferFormat | getFrameBufferFormat () const |
Get the Frame Buffer Format object. More... | |
PLATFORM_API const std::string & | getName () const |
Get the Name object. More... | |
PLATFORM_API void | incrementAccumFrames () |
Increment the accumulation frames. More... | |
PLATFORM_API size_t | numAccumFrames () const |
Get the number of accumulation frames. More... | |
PLATFORM_API freeimage::ImagePtr | getImage () |
Get the Image object. More... | |
PLATFORM_API void | setAccumulationType (const AccumulationType accumulationType) |
Set the Accumulation Type object. More... | |
PLATFORM_API AccumulationType | getAccumulationType () const |
Get the Accumulation Type object. More... | |
![]() | |
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 std::string | _name |
Vector2ui | _frameSize |
FrameBufferFormat | _frameBufferFormat |
bool | _accumulation {true} |
AccumulationType | _accumulationType {AccumulationType::linear} |
std::atomic_size_t | _accumFrames {0} |
OptiX specific frame buffer
This object is the OptiX specific implementation of a frame buffer
Definition at line 41 of file OptiXFrameBuffer.h.
core::engine::optix::OptiXFrameBuffer::OptiXFrameBuffer | ( | const std::string & | name, |
const Vector2ui & | size, | ||
FrameBufferFormat | frameBufferFormat, | ||
const RenderingParameters & | renderingParameters | ||
) |
Definition at line 39 of file OptiXFrameBuffer.cpp.
core::engine::optix::OptiXFrameBuffer::~OptiXFrameBuffer | ( | ) |
Definition at line 47 of file OptiXFrameBuffer.cpp.
|
inlinefinalvirtual |
Get the Color Buffer object.
Implements core::FrameBuffer.
Definition at line 54 of file OptiXFrameBuffer.h.
|
inline |
Definition at line 56 of file OptiXFrameBuffer.h.
|
inlinefinalvirtual |
Get the Float Buffer object.
Implements core::FrameBuffer.
Definition at line 55 of file OptiXFrameBuffer.h.
|
inline |
Definition at line 53 of file OptiXFrameBuffer.h.
|
finalvirtual |
Map the buffer for reading with get*Buffer().
Implements core::FrameBuffer.
Definition at line 118 of file OptiXFrameBuffer.cpp.
|
finalvirtual |
Resize the framebuffer to the new size.
frameSize | The frame buffer size to be set. |
Implements core::FrameBuffer.
Definition at line 72 of file OptiXFrameBuffer.cpp.
|
finalvirtual |
Enable/disable accumulation state on the framebuffer.
accumulation | The accumulation state to be set. |
Reimplemented from core::FrameBuffer.
Definition at line 196 of file OptiXFrameBuffer.cpp.
|
finalvirtual |
Unmap the buffer for reading with get*Buffer().
Implements core::FrameBuffer.
Definition at line 154 of file OptiXFrameBuffer.cpp.