refinery
RAW file processor
Public Member Functions

refinery::RGBPixel< T > Struct Template Reference

A 3-color pixel with R, G and B values. More...

#include <refinery/image.h>

Inheritance diagram for refinery::RGBPixel< T >:
Inheritance graph
[legend]
Collaboration diagram for refinery::RGBPixel< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RGBPixel ()
 Empty constructor.
template<typename U >
 RGBPixel (const U(&rhs)[3])
 Constructor.
template<typename U >
 RGBPixel (const RGBPixel< U > &rhs)
 Copy constructor.
const T & r () const
 The red value.
const T & g () const
 The green value.
const T & b () const
 The blue value.
T & r ()
 A mutable reference to the red value.
T & g ()
 A mutable reference to the green value.
T & b ()
 A mutable reference to the blue value.

Detailed Description

template<typename T>
struct refinery::RGBPixel< T >

A 3-color pixel with R, G and B values.

This is simply a Pixel with some convenience accessors.

Template Parameters:
TType of each color value.

Definition at line 170 of file image.h.


Constructor & Destructor Documentation

template<typename T>
template<typename U >
refinery::RGBPixel< T >::RGBPixel ( const U(&)  rhs[3]) [inline]

Constructor.

Parameters:
[in]rhs3-element array to copy into this type.
Template Parameters:
UType of the input array (usually inferred).

Definition at line 182 of file image.h.

template<typename T>
template<typename U >
refinery::RGBPixel< T >::RGBPixel ( const RGBPixel< U > &  rhs) [inline]

Copy constructor.

Parameters:
[in]rhsAnother 3-color Pixel.
Template Parameters:
UValueType from the input Pixel (usually inferred).

Definition at line 189 of file image.h.


The documentation for this struct was generated from the following file:
 All Classes Functions Variables Typedefs Enumerations Enumerator