Public Types |
| typedef ValueTypeT | ValueType |
Public Methods |
|
| | Color3 (void) |
| | Constructor.
|
| | Color3 (const Color3 &source) |
| | Copy Constructor.
|
| | Color3 (ValueType red, ValueType green, ValueType blue) |
| | Constructor.
|
|
| | ~Color3 (void) |
| | Destructor.
|
|
| void | clear (void) |
| void | setValuesRGB (ValueType red, ValueType green, ValueType blue) |
| void | setValuesHSV (Real32 h, Real32 s, Real32 v) |
| void | setRandom (void) |
| void | setRGB (UInt32 rgbPack) |
| | method to set the rgb values (AABBGGRR)
|
| void | setValue (const char *szString) |
| void | setValue (char *szString) |
|
| UInt32 | getRGB (void) const |
| | method to get a packed rgb value (AABBGGRR)
|
| void | getValuesRGB (ValueType &red, ValueType &green, ValueType &blue) |
| | method to get a packed rgb value (AABBGGRR)
|
| void | getValuesHSV (Real32 &h, Real32 &s, Real32 &v) |
| | method to get a packed rgb value (AABBGGRR)
|
| ValueType | red (void) const |
| | method to get a packed rgb value (AABBGGRR)
|
| ValueType | green (void) const |
| | method to get a packed rgb value (AABBGGRR)
|
| ValueType | blue (void) const |
| | method to get a packed rgb value (AABBGGRR)
|
| ValueType * | getValuesRGB (void) |
| | method to get a packed rgb value (AABBGGRR)
|
| const ValueType * | getValuesRGB (void) const |
| | method to get a packed rgb value (AABBGGRR)
|
|
| Color3 | operator * (const ValueType val) |
| ValueType & | operator[] (UInt32 uiIndex) |
| const ValueType & | operator[] (UInt32 uiIndex) const |
| Color3 & | operator= (const Color3 &source) |
| | assignment
|
| bool | equals (const Color3 &other, ValueType tolerance) const |
| | equal within tolerance
|
| bool | operator== (const Color3 &other) const |
| | equal
|
| bool | operator!= (const Color3 &other) const |
| | unequal
|
Static Public Methods |
|
| void | convertFromHSV (ValueType *rgbP, Real32 h, Real32 s, Real32 v) |
| void | convertToHSV (const ValueType *rgbP, Real32 &h, Real32 &s, Real32 &v) |
| UInt32 | minPart (const ValueType *rgbP) |
| UInt32 | maxPart (const ValueType *rgbP) |
Static Public Attributes |
| const Color3 | Null |
Protected Attributes |
| ValueType | _rgb [3] |