Logo Search packages:      
Sourcecode: timfx version File versions  Download package

kino::basic_rgb< SampleType, SampleTraits > Class Template Reference

#include <kino_plugin_types.h>

List of all members.

Detailed Description

template<typename SampleType, typename SampleTraits = color_traits<SampleType>>
class kino::basic_rgb< SampleType, SampleTraits >

Encapsulates storage for an RGB color sample.

Definition at line 298 of file kino_plugin_types.h.

Public Types

typedef SampleTraits sample_traits
typedef SampleType sample_type
typedef basic_rgb< sample_type,
sample_traits > 

Public Member Functions

 basic_rgb (const basic_hsv &RHS)
template<typename ForeignType, typename ForeignTraits>
 basic_rgb (const basic_rgba< ForeignType, ForeignTraits > &RHS)
template<typename ForeignType, typename ForeignTraits>
 basic_rgb (const basic_rgb< ForeignType, ForeignTraits > &RHS)
template<typename ForeignType, typename ForeignTraits>
 basic_rgb (const basic_luma< ForeignType, ForeignTraits > &RHS)
 basic_rgb (const sample_type Red, const sample_type Green, const sample_type Blue)
 Constructor that takes red, green, and blue samples.
 basic_rgb ()
 Default constructor sets all samples to zero.

Public Attributes

sample_type blue
sample_type green
sample_type red


std::ostream & operator<< (std::ostream &Stream, const basic_rgb< sample_type, sample_traits > &RHS)
std::istream & operator>> (std::istream &Stream, basic_rgb< sample_type, sample_traits > &RHS)

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index