|
CVD 0.8
|
A colour consisting of red, green, blue and alpha components. More...
#include <rgba.h>
Public Member Functions | |
| Rgba () | |
| Rgba (T r, T g, T b, T a) | |
| template<class S > | |
| Rgba (const Rgba< S > &rgba) | |
| template<typename T2 > | |
| Rgba< T > & | operator= (const Rgba< T2 > &c) |
| bool | operator== (const Rgba< T > &c) const |
| bool | operator!= (const Rgba< T > &c) const |
Public Attributes | |
| T | red |
| T | green |
| T | blue |
| T | alpha |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename T > | |
| std::ostream & | operator<< (std::ostream &os, const Rgba< T > &x) |
| std::ostream & | operator<< (std::ostream &os, const Rgba< unsigned char > &x) |
A colour consisting of red, green, blue and alpha components.
| T | The datatype of each component |
| Rgba<T>& CVD::Rgba< T >::operator= | ( | const Rgba< T2 > & | c | ) | [inline] |
Assignment operator between two different storage types, using the standard casts as necessary.
| c | The colour to copy from |
Definition at line 60 of file rgba.h.
References CVD::Rgba< T >::alpha, CVD::Rgba< T >::blue, CVD::Rgba< T >::green, and CVD::Rgba< T >::red.
Logical equals operator.
Returns true if each component is the same.
| c | Rgba to compare with |
Definition at line 70 of file rgba.h.
References CVD::Rgba< T >::alpha, CVD::Rgba< T >::blue, CVD::Rgba< T >::green, and CVD::Rgba< T >::red.
Logical not-equals operator.
Returns true unless each component is the same.
| c | Rgba to compare with |
Definition at line 75 of file rgba.h.
References CVD::Rgba< T >::alpha, CVD::Rgba< T >::blue, CVD::Rgba< T >::green, and CVD::Rgba< T >::red.
| std::ostream & operator<< | ( | std::ostream & | os, |
| const Rgba< T > & | x | ||
| ) | [related] |
| std::ostream & operator<< | ( | std::ostream & | os, |
| const Rgba< unsigned char > & | x | ||
| ) | [related] |
1.7.4