|
VisPro
1.0
Project of Visualisierung 2
|
#include <TextureView.h>
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 |
Uses the given OpenGL texture as the buffer to be viewed.
| TextureView::TextureView | ( | int | width, |
| int | height, | ||
| const std::string & | windowName, | ||
| Channels | channels, | ||
| 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) |
| 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.
Implements BufferView.
Reimplemented in FrameBufferObjectView.