Path Tracer
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ptracey::sampled_spectrum Class Reference
Inheritance diagram for ptracey::sampled_spectrum:
ptracey::colorable

Public Member Functions

 sampled_spectrum (const path &csv_path, const std::string &wave_col_name="wavelength", const std::string &power_col_name="power", const char &sep=',', const unsigned int stride=SPD_STRIDE, SpectrumType stype=SpectrumType::Reflectance)
 
 sampled_spectrum (const spd &s_lambda, SpectrumType stype)
 
 sampled_spectrum (const Real &r, const Real &g, const Real &b, SpectrumType stype=SpectrumType::Reflectance)
 
 sampled_spectrum (const Real &r, SpectrumType stype=SpectrumType::Reflectance)
 
 sampled_spectrum (const rgb_model &_rgb, SpectrumType stype=SpectrumType::Reflectance)
 
 sampled_spectrum (const vec3 &_rgb, SpectrumType stype=SpectrumType::Reflectance)
 
spd _from_rgb (const vec3 &rgb)
 
spd from_rgb (const vec3 &rgb)
 
spd from_rgb (const rgb_model &rgb)
 
void insert (unsigned int wavelength, Real power)
 
vec3 to_xyz () const override
 
vec3 _to_xyz () const
 
Power evaluate (const WaveLength &w) const
 
void add (const color &r_color, const WaveLength &w)
 
void scale (Real coeff)
 
vec3 to_rgb () const override
 
void Init ()
 

Static Public Member Functions

static sampled_spectrum random (SpectrumType stype=SpectrumType::Reflectance)
 
static sampled_spectrum random (Real mn, Real mx, SpectrumType stype=SpectrumType::Reflectance)
 

Public Attributes

spd spect
 
spd sX
 
spd sY
 
spd sZ
 
SpectrumType type
 

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