refinery
RAW file processor
|
A pixel, consisting of one or more color values. More...
#include <refinery/image.h>
Public Types | |
typedef unsigned int | ColorType |
Datatype to access a color with at(). | |
typedef T | ValueType |
Value type of each color (e.g. unsigned short). | |
typedef T | ArrayType [NColors] |
Type returned from array(). | |
Public Member Functions | |
Pixel () | |
Empty constructor. | |
template<typename U > | |
Pixel (const U(&rhs)[N]) | |
Constructor. | |
template<typename U > | |
Pixel (const Pixel< U, N > &rhs) | |
Copy constructor. | |
ArrayType & | array () |
The Pixel as an array. | |
const ArrayType & | constArray () const |
The Pixel as an const array. | |
T & | operator[] (const ColorType &index) |
A mutable reference to a single color value. | |
const T & | at (const ColorType &index) const |
A single color value. | |
Public Attributes | |
ArrayType | colors |
Raw data. | |
Static Public Attributes | |
static const ColorType | NColors = N |
Number of colors. |
A pixel, consisting of one or more color values.
T | Type of each color value. |
N | Number of colors. |
typedef T refinery::Pixel< T, N >::ArrayType[NColors] |
typedef unsigned int refinery::Pixel< T, N >::ColorType |
typedef T refinery::Pixel< T, N >::ValueType |
refinery::Pixel< T, N >::Pixel | ( | const U(&) | rhs[N] | ) | [inline] |
refinery::Pixel< T, N >::Pixel | ( | const Pixel< U, N > & | rhs | ) | [inline] |
ArrayType& refinery::Pixel< T, N >::array | ( | ) | [inline] |
const T& refinery::Pixel< T, N >::at | ( | const ColorType & | index | ) | const [inline] |
const ArrayType& refinery::Pixel< T, N >::constArray | ( | ) | const [inline] |
T& refinery::Pixel< T, N >::operator[] | ( | const ColorType & | index | ) | [inline] |
ArrayType refinery::Pixel< T, N >::colors |
const ColorType refinery::Pixel< T, N >::NColors = N [static] |