Blue Brain BioExplorer
core::QuadLight Class Reference

#include <Light.h>

Inheritance diagram for core::QuadLight:
Collaboration diagram for core::QuadLight:

Public Member Functions

 QuadLight (const Vector3d &position, const Vector3d &edge1, const Vector3d &edge2, const Vector3d &color, double intensity, bool isVisible)
 QuadLight Creates a quad light. The quad light is a planar, procedural area light source emitting uniformly on one side into the half-space. The emission side is determined by the cross product of edge1 x edge2. More...
 
 QuadLight ()=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 _edge1
 
Vector3d _edge2
 
- Public Attributes inherited from core::Light
LightType _type
 
Vector3d _color
 
double _intensity
 
bool _isVisible
 

Detailed Description

Definition at line 96 of file Light.h.

Constructor & Destructor Documentation

◆ QuadLight() [1/2]

core::QuadLight::QuadLight ( const Vector3d position,
const Vector3d edge1,
const Vector3d edge2,
const Vector3d color,
double  intensity,
bool  isVisible 
)

QuadLight Creates a quad light. The quad light is a planar, procedural area light source emitting uniformly on one side into the half-space. The emission side is determined by the cross product of edge1 x edge2.

Parameters
positionWorld-space position of one vertex of the quad light
edge1Vector to one adjacent vertex
edge2Vector to the other adjacent vertex
colorLight source RGB color
intensityAmount of light emitted
isVisibleWhether the light can be directly seen

Definition at line 51 of file Light.cpp.

◆ QuadLight() [2/2]

core::QuadLight::QuadLight ( )
default

Member Data Documentation

◆ _edge1

Vector3d core::QuadLight::_edge1

Definition at line 116 of file Light.h.

◆ _edge2

Vector3d core::QuadLight::_edge2

Definition at line 117 of file Light.h.

◆ _position

Vector3d core::QuadLight::_position

Definition at line 115 of file Light.h.


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