goat3d

view goatview/src/goatview.h @ 76:9785847d52d4

bounding boxes calculation (untested) and automatic camera placement in goatview
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 08 May 2014 13:43:45 +0300
parents 76dea247f75c
children 53ea5b25426e
line source
1 #ifndef GOATVIEW_H_
2 #define GOATVIEW_H_
4 #include <QtCore/QtCore>
5 #include <QtWidgets/QtWidgets>
6 #include <QtOpenGL/QGLWidget>
7 #include "goat3d.h"
9 extern goat3d *scene;
10 extern QSettings *settings;
12 bool load_scene(const char *fname);
14 class GoatView : public QMainWindow {
15 Q_OBJECT
16 private:
17 void closeEvent(QCloseEvent *ev);
18 bool make_menu();
19 bool make_dock();
20 bool make_center();
22 private slots:
23 void open_scene();
24 void open_anim();
26 public:
27 GoatView();
28 ~GoatView();
29 };
31 class GoatViewport : public QGLWidget {
32 Q_OBJECT
33 public:
34 GoatViewport();
35 ~GoatViewport();
37 QSize sizeHint() const;
39 void initializeGL();
40 void resizeGL(int xsz, int ysz);
41 void paintGL();
42 };
44 #endif // GOATVIEW_H_