00001 #ifndef GL2DView_H 00002 #define GL2DView_H 00003 00004 #include "GLView.h" 00005 00006 class GL2DView : public GLView 00007 { 00008 public: 00009 GL2DView(); 00010 ~GL2DView(); 00011 00012 void initializeGL(); 00013 void uninitializeGL(); 00014 void paintGL(); 00015 void resizeGL(int width, int height); 00016 void mousePressEvent(QMouseEvent *event); 00017 void mouseMoveEvent(QMouseEvent *event); 00018 void wheelEvent(QWheelEvent *event); 00019 00020 protected: 00021 void mouseEvent(QMouseEvent *event); 00022 00023 private: 00024 GLfloat xCoord, yCoord, zCoord; 00025 QPoint lastPos; 00026 }; 00027 00028 #endif // GL2DView_H