refinery
RAW file processor
Public Member Functions

refinery::GrayPixel< T > Struct Template Reference

A 1-color pixel. More...

#include <refinery/image.h>

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

List of all members.

Public Member Functions

 GrayPixel ()
 Empty constructor.
template<typename U >
 GrayPixel (const U(&rhs)[1])
 Constructor.
 GrayPixel (const T &value)
 Constructor.
template<typename U >
 GrayPixel (const GrayPixel< U > &rhs)
 Copy constructor.
T & value ()
 A mutable reference to the pixel value.
const T & value () const
 The pixel value.
template<typename U >
GrayPixeloperator* (const U &rhs)
 Build a scaled pixel based on this one.

Detailed Description

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

A 1-color pixel.

Template Parameters:
TType of each pixel value.

Definition at line 276 of file image.h.


Constructor & Destructor Documentation

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

Constructor.

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

Definition at line 287 of file image.h.

template<typename T >
refinery::GrayPixel< T >::GrayPixel ( const T &  value) [inline]

Constructor.

Parameters:
[in]valueValue to copy into this type.

Definition at line 293 of file image.h.

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

Copy constructor.

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

Definition at line 300 of file image.h.


Member Function Documentation

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

Build a scaled pixel based on this one.

Parameters:
[in]rhsWhat factor to scale this pixel by.
Template Parameters:
UType of scaling factor.
Returns:
A GrayPixel result of the multiplication.

Definition at line 318 of file image.h.


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