Point Cloud Viewer  1.00
A Viewer to display point clouds with phong shading by converting them to splats.
light.h
1 #ifndef LIGHT_H
2 #define LIGHT_H
3 
4 #include <entitymoveable.h>
5 #include <QColor>
6 #include "renderpass.h"
7 
11 class Light : public EntityMoveable {
12 public:
13  QColor color;
14  float intensity;
15 
19  Light();
28  Light(QColor color, float intensity, float x, float y, float z);
29  ~Light();
30  void scale(float value);
31 
37 
41  void reset() override;
42 
43 private:
44  RenderPass::VaoChannel *channel;
45  static GLuint vaoId, vboId;
46  static unsigned char instanceCounter;
47 
48  static void passToGPU();
49 };
50 
51 #endif // LIGHT_H
RenderPass::VaoChannel & getVaoOutput()
Returns a VaoChannel containing a geometry representation of the light.
Definition: light.cpp:33
float z
The z coordinate of the entity's location.
Definition: entity.h:13
QColor color
The lightcolor.
Definition: light.h:13
void reset() override
reset this lights intensity and position with parent class reset
Definition: light.cpp:67
Stores information about a light.
Definition: light.h:11
float y
The y coordinate of the entity's location.
Definition: entity.h:12
This channel is used to link geometry.
Definition: renderpass.h:182
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
Light()
Creates a light at the world origin.
Definition: light.cpp:7
float intensity
The light's intensity.
Definition: light.h:14
void scale(float value)
Scales the object around the local origin.
Definition: light.cpp:29