|
Point Cloud Viewer
1.00
A Viewer to display point clouds with phong shading by converting them to splats.
|
Stores information about a single splat. More...
#include <splat.h>
Inherits Entity.
Public Member Functions | |
| Splat () | |
| Creates a Splat with default values. More... | |
| Splat (Entity &entity) | |
| Creates a Splat at the given location. More... | |
| QVector3D | getNormal () |
| QVector3D | getU () |
| QVector3D | getV () |
| void | setNormal (QVector3D &n) |
| void | setU (const QVector3D &u) |
| void | setV (const QVector3D &v) |
| void | flipNormal () |
| Inverts the direction in which the normal vector is pointing. | |
| void | adaptUvToNormal () |
| Adapts u and v to the normal. More... | |
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... | |
Public Attributes | |
| float | nx |
| float | ny |
| float | nz |
| normal | |
| unsigned char | r |
| unsigned char | g |
| unsigned char | b |
| color | |
| float | ux |
| float | uy |
| float | uz |
| float | vx |
| float | vy |
| float | vz |
| ellipse tangent vectors | |
| bool | normalCorr |
| if the normal has been corrected | |
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. | |
Stores information about a single splat.
In addition to the location inherited from Entity, a splat also contains information about its normal, color and the u and v axes. The length of the vectors u and v are the inverse of the scalar ellipse parameters u and v.
| Splat::Splat | ( | ) |
Creates a Splat with default values.
The splat is located at the origin, with normal vector (0,0,1), u is (1,0,0) and v is (0,1,0). Its color is set to white.
| Splat::Splat | ( | Entity & | entity | ) |
Creates a Splat at the given location.
The normal vector is initialized with (0,0,1), u is (1,0,0) and v is (0,1,0). The color is set to white.
| entity | An entity providing the location information for the new splat. |
| void Splat::adaptUvToNormal | ( | ) |
Adapts u and v to the normal.
This method expects that u, v and n are already orthogonal. It adapts the direction of u so that the cross product of u and v points in n direction.