glwidget.hpp

Go to the documentation of this file.
00001 #ifndef _GLWIDGET_HPP_
00002 #define _GLWIDGET_HPP_
00003 
00004 
00005 #include <QtOpenGL/QGLWidget>
00006 #include <QTime>
00007 #include <navigator_tool.hpp>
00008 #include <scene.hpp>
00009 
00010 
00011 class glwidget : public QGLWidget
00012 {
00013 
00014     Q_OBJECT
00015 
00016 public:
00017 
00018     glwidget(QWidget *parent=0);
00019     ~glwidget();
00020 
00021     void set_wireframe();
00022     void set_filled();
00023 
00024     scene current_scene;
00025 
00026 protected:
00027   void initializeGL();
00028   void paintGL();
00029   void resizeGL(int width, int height);
00030   void mousePressEvent(QMouseEvent *event);
00031   void mouseReleaseEvent(QMouseEvent *event);
00032   void mouseMoveEvent(QMouseEvent *event);
00033   void keyPressEvent(QKeyEvent *event);
00034   void timerEvent(QTimerEvent *event);
00035 
00036 private:
00037 
00038   cpe::navigator_tool nav;
00039 
00040   void print_help_start() const;
00041   void draw_pointer(cpe::navigator_tool& nav) const;
00042   void draw_orientation(cpe::navigator_tool& nav) const;
00043   void draw_camera_stat();
00044 
00045   void draw_fps();
00046   void draw_decorating_info();
00047 
00048   QTime t_timer;
00049 
00050 };
00051 
00052 
00053 #endif
Generated on Thu Nov 17 16:15:16 2011 by  doxygen 1.6.3