Point Cloud Viewer
1.00
A Viewer to display point clouds with phong shading by converting them to splats.
|
Stores information about a light. More...
#include <light.h>
Inherits EntityMoveable.
Public Member Functions | |
Light () | |
Creates a light at the world origin. | |
Light (QColor color, float intensity, float x, float y, float z) | |
Creates a light with the given properties. More... | |
void | scale (float value) |
Scales the object around the local origin. More... | |
RenderPass::VaoChannel & | getVaoOutput () |
Returns a VaoChannel containing a geometry representation of the light. More... | |
void | reset () override |
reset this lights intensity and position with parent class reset | |
Public Member Functions inherited from EntityMoveable | |
EntityMoveable () | |
Creates the Entity at the origin. More... | |
EntityMoveable (float x, float y, float z) | |
Creates the Entity at the given position. More... | |
void | rotate (QVector3D &axis, float angle) |
Rotates the local coordinate system around a given axis. More... | |
void | move (QVector3D &vec) |
Moves the model along a vector. 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 | |
QColor | color |
The lightcolor. | |
float | intensity |
The light's intensity. | |
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. | |
Additional Inherited Members | |
Protected Attributes inherited from EntityMoveable | |
QMatrix4x4 | modelMat |
Stores information about a light.
Light::Light | ( | QColor | color, |
float | intensity, | ||
float | x, | ||
float | y, | ||
float | z | ||
) |
Creates a light with the given properties.
color | The lightcolor. |
intensity | The light's intensity. |
x | The x coordinate of the light in world coordinates. |
y | The y coordinate of the light in world coordinates. |
z | The z coordinate of the light in world coordinates. |
RenderPass::VaoChannel & Light::getVaoOutput | ( | ) |
Returns a VaoChannel containing a geometry representation of the light.
|
virtual |
Scales the object around the local origin.
value | The scaling coefficient. |
Reimplemented from EntityMoveable.