>simple class to hold the properties of a light source
More...
#include <light_source.h>
|
LightType | type |
| >type of light source
|
|
bool | local_to_eye_coordinates |
| >whether location is relative to eye coordinate system, i.e. model view is identity
|
|
vec3 | position |
| > direction to light source for directional light sources and location of light source for point or spot light sources
|
|
rgb | emission |
| > radiance for directional light sources and intensity for point light sources
|
|
float | ambient_scale |
| > scale to use on emission to retrieve ambient illumination caused by light source
|
|
float | constant_attenuation |
| >constant attenuation coefficients used for positional light sources only
|
|
float | linear_attenuation |
| >linear attenuation coefficients used for positional light sources only
|
|
float | quadratic_attenuation |
| >quadratic attenuation coefficients used for positional light sources only
|
|
vec3 | spot_direction |
| >direction of spot light
|
|
float | spot_exponent |
| >spot exponent
|
|
float | spot_cutoff |
| >spot cutoff in degrees
|
|
>simple class to hold the properties of a light source
Definition at line 16 of file light_source.h.
◆ light_source()
cgv::media::illum::light_source::light_source |
( |
LightType |
_t = LT_DIRECTIONAL | ) |
|
◆ get_ambient_scale()
float cgv::media::illum::light_source::get_ambient_scale |
( |
| ) |
const |
|
inline |
◆ get_constant_attenuation()
float cgv::media::illum::light_source::get_constant_attenuation |
( |
| ) |
const |
|
inline |
◆ get_emission()
const rgb & cgv::media::illum::light_source::get_emission |
( |
| ) |
const |
|
inline |
◆ get_linear_attenuation()
float cgv::media::illum::light_source::get_linear_attenuation |
( |
| ) |
const |
|
inline |
◆ get_position()
const vec3 & cgv::media::illum::light_source::get_position |
( |
| ) |
const |
|
inline |
◆ get_quadratic_attenuation()
float cgv::media::illum::light_source::get_quadratic_attenuation |
( |
| ) |
const |
|
inline |
◆ get_spot_cutoff()
float cgv::media::illum::light_source::get_spot_cutoff |
( |
| ) |
const |
|
inline |
◆ get_spot_direction()
const vec3 & cgv::media::illum::light_source::get_spot_direction |
( |
| ) |
const |
|
inline |
◆ get_spot_exponent()
float cgv::media::illum::light_source::get_spot_exponent |
( |
| ) |
const |
|
inline |
◆ get_type()
LightType cgv::media::illum::light_source::get_type |
( |
| ) |
const |
|
inline |
◆ is_local_to_eye()
bool cgv::media::illum::light_source::is_local_to_eye |
( |
| ) |
const |
|
inline |
◆ ref_ambient_scale()
float & cgv::media::illum::light_source::ref_ambient_scale |
( |
| ) |
|
|
inline |
◆ ref_constant_attenuation()
float & cgv::media::illum::light_source::ref_constant_attenuation |
( |
| ) |
|
|
inline |
◆ ref_emission()
rgb & cgv::media::illum::light_source::ref_emission |
( |
| ) |
|
|
inline |
◆ ref_linear_attenuation()
float & cgv::media::illum::light_source::ref_linear_attenuation |
( |
| ) |
|
|
inline |
◆ ref_local_to_eye()
bool & cgv::media::illum::light_source::ref_local_to_eye |
( |
| ) |
|
|
inline |
◆ ref_position()
vec3 & cgv::media::illum::light_source::ref_position |
( |
| ) |
|
|
inline |
◆ ref_quadratic_attenuation()
float & cgv::media::illum::light_source::ref_quadratic_attenuation |
( |
| ) |
|
|
inline |
◆ ref_spot_cutoff()
float & cgv::media::illum::light_source::ref_spot_cutoff |
( |
| ) |
|
|
inline |
◆ ref_spot_direction()
vec3 & cgv::media::illum::light_source::ref_spot_direction |
( |
| ) |
|
|
inline |
◆ ref_spot_exponent()
float & cgv::media::illum::light_source::ref_spot_exponent |
( |
| ) |
|
|
inline |
◆ ref_type()
LightType & cgv::media::illum::light_source::ref_type |
( |
| ) |
|
|
inline |
◆ set_ambient_scale()
void cgv::media::illum::light_source::set_ambient_scale |
( |
float |
c | ) |
|
|
inline |
◆ set_constant_attenuation()
void cgv::media::illum::light_source::set_constant_attenuation |
( |
float |
c | ) |
|
|
inline |
◆ set_emission()
void cgv::media::illum::light_source::set_emission |
( |
const rgb & |
c | ) |
|
|
inline |
◆ set_linear_attenuation()
void cgv::media::illum::light_source::set_linear_attenuation |
( |
float |
c | ) |
|
|
inline |
◆ set_local_to_eye()
void cgv::media::illum::light_source::set_local_to_eye |
( |
bool |
l | ) |
|
|
inline |
◆ set_position()
void cgv::media::illum::light_source::set_position |
( |
const vec3 & |
loc | ) |
|
|
inline |
◆ set_quadratic_attenuation()
void cgv::media::illum::light_source::set_quadratic_attenuation |
( |
float |
c | ) |
|
|
inline |
◆ set_spot_cutoff()
void cgv::media::illum::light_source::set_spot_cutoff |
( |
float |
c | ) |
|
|
inline |
◆ set_spot_direction()
void cgv::media::illum::light_source::set_spot_direction |
( |
const vec3 & |
d | ) |
|
|
inline |
◆ set_spot_exponent()
void cgv::media::illum::light_source::set_spot_exponent |
( |
float |
e | ) |
|
|
inline |
◆ set_type()
void cgv::media::illum::light_source::set_type |
( |
LightType |
t | ) |
|
|
inline |
name getter and setters for members
Definition at line 47 of file light_source.h.
◆ ambient_scale
float cgv::media::illum::light_source::ambient_scale |
|
protected |
> scale to use on emission to retrieve ambient illumination caused by light source
Definition at line 28 of file light_source.h.
◆ constant_attenuation
float cgv::media::illum::light_source::constant_attenuation |
|
protected |
>constant attenuation coefficients used for positional light sources only
Definition at line 30 of file light_source.h.
◆ emission
rgb cgv::media::illum::light_source::emission |
|
protected |
> radiance for directional light sources and intensity for point light sources
Definition at line 26 of file light_source.h.
◆ linear_attenuation
float cgv::media::illum::light_source::linear_attenuation |
|
protected |
>linear attenuation coefficients used for positional light sources only
Definition at line 32 of file light_source.h.
◆ local_to_eye_coordinates
bool cgv::media::illum::light_source::local_to_eye_coordinates |
|
protected |
>whether location is relative to eye coordinate system, i.e. model view is identity
Definition at line 22 of file light_source.h.
◆ position
vec3 cgv::media::illum::light_source::position |
|
protected |
> direction to light source for directional light sources and location of light source for point or spot light sources
Definition at line 24 of file light_source.h.
◆ quadratic_attenuation
float cgv::media::illum::light_source::quadratic_attenuation |
|
protected |
>quadratic attenuation coefficients used for positional light sources only
Definition at line 34 of file light_source.h.
◆ spot_cutoff
float cgv::media::illum::light_source::spot_cutoff |
|
protected |
◆ spot_direction
vec3 cgv::media::illum::light_source::spot_direction |
|
protected |
◆ spot_exponent
float cgv::media::illum::light_source::spot_exponent |
|
protected |
◆ type
LightType cgv::media::illum::light_source::type |
|
protected |
The documentation for this class was generated from the following files: