direcs  2012-09-30
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
RGBWindow Class Reference

our main glwindow widget for all drawing elements are put in this file More...

#include <RGBWindow.h>

List of all members.

Public Member Functions

 RGBWindow (QWidget *_parent)
 Constructor for RGBWindow.
void setMode (int _m)
 a method to set the draw mode (RGB or Depth)
 ~RGBWindow ()

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]_parentthe parent window to create the GL context in

Definition at line 30 of file RGBWindow.cpp.

RGBWindow::~RGBWindow ( )

Definition at line 146 of file RGBWindow.cpp.


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:
_eventthe 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:
_eventthe 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:
_eventthe 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.

Here is the call graph for this function:

void RGBWindow::resizeGL ( const int  _w,
const int  _h 
)
protected

this is called whenever the window is re-sized

Parameters:
[in]_wthe width of the resized window
[in]_hthe 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:
[in]_mthe mode to use

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

int RGBWindow::m_mode
private

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: