-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglrenderthread.h
More file actions
executable file
·70 lines (52 loc) · 1.51 KB
/
glrenderthread.h
File metadata and controls
executable file
·70 lines (52 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef GLRENDERTHREAD_H
#define GLRENDERTHREAD_H
#include <QThread>
#include <QtGui/QCursor>
#include <QtGui/QVector3D>
#include <vector>
#include <iostream>
#include <pointcloud.h>
#include <opencv2/core/core.hpp>
#include "/System/Library/Frameworks/GLUT.framework/Versions/A/Headers/glut.h"
using namespace std;
class GLFrame;
class QSize;
class GLRenderThread : public QThread
{
Q_OBJECT
public:
explicit GLRenderThread (GLFrame *parent = 0);
void resizeViewport (const QSize &size);
void run (void);
void stop (void);
void resume (void);
void updateCameraDistanceFromCenter (float dist);
void setPointCloud (PointCloud *point_cloud);
void addCameraPyramid (cv::Mat_<double> &camera_matrix, int rows, int cols);
protected:
void GLInit (void);
void GLResize (int width, int height);
void paintGL (void);
private:
bool doRendering, doResize;
int w, h, FrameCounter;
GLFrame *GLFrame_var;
QCursor _mouse;
QPoint _last_pos;
QPoint _delta;
QPoint _current_angles;
QVector3D _o;
float _camera_dist;
GLfloat _m[16];
void drawGrid (void);
void drawCurrentOriginAxes (void);
void displayCameraPyramids (void);
vector<vector<cv::Mat_<double> > > camera_pyramids;
void addLoaderAnim (void);
void removeLoaderAnim (void);
vector<vector<float> > _loader_anim;
PointCloud *_point_cloud;
signals:
public slots:
};
#endif // GLRENDERTHREAD_H