our main glwindow widget for all drawing elements are put in this file
More...
#include <RGBWindow.h>
List of all members.
Protected Member Functions |
void | initializeGL () |
| The following methods must be implimented in the sub class this is called when the window is created.
|
void | paintGL () |
| this is the main gl drawing routine which is called whenever the window needs to
|
void | resizeGL (const int _w, const int _h) |
| this is called whenever the window is re-sized
|
Private Member Functions |
void | mouseMoveEvent (QMouseEvent *_event) |
| this method is called every time a mouse is moved
|
void | mousePressEvent (QMouseEvent *_event) |
| this method is called everytime the mouse button is pressed inherited from QObject and overridden here.
|
void | mouseReleaseEvent (QMouseEvent *_event) |
| this method is called everytime the mouse button is released inherited from QObject and overridden here.
|
void | timerEvent (QTimerEvent *_event) |
| called when the timer is triggered
|
Private Attributes |
int | m_mode |
| the draw mode we are using
|
std::vector< uint8_t > | m_rgb |
| the image data to draw put into a GL texture
|
GLuint | m_rgbTexture |
| the texture object pointer
|
Detailed Description
our main glwindow widget for all drawing elements are put in this file
Definition at line 44 of file RGBWindow.h.
Constructor & Destructor Documentation
RGBWindow::RGBWindow |
( |
QWidget * |
_parent | ) |
|
Constructor for RGBWindow.
- Parameters:
-
[in] | _parent | the parent window to create the GL context in |
Definition at line 30 of file RGBWindow.cpp.
RGBWindow::~RGBWindow |
( |
| ) |
|
Member Function Documentation
void RGBWindow::initializeGL |
( |
| ) |
|
|
protected |
The following methods must be implimented in the sub class this is called when the window is created.
- Note:
- these are part of the Qt API so can't be changed to the coding standard so it can't be called initializeGL )
Definition at line 47 of file RGBWindow.cpp.
void RGBWindow::mouseMoveEvent |
( |
QMouseEvent * |
_event | ) |
|
|
private |
this method is called every time a mouse is moved
- Parameters:
-
_event | the Qt Event structure |
- Note:
- these are part of the Qt API so can't be changed to the coding standard so it can't be called MouseMoveEvent )
Definition at line 121 of file RGBWindow.cpp.
void RGBWindow::mousePressEvent |
( |
QMouseEvent * |
_event | ) |
|
|
private |
this method is called everytime the mouse button is pressed inherited from QObject and overridden here.
- Parameters:
-
_event | the Qt Event structure |
- Note:
- these are part of the Qt API so can't be changed to the coding standard so it can't be called MousePressEvent )
Definition at line 127 of file RGBWindow.cpp.
void RGBWindow::mouseReleaseEvent |
( |
QMouseEvent * |
_event | ) |
|
|
private |
this method is called everytime the mouse button is released inherited from QObject and overridden here.
- Parameters:
-
_event | the Qt Event structure |
- Note:
- these are part of the Qt API so can't be changed to the coding standard so it can't be called MousePressEvent )
Definition at line 132 of file RGBWindow.cpp.
void RGBWindow::paintGL |
( |
| ) |
|
|
protected |
this is the main gl drawing routine which is called whenever the window needs to
Definition at line 84 of file RGBWindow.cpp.
void RGBWindow::resizeGL |
( |
const int |
_w, |
|
|
const int |
_h |
|
) |
| |
|
protected |
this is called whenever the window is re-sized
- Parameters:
-
[in] | _w | the width of the resized window |
[in] | _h | the height of the resized window |
- Note:
- these are part of the Qt API so can't be changed to the coding standard so it can't be called resizeGL )
Definition at line 71 of file RGBWindow.cpp.
void RGBWindow::setMode |
( |
int |
_m | ) |
|
|
inline |
a method to set the draw mode (RGB or Depth)
- Parameters:
-
Definition at line 57 of file RGBWindow.h.
void RGBWindow::timerEvent |
( |
QTimerEvent * |
_event | ) |
|
|
private |
called when the timer is triggered
Definition at line 139 of file RGBWindow.cpp.
Member Data Documentation
the draw mode we are using
Definition at line 68 of file RGBWindow.h.
std::vector<uint8_t> RGBWindow::m_rgb |
|
private |
the image data to draw put into a GL texture
Definition at line 62 of file RGBWindow.h.
GLuint RGBWindow::m_rgbTexture |
|
private |
the texture object pointer
Definition at line 65 of file RGBWindow.h.
The documentation for this class was generated from the following files: