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

vlColorRGB< T > Class Template Reference

Class to store RGB color. More...

#include <vlcolor.h>

Inheritance diagram for vlColorRGB< T >:

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

Public Member Functions

 vlColorRGB (T x=0, T y=0, T z=0)
 Default constructor.

 ~vlColorRGB ()
 Default destructor.

r () const
 Returns the red component of the color - same as x().

T const & rRef () const
 Returns a reference to the red component of the color - same as xRef().

template<class S> void r (const S &value)
 set value of the red component - same as x(value)

g () const
 Returns the green component of the color - same as y().

T const & gRef () const
 Returns a reference to the green component of the color - same as yRef().

template<class S> void g (const S &value)
 set value of the green component - same as y(value)

b () const
 Returns the blue component of the color - same as z().

T const & bRef () const
 Returns a reference to the blue component of the color - same as zRef().

template<class S> void b (const S &value)
 set value of the blue component - same as z(value)

vlColor3< T >::ColorType type ()
 Returns the type of the color.

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

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


Detailed Description

template<class T>
class vlColorRGB< T >

Todo:
add code to allow copy from HSV color to RGB color

Definition at line 102 of file vlcolor.h.


Constructor & Destructor Documentation

template<class T>
vlColorRGB< T >::vlColorRGB x = 0,
y = 0,
z = 0
[inline]
 

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


Member Function Documentation

uint8 vlColorRGB<>::aLUV  )  const [inline]
 

Definition at line 321 of file vlcolor.h.

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

template<class T>
template<class S>
void vlColorRGB< T >::b const S &  value  )  [inline]
 

Definition at line 141 of file vlcolor.h.

References vlTriple< T >::m_z.

template<class T>
T vlColorRGB< T >::b  )  const [inline]
 

Definition at line 134 of file vlcolor.h.

References vlTriple< T >::m_z.

template<class T>
T const& vlColorRGB< T >::bRef  )  const [inline]
 

Definition at line 137 of file vlcolor.h.

References vlTriple< T >::m_z.

template<class T>
template<class S>
void vlColorRGB< T >::g const S &  value  )  [inline]
 

Definition at line 131 of file vlcolor.h.

References vlTriple< T >::m_y.

template<class T>
T vlColorRGB< T >::g  )  const [inline]
 

Definition at line 124 of file vlcolor.h.

References vlTriple< T >::m_y.

template<class T>
T const& vlColorRGB< T >::gRef  )  const [inline]
 

Definition at line 127 of file vlcolor.h.

References vlTriple< T >::m_y.

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

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

template<class T>
template<class S>
void vlColorRGB< T >::r const S &  value  )  [inline]
 

Definition at line 121 of file vlcolor.h.

References vlTriple< T >::m_x.

template<class T>
T vlColorRGB< T >::r  )  const [inline]
 

Definition at line 114 of file vlcolor.h.

References vlTriple< T >::m_x.

template<class T>
T const& vlColorRGB< T >::rRef  )  const [inline]
 

Definition at line 117 of file vlcolor.h.

References vlTriple< T >::m_x.

template<class T>
vlColor3<T>::ColorType vlColorRGB< T >::type  )  [inline]
 

Reimplemented from vlColor3< T >.

Definition at line 144 of file vlcolor.h.

References vlColor3< T >::RGB.


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