SpectralSampleSet.inl File Reference
Templated set of spectral values (wavelength-dependeht), sampled at N distinct wavelengths. Specific SpectralSampleSet instances include SpectralRadianceSet, in which each sample represents the radiance at a single wavelength with units Watts / (m^2 sr), and SpectralScalarSet, where each wavelength-dependent sample represents a unitless scalar that can be used to attenuate SpectralRadianceSet. More...
#include <iostream>
Go to the source code of this file.
Functions | |
| SpectralSampleSet | operator* (const real_t &scale, const SpectralSampleSet &rhs) |
| std::ostream & | operator<< (std::ostream &os, const SpectralSampleSet &v) |
| Prints a SpectralSampleSet to an output stream. | |
Detailed Description
Templated set of spectral values (wavelength-dependeht), sampled at N distinct wavelengths. Specific SpectralSampleSet instances include SpectralRadianceSet, in which each sample represents the radiance at a single wavelength with units Watts / (m^2 sr), and SpectralScalarSet, where each wavelength-dependent sample represents a unitless scalar that can be used to attenuate SpectralRadianceSet.
- Date:
- Fall 2008
- Note:
- Throughout Milton, currently only RGB spectra are used, but this abstraction is in place and used ubiquitously s.t. we can eventually come back and implement spectrally-aware rendering with the majority of the changes taking place in this one class.
Definition in file SpectralSampleSet.inl.
Function Documentation
| SpectralSampleSet operator* | ( | const real_t & | scale, | |
| const SpectralSampleSet & | v | |||
| ) | [inline] |
- Returns:
- the
v, with each spectral sample scaled byscale
Definition at line 357 of file SpectralSampleSet.inl.
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const SpectralSampleSet & | v | |||
| ) | [inline] |
Prints a SpectralSampleSet to an output stream.
Definition at line 364 of file SpectralSampleSet.inl.
Generated on 28 Feb 2009 for Milton by
1.5.6