C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Color value in the RGBA color model. More...
#include <attr_color.h>
Public Member Functions | |
MbRGBA () | |
Default constructor. | |
MbRGBA (uint8 red, uint8 green, uint8 blue, uint8 alpha=SYS_MAX_UINT8) | |
Constructor by components values. | |
MbRGBA (uint32) | |
Constructor by uint32. | |
MbRGBA (float red, float green, float blue, float alpha=1.0) | |
Constructor by components values. | |
MbRGBA (const MbRGBA &other) | |
Copy constructor. | |
int | GetRed () const |
Get the red component. | |
float | GetRedFloat () const |
Get the red component. | |
void | SetRed (int red) |
Sets the red component. | |
void | SetRed (float red) |
Sets the red component. | |
int | GetGreen () const |
Get the green component. | |
float | GetGreenFloat () const |
Get the green component. | |
void | SetGreen (int green) |
Sets the green component. | |
void | SetGreen (float green) |
Sets the green component. | |
int | GetBlue () const |
Get the blue component. | |
float | GetBlueFloat () const |
Get the blue component. | |
void | SetBlue (int blue) |
Sets the blue component. | |
void | SetBlue (float blue) |
Sets the blue component. | |
int | GetAlpha () const |
Get the alpha component. | |
float | GetAlphaFloat () const |
Get the alpha component. | |
void | SetAlpha (int alpha) |
Sets the alpha component. | |
void | SetAlpha (float alpha) |
Sets the alpha component. | |
uint32 | Get () const |
Get RGBA color as uint32. | |
void | Init (uint32) |
Initialization by uint32. | |
void | Init (uint8 red, uint8 green, uint8 blue, uint8 alpha=SYS_MAX_UINT8) |
Initialization by components values. | |
void | Init (float red, float green, float blue, float alpha=1.0) |
Initialization by components values. | |
uint8 & | operator[] (size_t ind) |
Access to a component by the index. | |
uint8 | operator[] (size_t ind) const |
Access to a component by the index. | |
bool | operator== (const MbRGBA &c) const |
Checking for equality. | |
MbRGBA & | operator= (const MbRGBA &c) |
Assignment operator. | |
Color value in the RGBA color model.
Color value in the RGBA color model.