BASE::RCColor Struct Reference

Class holding a Color consisting of red,green, blue and alpha. More...

Inherits BASE::RCStringValueInterface.

Inheritance diagram for BASE::RCColor:

Inheritance graph
[legend]
Collaboration diagram for BASE::RCColor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RCColor (TFloat nRed, TFloat nGreen, TFloat nBlue, TFloat nAlpha=1.0f)
 RCColor (TLong nSource)
 RCColor (const TFloat *naSource)
 RCColor (const RCColor &Source)
 operator TLong () const
const TFloatData () const
TFloatoperator[] (TInt nIndex)
const TFloatoperator[] (TInt nIndex) const
const RCColoroperator= (const RCColor &Source)
RCColor operator * (TReal rhs) const
virtual TBool FromString (const RCString &sValue)
virtual const RCStringToString () const
TByte GetByte (TInt nIndex) const
void SetByte (TInt nIndex, TByte nValue)
TBool IsValid () const

Static Public Member Functions

static RCColor Random ()

Static Public Attributes

static const RCColor INVALID
static const RCColor WHITE
static const RCColor RED
static const RCColor YELLOW
static const RCColor GREEN
static const RCColor TEAL
static const RCColor BLUE
static const RCColor MAGENTA
static const RCColor DARKGRAY
static const RCColor GRAY
static const RCColor LIGHTGRAY
static const RCColor BLACK
static const RCString INVALID_STRING = _T("Invalid")

Protected Attributes

TFloat m_naData [4]

Detailed Description

Class holding a Color consisting of red,green, blue and alpha.

Author:
Patrik Stellmann
This class holds the information specifying a color consisting of 4 elements: red, green, blue and alpha. Each element is represented by a TFloat in the range of 0 to 1.


The documentation for this struct was generated from the following files:
Generated on Thu Feb 16 12:46:21 2006 for Simulator Bob by  doxygen 1.4.6-NO