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

kino::basic_rgba< 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_rgba< SampleType, SampleTraits >

Encapsulates storage for an RGBA color sample.

Definition at line 423 of file kino_plugin_types.h.


Public Types

typedef SampleTraits sample_traits
typedef SampleType sample_type
typedef basic_rgba
< sample_type, sample_traits > 
this_type

Public Member Functions

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

Public Attributes

sample_type alpha
sample_type blue
sample_type green
sample_type red

Friends

std::ostream & operator<< (std::ostream &Stream, const basic_rgba< sample_type, sample_traits > &RHS)
 Serialization.
std::istream & operator>> (std::istream &Stream, basic_rgba< sample_type, sample_traits > &RHS)
 Deserialization.

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

Generated by  Doxygen 1.6.0   Back to index