SPH
Classes | Functions
Spectrum.cpp File Reference
#include "gui/renderers/Spectrum.h"
#include "objects/wrappers/Lut.h"
#include "physics/Constants.h"

Go to the source code of this file.

Classes

class  Xyz
 

Functions

Rgba xyzToRgb (const Xyz &c)
 
float getMaxEmissionWavelength (const float temperature)
 Returns wavelength of maximum emission for given temperature, according to Wien's law. More...
 
float spectralRadiance (const float wavelength, const float temperature)
 Planck law. More...
 
Xyz getBlackBodyColor (const float temperature)
 
Palette getBlackBodyPalette (const Interval range)
 Returns palette with colors for black body emission for given temperature. More...
 
Palette getEmissionPalette (const Interval range)
 

Function Documentation

◆ getBlackBodyColor()

Xyz getBlackBodyColor ( const float  temperature)
inline

Definition at line 184 of file Spectrum.cpp.

◆ getBlackBodyPalette()

Palette getBlackBodyPalette ( const Interval  range)

Returns palette with colors for black body emission for given temperature.

The temperature is specified in Kelvins.

Parameters
rangeRange of input temperatures.

Definition at line 198 of file Spectrum.cpp.

◆ getEmissionPalette()

Palette getEmissionPalette ( const Interval  range)

Definition at line 212 of file Spectrum.cpp.

◆ getMaxEmissionWavelength()

float getMaxEmissionWavelength ( const float  temperature)
inline

Returns wavelength of maximum emission for given temperature, according to Wien's law.

Todo:
maybe move to Constants.h

Definition at line 163 of file Spectrum.cpp.

◆ spectralRadiance()

float spectralRadiance ( const float  wavelength,
const float  temperature 
)
inline

Planck law.

Parameters
wavelengthWavelength in nanometers
temperatureTemperature in Kelvins

Definition at line 172 of file Spectrum.cpp.

◆ xyzToRgb()

Rgba xyzToRgb ( const Xyz c)
inline

Definition at line 70 of file Spectrum.cpp.