Blue Brain BioExplorer
core::DirectionalLight Class Reference

#include <Light.h>

Inheritance diagram for core::DirectionalLight:
Collaboration diagram for core::DirectionalLight:

Public Member Functions

 DirectionalLight (const Vector3d &direction, double angularDiameter, const Vector3d &color, double intensity, bool isVisible)
 DirectionalLight Creates a light that shines from a specific direction not from a specific position. This light will behave as though it is infinitely far away and the rays produced from it are all parallel. More...
 
 DirectionalLight ()=default
 
- Public Member Functions inherited from core::Light
 Light (LightType type, const Vector3d &color, double intensity, bool isVisible)
 
 Light ()=default
 
virtual ~Light ()=default
 

Public Attributes

Vector3d _direction
 
double _angularDiameter
 
- Public Attributes inherited from core::Light
LightType _type
 
Vector3d _color
 
double _intensity
 
bool _isVisible
 

Detailed Description

Definition at line 55 of file Light.h.

Constructor & Destructor Documentation

◆ DirectionalLight() [1/2]

core::DirectionalLight::DirectionalLight ( const Vector3d direction,
double  angularDiameter,
const Vector3d color,
double  intensity,
bool  isVisible 
)

DirectionalLight Creates a light that shines from a specific direction not from a specific position. This light will behave as though it is infinitely far away and the rays produced from it are all parallel.

Parameters
directionLight source direction
angularDiameterApparent size (angle in degree) of the light
colorLight source RGB color
intensityAmount of light emitted
isVisibleWhether the light can be directly seen

Definition at line 35 of file Light.cpp.

◆ DirectionalLight() [2/2]

core::DirectionalLight::DirectionalLight ( )
default

Member Data Documentation

◆ _angularDiameter

double core::DirectionalLight::_angularDiameter

Definition at line 73 of file Light.h.

◆ _direction

Vector3d core::DirectionalLight::_direction

Definition at line 72 of file Light.h.


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