DD::Image::DeepSample Class Reference

helper class representing a small float vector, one for each channel in a set More...

List of all members.

Public Member Functions

 DeepSample (const ChannelMap &map)
 initialise based on a ChannelMap. Set all samples to zero.
 DeepSample (const ChannelMap &map, const DeepPixel &pixel, int sample, bool fetchOrdered=false)
void operator= (const DeepSample &other)
 assignment operator. should only ever assign between DeepSamples that share the same Map
float & operator[] (Channel z)
 access the float for a particular channel
const float & operator[] (Channel z) const
 access the float for a particular channel

Detailed Description

helper class representing a small float vector, one for each channel in a set


Constructor & Destructor Documentation

DD::Image::DeepSample::DeepSample ( const ChannelMap map,
const DeepPixel pixel,
int  sample,
bool  fetchOrdered = false 
) [inline]

initialise based on a sample from a DeepPixel. if fetchOrdered is true it will use getOrderedSample, otherwise getUnorderedSample

References DD::Image::DeepPixel::channels(), DD::Image::ChannelMap::contains(), DD::Image::DeepPixel::getOrderedSample(), and DD::Image::DeepPixel::getUnorderedSample().