VisPro
1.0
Project of Visualisierung 2
|
#include <BufferView.h>
Public Member Functions | |
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 ()=0 |
virtual std::vector< std::tuple< cv::Mat, std::string > > | SplitMatrixToChannels (const cv::Mat &rgbMat) |
virtual std::string | GetBufferWindowChannelName (const std::string &channelName) |
Protected Attributes | |
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 |
Buffer view base class. Provides OpenCV Window for given buffer. splits up buffer in several channels if desired.
|
inline |
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) |
|
protectedvirtual |
Get the name of the OpenCV buffer window for given channels.
channelName | the name identifier of the given channels |
|
protectedpure virtual |
Read the given matrix into an OpenCV matrix.
Implemented in ZBufferView, RGBBufferView, TextureView, and FrameBufferObjectView.
|
virtual |
Open OpenCV windows with specialized views on given buffer.
show | opens OpenCV windows it true, close existing windows if false |
|
protectedvirtual |
Split the given RGB OpenCV matrix into its channels.
rgbMat | the RGB OpenCV matrix to split |
|
virtual |
Update already opened OpenCV windows with specialized views on given buffer.