]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robomon/GlWidget.h
robodim: Hokuyo returned back to original position.
[eurobot/public.git] / src / robomon / GlWidget.h
1 /*
2  * GlWidget.h                           08/01/26
3  *
4  * A OpenGL widget template.
5  *
6  * Copyright: (c) 2008 CTU Dragons
7  *            CTU FEE - Department of Control Engineering
8  * Authors: Martin Zidek, Michal Sojka, Tran Duy Khanh
9  * License: GNU GPL v.2
10  */
11
12 #ifndef GLWIDGET_H
13 #define GLWIDGET_H
14
15 #include <QGLWidget>
16 #include "Painter.h"
17
18 class QPaintEvent;
19 class QWidget;
20
21 class GLWidget : public QGLWidget
22 {
23         Q_OBJECT
24
25 public:
26         GLWidget(Painter *painter, QWidget *parent);
27
28 public slots:
29         void animate();
30
31 protected:
32         void paintEvent(QPaintEvent *event);
33
34 private:
35         Painter *painter;
36 };
37
38 #endif