Point Cloud Viewer  1.00
A Viewer to display point clouds with phong shading by converting them to splats.
pcvglwidget.h
1 #ifndef PCVGLWIDGET_H
2 #define PCVGLWIDGET_H
3 
4 #include <QtWidgets>
5 #include <QOpenGLWidget>
6 
7 #define GL Globals::gl
8 #define PL Globals::pl
9 
10 #define MOUSE_ROTATE 1
11 #define MOUSE_DRAG 2
12 
17 class PCVGLWidget : public QOpenGLWidget
18 {
19  Q_OBJECT
20 public:
21  explicit PCVGLWidget(QWidget *parent = 0);
22  ~PCVGLWidget();
23  //bool eventFilter(QObject *obj, QEvent *event);
24 
29  void setClearColor(QColor col);
30 
31 protected:
32  void initializeGL();
33  void paintGL();
34  void resizeGL(int width, int height);
35  void mouseMoveEvent(QMouseEvent *ev);
36  void mousePressEvent(QMouseEvent *ev);
37  void mouseReleaseEvent(QMouseEvent * ev);
38  void wheelEvent(QWheelEvent * ev);
39 
40 signals:
41  void exit();
42  int fovupdate();
43 
44 private:
45  static QPoint mousePos;
46  static int mouseMode;
47 
48 public slots:
49 };
50 
51 #endif // PCVGLWIDGET_H
void setClearColor(QColor col)
sets glClearColor()
Definition: pcvglwidget.cpp:141
The PCVGLWidget class This class is the opengl window where everything is drawn.
Definition: pcvglwidget.h:17