Point Cloud Viewer  1.00
A Viewer to display point clouds with phong shading by converting them to splats.
Light Class Reference

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::VaoChannelgetVaoOutput ()
 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
 

Detailed Description

Stores information about a light.

Constructor & Destructor Documentation

Light::Light ( QColor  color,
float  intensity,
float  x,
float  y,
float  z 
)

Creates a light with the given properties.

Parameters
colorThe lightcolor.
intensityThe light's intensity.
xThe x coordinate of the light in world coordinates.
yThe y coordinate of the light in world coordinates.
zThe z coordinate of the light in world coordinates.

Member Function Documentation

RenderPass::VaoChannel & Light::getVaoOutput ( )

Returns a VaoChannel containing a geometry representation of the light.

Returns
The VaoChannel.
void Light::scale ( float  value)
virtual

Scales the object around the local origin.

Parameters
valueThe scaling coefficient.

Reimplemented from EntityMoveable.


The documentation for this class was generated from the following files: