Point Cloud Viewer  1.00
A Viewer to display point clouds with phong shading by converting them to splats.
entitymoveable.h
1 #ifndef ENTITYMOVEABLE_H
2 #define ENTITYMOVEABLE_H
3 
4 #include <entity.h>
5 #include <QMatrix4x4>
6 
11 class EntityMoveable : public Entity
12 {
13 public:
21 
30  EntityMoveable(float x, float y, float z);
31  ~EntityMoveable();
32 
40  void rotate(QVector3D &axis, float angle);
41 
46  void move(QVector3D &vec);
47 
52  virtual void scale(float value);
53 
57  virtual void reset();
58 protected:
59  QMatrix4x4 modelMat;
60 };
61 
62 #endif // ENTITYMOVEABLE_H
float z
The z coordinate of the entity's location.
Definition: entity.h:13
virtual void reset()
Resets the local coordinate system to the world coordinate system.
Definition: entitymoveable.cpp:27
void rotate(QVector3D &axis, float angle)
Rotates the local coordinate system around a given axis.
Definition: entitymoveable.cpp:13
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
EntityMoveable()
Creates the Entity at the origin.
Definition: entitymoveable.cpp:3
Complements the Entity with a possibility to define and edit a local coordinate system.
Definition: entitymoveable.h:11
float x
The x coordinate of the entity's location.
Definition: entity.h:11
void move(QVector3D &vec)
Moves the model along a vector.
Definition: entitymoveable.cpp:17
virtual void scale(float value)
Scales the object around the local origin.
Definition: entitymoveable.cpp:23