Point Cloud Viewer  1.00
A Viewer to display point clouds with phong shading by converting them to splats.
splat.h
1 #ifndef SPLAT_H
2 #define SPLAT_H
3 
4 #include "entity.h"
5 
13 class Splat : public Entity
14 {
15 public:
16  float nx, ny, nz;
17  unsigned char r, g, b;
18  float ux, uy, uz, vx, vy, vz;
19  bool normalCorr;
20 
27  Splat();
28 
36  Splat(Entity &entity);
37  ~Splat();
38  QVector3D getNormal();
39  QVector3D getU();
40  QVector3D getV();
41  void setNormal(QVector3D &n);
42  void setU(const QVector3D &u);
43  void setV(const QVector3D &v);
44 
48  void flipNormal();
49 
56  void adaptUvToNormal();
57 };
58 
59 #endif // SPLAT_H
Splat()
Creates a Splat with default values.
Definition: splat.cpp:3
bool normalCorr
if the normal has been corrected
Definition: splat.h:19
float nz
normal
Definition: splat.h:16
Stores information about a single splat.
Definition: splat.h:13
float vz
ellipse tangent vectors
Definition: splat.h:18
An element with a location in 3-dimensional space.
Definition: entity.h:9
void flipNormal()
Inverts the direction in which the normal vector is pointing.
Definition: splat.cpp:54
unsigned char b
color
Definition: splat.h:17
void adaptUvToNormal()
Adapts u and v to the normal.
Definition: splat.cpp:60