SpectralSampleSet.cpp

Go to the documentation of this file.
00001 /**<!-------------------------------------------------------------------->
00002    @file   SpectralSampleSet.cpp
00003    @author Travis Fischer (fisch0920@gmail.com)
00004    @author Matthew Jacobs (jacobs.mh@gmail.com)
00005    @date   Fall 2008
00006    
00007    @brief
00008       Templated set of spectral values (wavelength-dependeht), sampled at N 
00009    distinct wavelengths. Specific SpectralSampleSet instances include 
00010    SpectralRadianceSet, in which each sample represents the radiance at a single
00011    wavelength with units Watts / (m^2 sr), and SpectralScalarSet, where each 
00012    wavelength-dependent sample represents a unitless scalar that can be used 
00013    to attenuate SpectralRadianceSet.
00014    
00015    @note
00016       Throughout Milton, currently only RGB spectra are used, but this 
00017    abstraction is in place and used ubiquitously s.t. we can eventually come 
00018    back and implement spectrally-aware rendering with the majority of the 
00019    changes taking place in this one class.
00020   <!-------------------------------------------------------------------->**/
00021 
00022 #include "SpectralSampleSet.h"
00023 
00024 unsigned SpectralSampleSet::s_defaultWavelengths[3] = {
00025    680, // red
00026    555, // green
00027    480  // blue
00028 };
00029 
00030 SpectralSampleSet::~SpectralSampleSet() {
00031    safeDeleteArray(m_data);
00032 }
00033 

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6