-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgeometryengine.h
More file actions
33 lines (24 loc) · 810 Bytes
/
geometryengine.h
File metadata and controls
33 lines (24 loc) · 810 Bytes
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
#ifndef GEOMETRYENGINE_H
#define GEOMETRYENGINE_H
#include "staticHeaders.h"
class GeometryEngine : protected QGLFunctions
{
public:
GeometryEngine();
virtual ~GeometryEngine();
void init();
void drawCubeGeometry(QGLShaderProgram *program);
void initPointCloud();
void setPointCloudTo(pcl::PointCloud<pcl::PointXYZRGB>::Ptr pointcloud);
void drawPointCloud(QGLShaderProgram *program);
void initSurfaceMesh();
void setSurfaceMeshTo(pcl::PolygonMesh &surfacemesh, pcl::PointCloud<pcl::PointXYZRGB>::Ptr &pointCloud);
void drawSurfaceMesh(QGLShaderProgram *program);
void initGroundPlane();
void drawGroundPlane(QGLShaderProgram *program);
private:
void initCubeGeometry();
GLuint *vboIds;
GLuint numberOfIndices;
};
#endif // GEOMETRYENGINE_H