Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

vlColorRGBA< T > Class Template Reference

Class to store RGBA color. More...

#include <vlcolor.h>

Inheritance diagram for vlColorRGBA< T >:

vlColorRGB< T > vlColor3< T > vlTriple< T > List of all members.

Public Member Functions

 vlColorRGBA (T x=0, T y=0, T z=0, T a=1)
 Default constructor.

 ~vlColorRGBA ()
 Default destructor.

a () const
T const & aRef () const
 Returns a reference to the alpha value of the color.

template<class S> void a (const S &value)
 set value of alpha

template<class S> void setAlphaLUV ()
 set value of alpha using LUV

bool operator>= (vlColorRGBA< T > const &other) const
 checks if all of the componants of this Color4 are greater than other

bool operator<= (vlColorRGBA< T > const &other) const
 checks if all of the componants of this Color4 are less than other


Protected Attributes

m_alpha
 The alpha value of the color.


Detailed Description

template<class T>
class vlColorRGBA< T >

This class inherits from vlColorRGB

Todo:
add code to allow copy from HSVA color to RGBA color

Definition at line 244 of file vlcolor.h.


Constructor & Destructor Documentation

template<class T>
vlColorRGBA< T >::vlColorRGBA x = 0,
y = 0,
z = 0,
a = 1
[inline]
 

template<class T>
vlColorRGBA< T >::~vlColorRGBA  )  [inline]
 


Member Function Documentation

template<class T>
template<class S>
void vlColorRGBA< T >::a const S &  value  )  [inline]
 

Definition at line 262 of file vlcolor.h.

References vlColorRGBA< T >::m_alpha.

template<class T>
T vlColorRGBA< T >::a  )  const [inline]
 

Definition at line 255 of file vlcolor.h.

References vlColorRGBA< T >::m_alpha.

template<class T>
T const& vlColorRGBA< T >::aRef  )  const [inline]
 

Definition at line 258 of file vlcolor.h.

References vlColorRGBA< T >::m_alpha.

template<class T>
bool vlColorRGBA< T >::operator<= vlColorRGBA< T > const &  other  )  const
 

template<class T>
bool vlColorRGBA< T >::operator>= vlColorRGBA< T > const &  other  )  const
 

template<class T>
template<class S>
void vlColorRGBA< T >::setAlphaLUV  )  [inline]
 

Definition at line 266 of file vlcolor.h.

References vlColorRGBA< T >::m_alpha, vlTriple< T >::m_x, vlTriple< T >::m_y, and vlTriple< T >::m_z.


Member Data Documentation

template<class T>
T vlColorRGBA< T >::m_alpha [protected]
 

Definition at line 276 of file vlcolor.h.

Referenced by vlColorRGBA< T >::a(), vlColorRGBA< T >::aRef(), and vlColorRGBA< T >::setAlphaLUV().


The documentation for this class was generated from the following file:
Generated on Fri Mar 18 11:33:18 2005 for OpenVL by doxygen 1.3.3