Point Cloud Viewer  1.00
A Viewer to display point clouds with phong shading by converting them to splats.
entity.h
1 #ifndef ENTITY_H
2 #define ENTITY_H
3 
4 #include <QVector3D>
5 
9 class Entity {
10 public:
11  float x;
12  float y;
13  float z;
14 
21  Entity(float x, float y, float z);
22 
26  Entity();
27  virtual ~Entity();
28 
34  float distance(Entity &to);
35 
43  float distance(float x, float y, float z);
44 
49  QVector3D getPos();
50 
55  virtual void setPos(QVector3D &pos);
56 
63  virtual void setPos(float x, float y, float z);
64 };
65 
66 #endif // ENTITY_H
float z
The z coordinate of the entity's location.
Definition: entity.h:13
QVector3D getPos()
Returns the location of the entity.
Definition: entity.cpp:32
virtual void setPos(QVector3D &pos)
Changes the entity's location.
Definition: entity.cpp:36
Entity()
Creates a new entity at the origin (0,0,0).
Definition: entity.cpp:10
float distance(Entity &to)
Computes the euclidean distance to another entity.
Definition: entity.cpp:18
float y
The y coordinate of the entity's location.
Definition: entity.h:12
An element with a location in 3-dimensional space.
Definition: entity.h:9
float x
The x coordinate of the entity's location.
Definition: entity.h:11