VTK  9.0.20200930
Public Member Functions | Friends | List of all members
RTW::FrameBuffer Class Reference

#include <FrameBuffer.h>

Inheritance diagram for RTW::FrameBuffer:
[legend]
Collaboration diagram for RTW::FrameBuffer:
[legend]

Public Member Functions

 FrameBuffer (const rtw::vec2i &size, const RTWFrameBufferFormat format, const uint32_t frameBufferChannels)
 
 ~FrameBuffer ()
 
void Commit () override
 
void Clear ()
 
const void * Map (const RTWFrameBufferChannel channel)
 
void Unmap (const void *mapped)
 
void SetDepthNormalizationGL (float clipMin, float clipMax)
 
int GetColorTextureGL ()
 
int GetDepthTextureGL ()
 
- Public Member Functions inherited from RTW::Object
 Object (RTWDataType type=RTW_OBJECT)
 
virtual ~Object ()
 
void AddRef ()
 
void Release ()
 
void SetString (const std::string &id, const std::string &s)
 
const std::string GetString (const std::vector< std::string > &ids, const std::string &defaultValue="", bool *found=nullptr) const
 
bool GetString (const std::vector< std::string > &ids, std::string *result, const std::string &defaultValue=nullptr)
 
void SetBool (const std::string &id, bool b)
 
virtual void SetObject (const std::string &id, Object *object)
 
template<typename T = Object>
T * GetObject (const std::vector< std::string > &ids, T *defaultValue=nullptr, bool *found=nullptr) const
 
template<typename T = Object>
bool GetObject (const std::vector< std::string > &ids, T **result, T *defaultValue=nullptr)
 
void SetInt (const std::string &id, int32_t x)
 
int32_t GetInt (const std::vector< std::string > &ids, int32_t defaultValue=0, bool *found=nullptr) const
 
bool GetInt (const std::vector< std::string > &ids, int32_t *result, int32_t defaultValue=0)
 
void SetFloat (const std::string &id, float x)
 
float GetFloat (const std::vector< std::string > &ids, float defaultValue=0.0f, bool *found=nullptr) const
 
bool GetFloat (const std::vector< std::string > &ids, float *result, float defaultValue=0.0f)
 
void SetVec2i (const std::string &id, int32_t x, int32_t y)
 
VisRTX::Vec2i GetVec2i (const std::vector< std::string > &ids, const VisRTX::Vec2i &defaultValue=VisRTX::Vec2i(), bool *found=nullptr) const
 
bool GetVec2i (const std::vector< std::string > &ids, VisRTX::Vec2i *result, const VisRTX::Vec2i &defaultValue=VisRTX::Vec2i())
 
void SetVec2f (const std::string &id, float x, float y)
 
VisRTX::Vec2f GetVec2f (const std::vector< std::string > &ids, const VisRTX::Vec2f &defaultValue=VisRTX::Vec2f(), bool *found=nullptr) const
 
bool GetVec2f (const std::vector< std::string > &ids, VisRTX::Vec2f *result, const VisRTX::Vec2f &defaultValue=VisRTX::Vec2f())
 
void SetVec3i (const std::string &id, int32_t x, int32_t y, int32_t z)
 
VisRTX::Vec3i GetVec3i (const std::vector< std::string > &ids, const VisRTX::Vec3i &defaultValue=VisRTX::Vec3i(), bool *found=nullptr) const
 
bool GetVec3i (const std::vector< std::string > &ids, VisRTX::Vec3i *result, const VisRTX::Vec3i &defaultValue=VisRTX::Vec3i())
 
void SetVec3f (const std::string &id, float x, float y, float z)
 
VisRTX::Vec3f GetVec3f (const std::vector< std::string > &ids, const VisRTX::Vec3f &defaultValue=VisRTX::Vec3f(), bool *found=nullptr) const
 
bool GetVec3f (const std::vector< std::string > &ids, VisRTX::Vec3f *result, const VisRTX::Vec3f &defaultValue=VisRTX::Vec3f())
 
void SetVec4f (const std::string &id, float x, float y, float z, float w)
 
VisRTX::Vec4f GetVec4f (const std::vector< std::string > &ids, const VisRTX::Vec4f &defaultValue=VisRTX::Vec4f(), bool *found=nullptr) const
 
bool GetVec4f (const std::vector< std::string > &ids, VisRTX::Vec4f *result, const VisRTX::Vec4f &defaultValue=VisRTX::Vec4f())
 
virtual void RemoveParam (const std::string &id)
 
void PrintAllParameters () const
 
std::set< std::string > GetAllParameters () const
 
RTWDataType GetDataType () const
 

Friends

class Renderer
 

Detailed Description

Definition at line 12 of file FrameBuffer.h.

Constructor & Destructor Documentation

◆ FrameBuffer()

RTW::FrameBuffer::FrameBuffer ( const rtw::vec2i size,
const RTWFrameBufferFormat  format,
const uint32_t  frameBufferChannels 
)
inline

Definition at line 17 of file FrameBuffer.h.

◆ ~FrameBuffer()

RTW::FrameBuffer::~FrameBuffer ( )
inline

Definition at line 33 of file FrameBuffer.h.

Member Function Documentation

◆ Commit()

void RTW::FrameBuffer::Commit ( )
inlineoverridevirtual

Implements RTW::Object.

Definition at line 38 of file FrameBuffer.h.

◆ Clear()

void RTW::FrameBuffer::Clear ( void  )
inline

Definition at line 42 of file FrameBuffer.h.

◆ Map()

const void* RTW::FrameBuffer::Map ( const RTWFrameBufferChannel  channel)
inline

Definition at line 47 of file FrameBuffer.h.

◆ Unmap()

void RTW::FrameBuffer::Unmap ( const void *  mapped)
inline

Definition at line 58 of file FrameBuffer.h.

◆ SetDepthNormalizationGL()

void RTW::FrameBuffer::SetDepthNormalizationGL ( float  clipMin,
float  clipMax 
)
inline

Definition at line 63 of file FrameBuffer.h.

◆ GetColorTextureGL()

int RTW::FrameBuffer::GetColorTextureGL ( )
inline

Definition at line 68 of file FrameBuffer.h.

◆ GetDepthTextureGL()

int RTW::FrameBuffer::GetDepthTextureGL ( )
inline

Definition at line 81 of file FrameBuffer.h.

Friends And Related Function Documentation

◆ Renderer

friend class Renderer
friend

Definition at line 14 of file FrameBuffer.h.


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