VisPro
1.0
Project of Visualisierung 2
|
#include <FrameBufferObjectView.h>
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 |
Uses the bound texture of the given OpenGL frame buffer object as the buffer to be viewed.
FrameBufferObjectView::FrameBufferObjectView | ( | int | width, |
int | height, | ||
const std::string & | windowName, | ||
Channels | channels, | ||
GLuint | fboID, | ||
GLuint | textureUnitID, | ||
GLuint | textureID | ||
) |
Constructor.
width | width of buffer |
height | height of buffer |
windowName | basic name part of OpenCV windows for viewing the buffer |
channels | identifies the channel combination that should be shown (in several windows) |
fboID | identifies the frame buffer object that will be bound |
textureUnitID | identifies the textureUnit that will be activated |
textureID | identifies the texture that should be bound |
|
protectedvirtual |
Read the given matrix into an OpenCV matrix.
Reimplemented from TextureView.