MercuryColor Class Reference

Definition for a color in mercury. More...

#include <MercuryColor.h>

List of all members.

Public Member Functions

 MercuryColor ()
 MercuryColor (float ir, float ig, float ib, float ia=1)
 MercuryColor (const MercuryColor &c)
 operator float * ()
 operator const float * () const
void GetValues (float RGBA[4]) const
void SetR (float r)
void SetG (float g)
void SetB (float b)
void SetA (float a)
float GetR () const
float GetG () const
float GetB () const
float GetA () const
void FromString (const MString &str)
const MercuryColor operator- (const MercuryColor &c)
const MercuryColoroperator-= (const MercuryColor &c)
const MercuryColor operator+ (const MercuryColor &c)
const MercuryColoroperator+= (const MercuryColor &c)
const MercuryColor operator * (const float f)
const MercuryColor operator * (const MercuryColor &c)
const MercuryColoroperator *= (const MercuryColor &c)
const MercuryColoroperator= (const MercuryColor &c)

Private Attributes

float m_rgba [4]


Detailed Description

Definition for a color in mercury.

Definition at line 7 of file MercuryColor.h.


Constructor & Destructor Documentation

MercuryColor::MercuryColor (  ) 

Definition at line 13 of file MercuryColor.cpp.

MercuryColor::MercuryColor ( float  ir,
float  ig,
float  ib,
float  ia = 1 
)

Definition at line 5 of file MercuryColor.cpp.

MercuryColor::MercuryColor ( const MercuryColor c  )  [inline]

Definition at line 13 of file MercuryColor.h.


Member Function Documentation

MercuryColor::operator float * (  )  [inline]

Definition at line 15 of file MercuryColor.h.

MercuryColor::operator const float * (  )  const [inline]

Definition at line 16 of file MercuryColor.h.

void MercuryColor::GetValues ( float  RGBA[4]  )  const [inline]

Definition at line 18 of file MercuryColor.h.

void MercuryColor::SetR ( float  r  )  [inline]

Definition at line 19 of file MercuryColor.h.

void MercuryColor::SetG ( float  g  )  [inline]

Definition at line 20 of file MercuryColor.h.

void MercuryColor::SetB ( float  b  )  [inline]

Definition at line 21 of file MercuryColor.h.

void MercuryColor::SetA ( float  a  )  [inline]

Definition at line 22 of file MercuryColor.h.

float MercuryColor::GetR (  )  const [inline]

Definition at line 23 of file MercuryColor.h.

float MercuryColor::GetG (  )  const [inline]

Definition at line 24 of file MercuryColor.h.

float MercuryColor::GetB (  )  const [inline]

Definition at line 25 of file MercuryColor.h.

float MercuryColor::GetA (  )  const [inline]

Definition at line 26 of file MercuryColor.h.

void MercuryColor::FromString ( const MString str  ) 

Definition at line 21 of file MercuryColor.cpp.

const MercuryColor MercuryColor::operator- ( const MercuryColor c  ) 

Definition at line 27 of file MercuryColor.cpp.

const MercuryColor & MercuryColor::operator-= ( const MercuryColor c  ) 

Definition at line 34 of file MercuryColor.cpp.

const MercuryColor MercuryColor::operator+ ( const MercuryColor c  ) 

Definition at line 40 of file MercuryColor.cpp.

const MercuryColor & MercuryColor::operator+= ( const MercuryColor c  ) 

Definition at line 47 of file MercuryColor.cpp.

const MercuryColor MercuryColor::operator * ( const float  f  ) 

Definition at line 67 of file MercuryColor.cpp.

const MercuryColor MercuryColor::operator * ( const MercuryColor c  ) 

Definition at line 53 of file MercuryColor.cpp.

const MercuryColor & MercuryColor::operator *= ( const MercuryColor c  ) 

Definition at line 60 of file MercuryColor.cpp.

const MercuryColor& MercuryColor::operator= ( const MercuryColor c  )  [inline]

Definition at line 37 of file MercuryColor.h.


Member Data Documentation

float MercuryColor::m_rgba[4] [private]

Definition at line 9 of file MercuryColor.h.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo