VisPro  1.0
Project of Visualisierung 2
FrameBufferObjectView Class Reference

#include <FrameBufferObjectView.h>

Inheritance diagram for FrameBufferObjectView:
TextureView BufferView

Public Member Functions

 FrameBufferObjectView (int width, int height, const std::string &windowName, Channels channels, GLuint fboID, GLuint textureUnitID, GLuint textureID)
 
- Public Member Functions inherited from TextureView
 TextureView (int width, int height, const std::string &windowName, Channels channels, GLuint textureUnitID, GLuint textureID)
 
- Public Member Functions inherited from BufferView
 BufferView (int width, int height, const std::string &windowName, Channels channels=Channels::RGB)
 
virtual bool ShowBufferView (bool show)
 
virtual bool UpdateBufferView ()
 

Protected Member Functions

virtual cv::Mat ReadBufferToMatrix ()
 
- Protected Member Functions inherited from BufferView
virtual std::vector< std::tuple< cv::Mat, std::string > > SplitMatrixToChannels (const cv::Mat &rgbMat)
 
virtual std::string GetBufferWindowChannelName (const std::string &channelName)
 

Additional Inherited Members

- Protected Attributes inherited from TextureView
GLubyte * m_texBuffer
 
cv::Mat m_texMat
 
GLuint m_textureID
 
GLuint m_textureUnitID
 
- Protected Attributes inherited from BufferView
std::string m_bufferWindowName = "buffer view"
 
std::vector< std::tuple< HWND, std::string > > m_bufferWindowHandles
 
int m_width = 1024
 
int m_height = 800
 
Channels m_channels
 

Detailed Description

Uses the bound texture of the given OpenGL frame buffer object as the buffer to be viewed.

Constructor & Destructor Documentation

FrameBufferObjectView::FrameBufferObjectView ( int  width,
int  height,
const std::string &  windowName,
Channels  channels,
GLuint  fboID,
GLuint  textureUnitID,
GLuint  textureID 
)

Constructor.

Parameters
widthwidth of buffer
heightheight of buffer
windowNamebasic name part of OpenCV windows for viewing the buffer
channelsidentifies the channel combination that should be shown (in several windows)
fboIDidentifies the frame buffer object that will be bound
textureUnitIDidentifies the textureUnit that will be activated
textureIDidentifies the texture that should be bound

Member Function Documentation

cv::Mat FrameBufferObjectView::ReadBufferToMatrix ( )
protectedvirtual

Read the given matrix into an OpenCV matrix.

Returns
return the RGB matrix.

Reimplemented from TextureView.


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