![]() |
Blue Brain BioExplorer
|
#include <OSPRayFrameBuffer.h>
Public Member Functions | |
OSPRayFrameBuffer (const std::string &name, const Vector2ui &frameSize, const FrameBufferFormat frameBufferFormat) | |
~OSPRayFrameBuffer () | |
void | clear () final |
Clear the framebuffer. More... | |
void | resize (const Vector2ui &frameSize) 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... | |
void | setFormat (FrameBufferFormat frameBufferFormat) final |
Set a new framebuffer format. More... | |
void | setSubsampling (const size_t) final |
Set a new subsampling with a factor from 1 to x of the current size. More... | |
Vector2ui | getSize () const final |
Get the Size object. 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... | |
OSPFrameBuffer | impl () |
void | createPixelOp (const std::string &name) final |
Create and set a pixelop (pre/post filter) on the framebuffer. More... | |
void | updatePixelOp (const PropertyMap &properties) final |
Update the current pixelop with the given properties. More... | |
![]() | |
PLATFORM_API | FrameBuffer (const std::string &name, const Vector2ui &frameSize, FrameBufferFormat frameBufferFormat) |
FrameBuffer constructor. 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} |
Definition at line 36 of file OSPRayFrameBuffer.h.
core::engine::ospray::OSPRayFrameBuffer::OSPRayFrameBuffer | ( | const std::string & | name, |
const Vector2ui & | frameSize, | ||
const FrameBufferFormat | frameBufferFormat | ||
) |
Definition at line 52 of file OSPRayFrameBuffer.cpp.
core::engine::ospray::OSPRayFrameBuffer::~OSPRayFrameBuffer | ( | ) |
Definition at line 59 of file OSPRayFrameBuffer.cpp.
|
finalvirtual |
Clear the framebuffer.
Reimplemented from core::FrameBuffer.
Definition at line 122 of file OSPRayFrameBuffer.cpp.
|
finalvirtual |
Create and set a pixelop (pre/post filter) on the framebuffer.
name | The name of the pixelOp. |
Reimplemented from core::FrameBuffer.
Definition at line 217 of file OSPRayFrameBuffer.cpp.
|
inlinefinalvirtual |
Get the Color Buffer object.
Implements core::FrameBuffer.
Definition at line 51 of file OSPRayFrameBuffer.h.
|
inlinefinalvirtual |
Get the Float Buffer object.
Implements core::FrameBuffer.
Definition at line 52 of file OSPRayFrameBuffer.h.
|
inline |
Definition at line 50 of file OSPRayFrameBuffer.h.
|
inlinefinalvirtual |
Get the Size object.
Reimplemented from core::FrameBuffer.
Definition at line 49 of file OSPRayFrameBuffer.h.
|
inline |
Definition at line 53 of file OSPRayFrameBuffer.h.
|
finalvirtual |
Map the buffer for reading with get*Buffer().
Implements core::FrameBuffer.
Definition at line 133 of file OSPRayFrameBuffer.cpp.
|
finalvirtual |
Resize the framebuffer to the new size.
frameSize | The frame buffer size to be set. |
Implements core::FrameBuffer.
Definition at line 69 of file OSPRayFrameBuffer.cpp.
|
finalvirtual |
Enable/disable accumulation state on the framebuffer.
accumulation | The accumulation state to be set. |
Reimplemented from core::FrameBuffer.
Definition at line 187 of file OSPRayFrameBuffer.cpp.
|
finalvirtual |
Set a new framebuffer format.
frameBufferFormat | The new frame buffer format to be set. |
Reimplemented from core::FrameBuffer.
Definition at line 196 of file OSPRayFrameBuffer.cpp.
|
finalvirtual |
Set a new subsampling with a factor from 1 to x of the current size.
size_t | The size to be set. |
Reimplemented from core::FrameBuffer.
Definition at line 205 of file OSPRayFrameBuffer.cpp.
|
finalvirtual |
Unmap the buffer for reading with get*Buffer().
Implements core::FrameBuffer.
Definition at line 148 of file OSPRayFrameBuffer.cpp.
|
finalvirtual |
Update the current pixelop with the given properties.
properties | The properties to be updated. |
Reimplemented from core::FrameBuffer.
Definition at line 231 of file OSPRayFrameBuffer.cpp.