KINECT STATS GENERATOR FOR SPORTS VISUALISATION  1.0
RGBboundsVisualization.h
Go to the documentation of this file.
00001 #ifndef RGB_WINDOW_H__
00002 #define RGB_WINDOW_H__
00003 
00004 /*
00005   LICENSING: You are free to use any part of this project provided I am informed about it via email
00006   at santoshwins@hotmail.com and referenced appropriately in your works
00007   */
00008 
00009 // must be included after our stuff becuase GLEW needs to be first
00010 #include "KinectInterface.h"
00011 #include<ngl/Text.h>
00012 
00013 
00014 #include <QTime>
00015 #include <QEvent>
00016 #include <QResizeEvent>
00017 #include <ScreenQuad.h>
00018 
00025 
00026 
00027 class RGBboundsVisualization : public QGLWidget
00028 {
00029 Q_OBJECT        // must include this if you use Qt signals/slots
00030 public :
00033   RGBboundsVisualization(QWidget *_parent);
00035   ~RGBboundsVisualization();
00036 
00037 private :
00038 
00040     cv::Mat m_rgb;
00041 
00043     QTime m_timer;
00044 
00046     ScreenQuad *m_screen;
00047 
00049     cv::Rect m_selectionBox;
00050 
00052     bool m_drawingStatus;
00053 
00054 
00055 protected:
00056 
00059   void initializeGL();
00060 
00064   void resizeGL(
00065                 const int _w,
00066                 const int _h
00067                );
00069   // be re-drawn
00070   void paintGL();
00071 
00072 private :
00075   void mouseMoveEvent (
00076                        QMouseEvent * _event
00077                       );
00081   void mousePressEvent (
00082                         QMouseEvent *_event
00083                        );
00084 
00088   void mouseReleaseEvent (
00089                           QMouseEvent *_event
00090                          );
00092 
00093   void timerEvent(
00094                     QTimerEvent *_event
00095                    );
00096 
00097 };
00098 
00099 #endif
 All Classes Files Functions Variables Enumerations Enumerator