Point Cloud Viewer  1.00
A Viewer to display point clouds with phong shading by converting them to splats.
entitycloud.h
1 #ifndef ENTITYCLOUD_H
2 #define ENTITYCLOUD_H
3 
4 #include "entityoctreecontainer.h"
5 #include "renderpass.h"
6 #include <QMatrix4x4>
7 #include "entitymoveable.h"
8 
19 class EntityCloud : public EntityMoveable {
20 public:
24  EntityCloud();
25 
31  ~EntityCloud();
32 
40  bool load(std::string &file, unsigned char k = 20, float epsilon = 0.0005);
41 
45  void clearCPU();
46 
50  void clearGPU();
51 
57 
58 private:
60  RenderPass::VaoChannel *channel;
61  GLuint vboId;
62 
63  bool passToGpu();
64 };
65 
66 #endif // ENTITYCLOUD_H
Stores an entity octree.
Definition: entityoctreecontainer.h:9
EntityCloud()
Creates an empty cloud model.
Definition: entitycloud.cpp:8
RenderPass::VaoChannel & getVaoOutput()
Returns a VaoChannel containing the geometry.
Definition: entitycloud.cpp:111
~EntityCloud()
Calls clearGPU() and clearCPU().
Definition: entitycloud.cpp:13
void clearGPU()
Removes the cloud from gpu storage - cpu storage left untouched.
Definition: entitycloud.cpp:37
Represents a cloud model.
Definition: entitycloud.h:19
This channel is used to link geometry.
Definition: renderpass.h:182
Complements the Entity with a possibility to define and edit a local coordinate system.
Definition: entitymoveable.h:11
bool load(std::string &file, unsigned char k=20, float epsilon=0.0005)
Loads a cloud model and converts it to a splat cloud.
Definition: entitycloud.cpp:18
void clearCPU()
Removes the cloud from cpu storage - gpu storage left untouched.
Definition: entitycloud.cpp:32