Point Cloud Viewer
1.00
A Viewer to display point clouds with phong shading by converting them to splats.
|
Represents a cloud model. More...
#include <entitycloud.h>
Inherits EntityMoveable.
Public Member Functions | |
EntityCloud () | |
Creates an empty cloud model. | |
~EntityCloud () | |
Calls clearGPU() and clearCPU(). More... | |
bool | load (std::string &file, unsigned char k=20, float epsilon=0.0005) |
Loads a cloud model and converts it to a splat cloud. More... | |
void | clearCPU () |
Removes the cloud from cpu storage - gpu storage left untouched. | |
void | clearGPU () |
Removes the cloud from gpu storage - cpu storage left untouched. | |
RenderPass::VaoChannel & | getVaoOutput () |
Returns a VaoChannel containing the geometry. More... | |
Public Member Functions inherited from EntityMoveable | |
EntityMoveable () | |
Creates the Entity at the origin. More... | |
EntityMoveable (float x, float y, float z) | |
Creates the Entity at the given position. More... | |
void | rotate (QVector3D &axis, float angle) |
Rotates the local coordinate system around a given axis. More... | |
void | move (QVector3D &vec) |
Moves the model along a vector. More... | |
virtual void | scale (float value) |
Scales the object around the local origin. More... | |
virtual void | reset () |
Resets the local coordinate system to the world coordinate system. | |
Public Member Functions inherited from Entity | |
Entity (float x, float y, float z) | |
Creates a new entity at the given location. More... | |
Entity () | |
Creates a new entity at the origin (0,0,0). | |
float | distance (Entity &to) |
Computes the euclidean distance to another entity. More... | |
float | distance (float x, float y, float z) |
Computes the euclidean distance to a location. More... | |
QVector3D | getPos () |
Returns the location of the entity. More... | |
virtual void | setPos (QVector3D &pos) |
Changes the entity's location. More... | |
virtual void | setPos (float x, float y, float z) |
Changes the entity's location. More... | |
Additional Inherited Members | |
Public Attributes inherited from Entity | |
float | x |
The x coordinate of the entity's location. | |
float | y |
The y coordinate of the entity's location. | |
float | z |
The z coordinate of the entity's location. | |
Protected Attributes inherited from EntityMoveable | |
QMatrix4x4 | modelMat |
Represents a cloud model.
Provides loading functionality and can also provide a VaoChannel containing the geometry. The channel can then be used as Input for RenderPasses. After the first call of getVaoOutput() the geometry can be removed from the CPU using clearCPU() without affecting the content of the VaoChannel. The VaoChannel will only be updated when clearGPU() was called and the channel is requested again using getVaoOutput().
EntityCloud::~EntityCloud | ( | ) |
Calls clearGPU() and clearCPU().
Might use OpenGL calls.
RenderPass::VaoChannel & EntityCloud::getVaoOutput | ( | ) |
Returns a VaoChannel containing the geometry.
bool EntityCloud::load | ( | std::string & | file, |
unsigned char | k = 20 , |
||
float | epsilon = 0.0005 |
||
) |
Loads a cloud model and converts it to a splat cloud.
file | The file name. |
k | The parameter for the kNN used during splat generation. |
epsilon | A parameter defining the maximum deviation during splat generation. |