VisPro  1.0
Project of Visualisierung 2
TextureView Class Reference

#include <TextureView.h>

Inheritance diagram for TextureView:
BufferView FrameBufferObjectView

Public Member Functions

 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)
 

Protected Attributes

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 given OpenGL texture as the buffer to be viewed.

Constructor & Destructor Documentation

TextureView::TextureView ( int  width,
int  height,
const std::string &  windowName,
Channels  channels,
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)
textureUnitIDidentifies the textureUnit that will be activated
textureIDidentifies the texture that should be bound

Member Function Documentation

cv::Mat TextureView::ReadBufferToMatrix ( )
protectedvirtual

Read the given matrix into an OpenCV matrix.

Returns
return the RGB matrix.

Implements BufferView.

Reimplemented in FrameBufferObjectView.


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