Public Types | |
typedef NUKLEI_UNIQUE_PTR< RGBColor > | ptr |
Public Types inherited from nuklei::Color | |
enum | Type { RGB = 0, HSV, HSVCONE, UNKNOWN } |
typedef NUKLEI_UNIQUE_PTR< Color > | ptr |
Public Member Functions | |
RGBColor (appear_t r, appear_t g, appear_t b) | |
RGBColor (const Vector3 &rgb) | |
RGBColor (const Color &c) | |
NUKLEI_UNIQUE_PTR< Color > | clone () const |
NUKLEI_UNIQUE_PTR< Color > | create () const |
void | assertConsistency () const |
appear_t & | R () |
appear_t | R () const |
appear_t & | G () |
appear_t | G () const |
appear_t & | B () |
appear_t | B () const |
Vector3 | getRGB () const |
void | setRGB (const Vector3 &c) |
appear_t & | at (unsigned i) |
appear_t | at (unsigned i) const |
appear_t | distanceTo (const Color &c) const |
appear_t | distanceTo (const RGBColor &rgb) const |
appear_t | getMaxDist () const |
void | makeRandom () |
GVector | getVector () const |
void | setVector (const GVector &v) |
Static Public Attributes | |
static const appear_t | MAX_DIST = 1.73205180756888 |
Static Public Attributes inherited from nuklei::Color | |
static const Type | defaultType = RGB |
static const std::string | TypeNames [] = { "rgb", "hsv", "hsvcone", "unknown" } |
Friends | |
class | NUKLEI_SERIALIZATION_FRIEND_CLASSNAME |