#include <rgb.h>
Often used to store 24-bit colour information, i.e. CVD::Rgb<CVD::byte>
| T | The datatype of each component |
Definition at line 46 of file rgb.h.
Public Member Functions | |
| Rgb () | |
| Rgb (T r, T g, T b) | |
| template<class S> | |
| Rgb (const Rgb< S > &rgb) | |
| Rgb< T > & | operator= (const Rgb< T > &c) |
| bool | operator== (const Rgb< T > &c) const |
| bool | operator!= (const Rgb< T > &c) const |
| template<class T2> | |
| Rgb< T > & | operator= (const Rgb< T2 > &c) |
Public Attributes | |
| T | red |
| T | green |
| T | blue |
Related Functions | |
| (Note that these are not member functions.) | |
| template<class T> | |
| std::ostream & | operator<< (std::ostream &os, const Rgb< T > &x) |
| std::ostream & | operator<< (std::ostream &os, const Rgb< char > &x) |
| std::ostream & | operator<< (std::ostream &os, const Rgb< byte > &x) |
| std::ostream & operator<< | ( | std::ostream & | os, | |
| const Rgb< T > & | x | |||
| ) | [related] |
| std::ostream & operator<< | ( | std::ostream & | os, | |
| const Rgb< char > & | x | |||
| ) | [related] |
The red component.
Definition at line 58 of file rgb.h.
Referenced by CVD::glColor(), CVD::Rgb< unsigned char >::operator!=(), CVD::Rgb< unsigned char >::operator=(), and CVD::Rgb< unsigned char >::operator==().
The green component.
Definition at line 59 of file rgb.h.
Referenced by CVD::glColor(), CVD::Rgb< unsigned char >::operator!=(), CVD::Rgb< unsigned char >::operator=(), and CVD::Rgb< unsigned char >::operator==().
The blue component.
Definition at line 60 of file rgb.h.
Referenced by CVD::glColor(), CVD::Rgb< unsigned char >::operator!=(), CVD::Rgb< unsigned char >::operator=(), and CVD::Rgb< unsigned char >::operator==().
1.5.3