CVD::color< T, 3 > Struct Template Reference
[Computer graphics]

#include <draw.h>

List of all members.

Public Types

typedef Pixel::Component< T >::type TComp

Public Member Functions

const T & shade (const T &c, double b)

Static Public Member Functions

static const T & black ()
static const T & blue ()
static const T & cyan ()
static const T & green ()
static const T & magenta ()
static T make (const TComp &a, const TComp &b, const TComp &c)
static const T & red ()
static const T & white ()
static const T & yellow ()

Static Public Attributes

static const TComp hi = Pixel::traits<TComp>::max_intensity

Detailed Description

template<class T>
struct CVD::color< T, 3 >

traits type defining colors for pixel types. For pixel types with three component the basic colors generated by combining minimum and maximum intensities for each component are defined. The components are interpreted as R, G, B.

Definition at line 93 of file draw.h.


Member Typedef Documentation

template<class T >
typedef Pixel::Component<T>::type CVD::color< T, 3 >::TComp

Definition at line 94 of file draw.h.


Member Function Documentation

template<class T >
static const T& CVD::color< T, 3 >::black (  )  [inline, static]

Definition at line 103 of file draw.h.

template<class T >
static const T& CVD::color< T, 3 >::blue (  )  [inline, static]

Definition at line 107 of file draw.h.

template<class T >
static const T& CVD::color< T, 3 >::cyan (  )  [inline, static]

Definition at line 108 of file draw.h.

template<class T >
static const T& CVD::color< T, 3 >::green (  )  [inline, static]

Definition at line 106 of file draw.h.

template<class T >
static const T& CVD::color< T, 3 >::magenta (  )  [inline, static]

Definition at line 109 of file draw.h.

template<class T >
static T CVD::color< T, 3 >::make ( const TComp a,
const TComp b,
const TComp c 
) [inline, static]

Definition at line 96 of file draw.h.

template<class T >
static const T& CVD::color< T, 3 >::red (  )  [inline, static]

Definition at line 105 of file draw.h.

template<class T >
const T& CVD::color< T, 3 >::shade ( const T &  c,
double  b 
) [inline]

Definition at line 111 of file draw.h.

template<class T >
static const T& CVD::color< T, 3 >::white (  )  [inline, static]

Definition at line 104 of file draw.h.

template<class T >
static const T& CVD::color< T, 3 >::yellow (  )  [inline, static]

Definition at line 110 of file draw.h.


Member Data Documentation

template<class T >
const color< T, 3 >::TComp CVD::color< T, 3 >::hi = Pixel::traits<TComp>::max_intensity [inline, static]

Definition at line 95 of file draw.h.


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


libcvd
Author(s): Edward Rosten, Paul Smith, Tom Drummond, Gerhard Reitmayr, Ethan Eade, Timothy Gan, Chris Kemp, Georg Klein
autogenerated on Fri Jan 11 09:13:50 2013