Point Cloud Viewer  1.00
A Viewer to display point clouds with phong shading by converting them to splats.
globals.h
1 #ifndef GLOBALS_H
2 #define GLOBALS_H
3 
4 #include <QOpenGLFunctions_3_2_Core>
5 #include "pcvglwidget.h"
6 #include "programlogic.h"
7 #include "pointcloudviewer.h"
8 
12 class Globals
13 {
14 public:
15  static unsigned int xRes, yRes;
16  static QOpenGLFunctions_3_2_Core *gl;
19  static ProgramLogic *pl;
20  static float FOV;
21  static float zNear;
22  static float zFar;
23  static float aspect;
24  static float splatScale;
25  static const int FOV_INCREMENT;
26  static QColor bgcolor;
27 
28 private:
29  Globals();
30  ~Globals();
31 };
32 
33 #endif // GLOBALS_H
A place to store global variables. Nothing OOP to see here.
Definition: globals.h:12
static float FOV
The vertical field of view.
Definition: globals.h:20
static QColor bgcolor
The background color for OpenGL.
Definition: globals.h:26
static ProgramLogic * pl
Pointer to the program logic.
Definition: globals.h:19
static QOpenGLFunctions_3_2_Core * gl
Pointer to OpenGL functions.
Definition: globals.h:16
The PCVGLWidget class This class is the opengl window where everything is drawn.
Definition: pcvglwidget.h:17
Provides access to all functionality of the program.
Definition: programlogic.h:17
static float aspect
The aspect ratio of the image plane (x/y)
Definition: globals.h:23
static float zFar
The z coordinate of the far plane.
Definition: globals.h:22
static PCVGLWidget * glwindow
Pointer to the QOpenGLWidget that displays the point clouds.
Definition: globals.h:17
static float zNear
The z coordinate of the near plane.
Definition: globals.h:21
static PointCloudViewer * mainwindow
Pointer to the main window.
Definition: globals.h:18
static const int FOV_INCREMENT
The step width used for FOV changes.
Definition: globals.h:25
static float splatScale
The scaling of the splats.
Definition: globals.h:24
static unsigned int yRes
The screen resolution.
Definition: globals.h:15
PointCloudViewer This class is the main window of the Application.
Definition: pointcloudviewer.h:15