Color Class Reference

#include <Color.h>

List of all members.

Public Member Functions

 Color (const unsigned char uR=0, const unsigned char uG=0, const unsigned char uB=0, const unsigned char uA=255)
 Color (const int iR, const int iG, const int iB, const int iA=255)
 Color (const float fR, const float fG, const float fB, const float fA=1.0f)
 Color (const unsigned char *pData)
 Color (const float *pData)
 ~Color ()
void Set (const unsigned char uR, const unsigned char uG, const unsigned char uB, const unsigned char uA=255)
const unsigned char * Get () const
void SetRed (const unsigned char uR)
const unsigned char GetRed () const
void SetGreen (const unsigned char uG)
const unsigned char GetGreen () const
void SetBlue (const unsigned char uB)
const unsigned char GetBlue () const
void SetAlpha (const unsigned char uA)
const unsigned char GetAlpha () const
void SetNormalized (const float fR, const float fG, const float fB, const float fA=1.0f)
void SetNormalizedRed (const float fR)
void SetNormalizedGreen (const float fG)
void SetNormalizedBlue (const float fB)
void SetNormalizedAlpha (const float fA)
const float GetNormalizedRed () const
const float GetNormalizedGreen () const
const float GetNormalizedBlue () const
const float GetNormalizedAlpha () const
void SetHSV (const float fHue, const float fSaturation, const float fValue)
const Coloroperator *= (const float fOther)
const Coloroperator/= (const float fOther)
const Coloroperator+= (const Color &colOther)
const Coloroperator-= (const Color &colOther)
const Color operator * (const float fOther) const
const Color operator/ (const float fOther) const
const Color operator+ (const Color &colOther) const
const Color operator- (const Color &colOther) const
const bool operator== (const Color &colOther) const
const bool operator!= (const Color &colOther) const
const bool choose ()

Static Public Member Functions

static const bool chooseColor (Color &colColor)


Detailed Description

Definition at line 6 of file Color.h.


Constructor & Destructor Documentation

Color::Color ( const unsigned char  uR = 0,
const unsigned char  uG = 0,
const unsigned char  uB = 0,
const unsigned char  uA = 255 
) [inline]

Definition at line 10 of file Color.h.

Color::Color ( const int  iR,
const int  iG,
const int  iB,
const int  iA = 255 
) [inline]

Definition at line 18 of file Color.h.

Color::Color ( const float  fR,
const float  fG,
const float  fB,
const float  fA = 1.0f 
) [inline]

Definition at line 26 of file Color.h.

Color::Color ( const unsigned char *  pData  )  [inline]

Definition at line 34 of file Color.h.

Color::Color ( const float *  pData  )  [inline]

Definition at line 42 of file Color.h.

Color::~Color (  )  [inline]

Definition at line 50 of file Color.h.


Member Function Documentation

void Color::Set ( const unsigned char  uR,
const unsigned char  uG,
const unsigned char  uB,
const unsigned char  uA = 255 
) [inline]

Definition at line 54 of file Color.h.

Referenced by operator>>().

const unsigned char* Color::Get (  )  const [inline]

Definition at line 62 of file Color.h.

void Color::SetRed ( const unsigned char  uR  )  [inline]

Definition at line 67 of file Color.h.

Referenced by chooseColor().

const unsigned char Color::GetRed (  )  const [inline]

Definition at line 72 of file Color.h.

Referenced by chooseColor(), and operator<<().

void Color::SetGreen ( const unsigned char  uG  )  [inline]

Definition at line 77 of file Color.h.

Referenced by chooseColor().

const unsigned char Color::GetGreen (  )  const [inline]

Definition at line 82 of file Color.h.

Referenced by chooseColor(), and operator<<().

void Color::SetBlue ( const unsigned char  uB  )  [inline]

Definition at line 87 of file Color.h.

Referenced by chooseColor().

const unsigned char Color::GetBlue (  )  const [inline]

Definition at line 92 of file Color.h.

Referenced by chooseColor(), and operator<<().

void Color::SetAlpha ( const unsigned char  uA  )  [inline]

Definition at line 97 of file Color.h.

const unsigned char Color::GetAlpha (  )  const [inline]

Definition at line 102 of file Color.h.

Referenced by operator<<().

void Color::SetNormalized ( const float  fR,
const float  fG,
const float  fB,
const float  fA = 1.0f 
) [inline]

Definition at line 107 of file Color.h.

Referenced by SetHSV().

void Color::SetNormalizedRed ( const float  fR  )  [inline]

Definition at line 115 of file Color.h.

void Color::SetNormalizedGreen ( const float  fG  )  [inline]

Definition at line 120 of file Color.h.

void Color::SetNormalizedBlue ( const float  fB  )  [inline]

Definition at line 125 of file Color.h.

void Color::SetNormalizedAlpha ( const float  fA  )  [inline]

Definition at line 130 of file Color.h.

const float Color::GetNormalizedRed (  )  const [inline]

Definition at line 135 of file Color.h.

const float Color::GetNormalizedGreen (  )  const [inline]

Definition at line 140 of file Color.h.

const float Color::GetNormalizedBlue (  )  const [inline]

Definition at line 145 of file Color.h.

const float Color::GetNormalizedAlpha (  )  const [inline]

Definition at line 150 of file Color.h.

Referenced by SetHSV().

void Color::SetHSV ( const float  fHue,
const float  fSaturation,
const float  fValue 
) [inline]

Definition at line 155 of file Color.h.

References GetNormalizedAlpha(), and SetNormalized().

Here is the call graph for this function:

const Color& Color::operator *= ( const float  fOther  )  [inline]

Definition at line 203 of file Color.h.

const Color& Color::operator/= ( const float  fOther  )  [inline]

Definition at line 212 of file Color.h.

const Color& Color::operator+= ( const Color colOther  )  [inline]

Definition at line 221 of file Color.h.

References m_uData.

const Color& Color::operator-= ( const Color colOther  )  [inline]

Definition at line 230 of file Color.h.

References m_uData.

const Color Color::operator * ( const float  fOther  )  const [inline]

Definition at line 239 of file Color.h.

const Color Color::operator/ ( const float  fOther  )  const [inline]

Definition at line 246 of file Color.h.

const Color Color::operator+ ( const Color colOther  )  const [inline]

Definition at line 253 of file Color.h.

const Color Color::operator- ( const Color colOther  )  const [inline]

Definition at line 260 of file Color.h.

const bool Color::operator== ( const Color colOther  )  const [inline]

Definition at line 267 of file Color.h.

References m_uData.

const bool Color::operator!= ( const Color colOther  )  const [inline]

Definition at line 272 of file Color.h.

const bool Color::choose (  )  [inline]

Definition at line 277 of file Color.h.

References chooseColor().

Here is the call graph for this function:

static const bool Color::chooseColor ( Color colColor  )  [inline, static]

Definition at line 282 of file Color.h.

References GetBlue(), GetGreen(), GetRed(), SetBlue(), SetGreen(), and SetRed().

Referenced by choose().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Mon Dec 10 18:18:20 2007 for VisLU by  doxygen 1.5.4