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

#include <glwidget.h>

List of all members.

Public Member Functions

 GLWidget (QWidget *_parent)
QImage mat2qimage (const cv::Mat &mat)
 Convert from cv::Mat to Qt::QImage.
void processOpenCV ()
 do OpenCV stuff
cv::Mat qimage2mat (const QImage &qimage)
 Convert from Qt::QImage to cv::Mat.
void sendImage (cv::Mat *img)

Protected Member Functions

void initializeGL ()
void paintGL ()
void resizeGL (int width, int height)

Private Member Functions

void timerEvent (QTimerEvent *_event)
 called when the timer is triggered

Private Attributes

std::vector< uint8_t > m_rgb
 the image data from the Kinect
cv::Mat mImage
QImage qframe

Detailed Description

Definition at line 14 of file glwidget.h.

Constructor & Destructor Documentation

GLWidget::GLWidget ( QWidget *  _parent)

Definition at line 4 of file glwidget.cpp.

Member Function Documentation

void GLWidget::initializeGL ( )

Definition at line 18 of file glwidget.cpp.

QImage GLWidget::mat2qimage ( const cv::Mat &  mat)

Convert from cv::Mat to Qt::QImage.

Definition at line 124 of file glwidget.cpp.

Here is the caller graph for this function:

void GLWidget::paintGL ( )

Definition at line 24 of file glwidget.cpp.

Here is the call graph for this function:

void GLWidget::processOpenCV ( )

do OpenCV stuff

Definition at line 133 of file glwidget.cpp.

cv::Mat GLWidget::qimage2mat ( const QImage &  qimage)

Convert from Qt::QImage to cv::Mat.

Definition at line 113 of file glwidget.cpp.

void GLWidget::resizeGL ( int  width,
int  height 

Definition at line 93 of file glwidget.cpp.

void GLWidget::sendImage ( cv::Mat *  img)

Definition at line 104 of file glwidget.cpp.

void GLWidget::timerEvent ( QTimerEvent *  _event)

called when the timer is triggered

Definition at line 182 of file glwidget.cpp.

Member Data Documentation

std::vector<uint8_t> GLWidget::m_rgb

the image data from the Kinect

Definition at line 49 of file glwidget.h.

cv::Mat GLWidget::mImage

Definition at line 46 of file glwidget.h.

QImage GLWidget::qframe

Definition at line 44 of file glwidget.h.

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