KINECT STATS GENERATOR FOR SPORTS VISUALISATION
1.0
|
00001 #ifndef LUMINANCEWINDOW_H__ 00002 #define LUMINANCEWINDOW_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 "ScreenQuad.h" 00012 00013 #include <QTime> 00014 #include <QEvent> 00015 #include <QResizeEvent> 00016 00023 00024 00025 class DepthDebugVisualization : public QGLWidget 00026 { 00027 Q_OBJECT // must include this if you use Qt signals/slots 00028 public : 00031 DepthDebugVisualization( 00032 QWidget *_parent 00033 ); 00034 ~DepthDebugVisualization(); 00035 00036 private : 00037 00038 00039 //---------------------------------------------------------------------------------------------------------------------- 00041 //---------------------------------------------------------------------------------------------------------------------- 00042 cv::Mat m_depth; 00043 00044 //---------------------------------------------------------------------------------------------------------------------- 00046 //---------------------------------------------------------------------------------------------------------------------- 00047 QTime m_timer; 00048 00049 //---------------------------------------------------------------------------------------------------------------------- 00051 //---------------------------------------------------------------------------------------------------------------------- 00052 ScreenQuad *m_screen; 00053 00054 00055 00056 00057 protected: 00058 00061 void initializeGL(); 00062 00066 void resizeGL( 00067 const int _w, 00068 const int _h 00069 ); 00071 // be re-drawn 00072 void paintGL(); 00073 00074 private : 00077 00078 void mouseMoveEvent ( 00079 QMouseEvent * _event 00080 ); 00084 00085 void mousePressEvent ( 00086 QMouseEvent *_event 00087 ); 00088 00092 void mouseReleaseEvent ( 00093 QMouseEvent *_event 00094 ); 00096 00097 void timerEvent( 00098 QTimerEvent *_event 00099 ); 00100 00101 }; 00102 00103 #endif