|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
#include <color.h>

Public Member Functions | |
| OColor () | |
| OColor (const OColor &c) | |
| OColor (float *c) | |
| OColor (float red, float green, float blue, float alpha=1.0f) | |
| void | operator= (const OColor &c) |
| operator float * () | |
| operator const float * () const | |
| unsigned int | getAsRGBA () const |
| void | setAsRGBA (const unsigned int val) |
| void | getAsHSB (float &hue, float &saturation, float &brightness) const |
| void | setAsHSB (const float hue, const float saturation, const float brightness) |
| void | clamp () |
| OColor | clampCopy () const |
| bool | operator== (const OColor &other) const |
Public Attributes | |
| float | r |
| float | g |
| float | b |
| float | a |
Static Public Attributes | |
| static const OColor | BLACK = OColor(0.0f, 0.0f, 0.0f) |
| static const OColor | BLUE = OColor(0.0f, 0.0f, 1.0f) |
| static const OColor | GREEN = OColor(0.0f, 1.0f, 0.0f) |
| static const OColor | CYAN = OColor(0.0f, 1.0f, 1.0f) |
| static const OColor | RED = OColor(1.0f, 0.0f, 0.0f) |
| static const OColor | MAGENTA = OColor(1.0f, 0.0f, 1.0f) |
| static const OColor | YELLOW = OColor(1.0f, 1.0f, 0.0f) |
| static const OColor | WHITE = OColor(1.0f, 1.0f, 1.0f) |
Static Protected Member Functions | |
| static bool | float_eq (float a, float b, float epsilon=equality_threshold) |
Static Protected Attributes | |
| static const float | equality_threshold = 1e3f * std::numeric_limits<float>::epsilon() |
|
inline |
| void OColor::clamp | ( | ) |
| OColor OColor::clampCopy | ( | ) | const |
|
inlinestaticprotected |
| void OColor::getAsHSB | ( | float & | hue, |
| float & | saturation, | ||
| float & | brightness | ||
| ) | const |
| unsigned int OColor::getAsRGBA | ( | ) | const |
|
inline |
| bool OColor::operator== | ( | const OColor & | other | ) | const |
| void OColor::setAsHSB | ( | const float | hue, |
| const float | saturation, | ||
| const float | brightness | ||
| ) |
| void OColor::setAsRGBA | ( | const unsigned int | val | ) |
|
staticprotected |