Blue Brain BioExplorer
core::SpotLight Class Reference

#include <Light.h>

Inheritance diagram for core::SpotLight:
Collaboration diagram for core::SpotLight:

Public Member Functions

 SpotLight (const Vector3d &position, const Vector3d &direction, const double openingAngle, const double penumbraAngle, const double radius, const Vector3d &color, double intensity, bool isVisible)
 SpotLight Creates a spot light. The spotlight is a light emitting into a cone of directions. More...
 
 SpotLight ()=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 _position
 
Vector3d _direction
 
double _openingAngle
 
double _penumbraAngle
 
double _radius
 
- Public Attributes inherited from core::Light
LightType _type
 
Vector3d _color
 
double _intensity
 
bool _isVisible
 

Detailed Description

Definition at line 120 of file Light.h.

Constructor & Destructor Documentation

◆ SpotLight() [1/2]

core::SpotLight::SpotLight ( const Vector3d position,
const Vector3d direction,
const double  openingAngle,
const double  penumbraAngle,
const double  radius,
const Vector3d color,
double  intensity,
bool  isVisible 
)

SpotLight Creates a spot light. The spotlight is a light emitting into a cone of directions.

Parameters
positionThe center of the spotlight, in world-space
directionMain emission direction of the spot
openingAngleFull opening angle (in degree) of the spot; outside of this cone is no illumination
penumbraAngleSize (angle in degree) of the "penumbra", the region between the rim (of the illumination cone) and full intensity of the spot; should be smaller than half of 'openingAngle'
radiusThe size of the spotlight, the radius of a disk with normal 'direction'
colorLight source RGB color
intensityAmount of light emitted
isVisibleWhether the light can be directly seen

Definition at line 60 of file Light.cpp.

◆ SpotLight() [2/2]

core::SpotLight::SpotLight ( )
default

Member Data Documentation

◆ _direction

Vector3d core::SpotLight::_direction

Definition at line 144 of file Light.h.

◆ _openingAngle

double core::SpotLight::_openingAngle

Definition at line 145 of file Light.h.

◆ _penumbraAngle

double core::SpotLight::_penumbraAngle

Definition at line 146 of file Light.h.

◆ _position

Vector3d core::SpotLight::_position

Definition at line 143 of file Light.h.

◆ _radius

double core::SpotLight::_radius

Definition at line 147 of file Light.h.


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