0.44.0
|
#include <iaColor4.h>
Public Member Functions | |
iaColor4 () | |
iaColor4 (T r, T g, T b, T a) | |
void | set (T r, T g, T b, T a) |
T * | getData () |
iaColor4< T > | operator= (const iaColor4< T > &color) |
void | operator+= (const iaColor4< T > &color) |
void | operator-= (const iaColor4< T > &color) |
void | operator*= (float32 factor) |
void | operator* (float32 factor) |
iaColor4 () | |
iaColor4 () | |
const iaColor4< float32 > | white (1.0, 1.0, 1.0, 1.0) |
const iaColor4< uint8 > | white (0xff, 0xff, 0xff, 0xff) |
const iaColor4< float32 > | lightGray (0.75, 0.75, 0.75, 1.0) |
const iaColor4< uint8 > | lightGray (0xbf, 0xbf, 0xbf, 0xff) |
const iaColor4< float32 > | gray (0.5, 0.5, 0.5, 1.0) |
const iaColor4< uint8 > | gray (0x80, 0x80, 0x80, 0xff) |
const iaColor4< float32 > | darkGray (0.25, 0.25, 0.25, 1.0) |
const iaColor4< uint8 > | darkGray (0x40, 0x40, 0x40, 0xff) |
const iaColor4< float32 > | black (0.0, 0.0, 0.0, 1.0) |
const iaColor4< uint8 > | black (0x00, 0x00, 0x00, 0xff) |
const iaColor4< float32 > | red (1.0, 0.0, 0.0, 1.0) |
const iaColor4< uint8 > | red (0xff, 0x00, 0x00, 0xff) |
const iaColor4< float32 > | green (0.0, 1.0, 0.0, 1.0) |
const iaColor4< uint8 > | green (0x00, 0xff, 0x00, 0xff) |
const iaColor4< float32 > | blue (0.0, 0.0, 1.0, 1.0) |
const iaColor4< uint8 > | blue (0x00, 0x00, 0xff, 0xff) |
const iaColor4< float32 > | yellow (1.0, 1.0, 0.0, 1.0) |
const iaColor4< uint8 > | yellow (0xff, 0xff, 0x00, 0xff) |
const iaColor4< float32 > | magenta (1.0, 0.0, 1.0, 1.0) |
const iaColor4< uint8 > | magenta (0xff, 0x00, 0xff, 0xff) |
const iaColor4< float32 > | cyan (0.0, 1.0, 1.0, 1.0) |
const iaColor4< uint8 > | cyan (0x00, 0xff, 0xff, 0xff) |
const iaColor4< float32 > | transparent (0.0, 0.0, 0.0, 0.0) |
const iaColor4< uint8 > | transparent (0x00, 0x00, 0x00, 0x00) |
Public Attributes | |
T | _r |
T | _g |
T | _b |
T | _a |
Static Public Attributes | |
static IAUX_API_IMPORT_ONLY const iaColor4< T > | white |
static IAUX_API_IMPORT_ONLY const iaColor4< T > | lightGray |
static IAUX_API_IMPORT_ONLY const iaColor4< T > | gray |
static IAUX_API_IMPORT_ONLY const iaColor4< T > | darkGray |
static IAUX_API_IMPORT_ONLY const iaColor4< T > | black |
static IAUX_API_IMPORT_ONLY const iaColor4< T > | red |
static IAUX_API_IMPORT_ONLY const iaColor4< T > | green |
static IAUX_API_IMPORT_ONLY const iaColor4< T > | blue |
static IAUX_API_IMPORT_ONLY const iaColor4< T > | yellow |
static IAUX_API_IMPORT_ONLY const iaColor4< T > | cyan |
static IAUX_API_IMPORT_ONLY const iaColor4< T > | magenta |
static IAUX_API_IMPORT_ONLY const iaColor4< T > | transparent |
color class the represents the red, green, blue and alpha channel
for floating point variant we expect values in range from 0.0 - 1.0 for integer variant we expect values in range from 0.0 - 255.0
iaux::iaColor4< T >::iaColor4 | ( | ) |
ctor initialize member variables
iaColor4::iaColor4 | ( | T | r, |
T | g, | ||
T | b, | ||
T | a | ||
) |
ctor initialize member variables with parameters
r | red component |
g | green component |
b | blue component |
a | alpha component |
iaux::iaColor4< float32 >::iaColor4 | ( | ) |
iaColor4::iaColor4 | ( | ) |
const iaColor4< float32 > iaux::iaColor4< float32 >::black | ( | 0. | 0, |
0. | 0, | ||
0. | 0, | ||
1. | 0 | ||
) |
const iaColor4< uint8 > iaux::iaColor4< uint8 >::black | ( | 0x00 | , |
0x00 | , | ||
0x00 | , | ||
0xff | |||
) |
const iaColor4< float32 > iaux::iaColor4< float32 >::blue | ( | 0. | 0, |
0. | 0, | ||
1. | 0, | ||
1. | 0 | ||
) |
const iaColor4< uint8 > iaux::iaColor4< uint8 >::blue | ( | 0x00 | , |
0x00 | , | ||
0xff | , | ||
0xff | |||
) |
const iaColor4< float32 > iaux::iaColor4< float32 >::cyan | ( | 0. | 0, |
1. | 0, | ||
1. | 0, | ||
1. | 0 | ||
) |
const iaColor4< uint8 > iaux::iaColor4< uint8 >::cyan | ( | 0x00 | , |
0xff | , | ||
0xff | , | ||
0xff | |||
) |
const iaColor4< float32 > iaux::iaColor4< float32 >::darkGray | ( | 0. | 25, |
0. | 25, | ||
0. | 25, | ||
1. | 0 | ||
) |
const iaColor4< uint8 > iaux::iaColor4< uint8 >::darkGray | ( | 0x40 | , |
0x40 | , | ||
0x40 | , | ||
0xff | |||
) |
T * iaColor4::getData | ( | ) |
const iaColor4< float32 > iaux::iaColor4< float32 >::gray | ( | 0. | 5, |
0. | 5, | ||
0. | 5, | ||
1. | 0 | ||
) |
const iaColor4< uint8 > iaux::iaColor4< uint8 >::gray | ( | 0x80 | , |
0x80 | , | ||
0x80 | , | ||
0xff | |||
) |
const iaColor4< float32 > iaux::iaColor4< float32 >::green | ( | 0. | 0, |
1. | 0, | ||
0. | 0, | ||
1. | 0 | ||
) |
const iaColor4< uint8 > iaux::iaColor4< uint8 >::green | ( | 0x00 | , |
0xff | , | ||
0x00 | , | ||
0xff | |||
) |
const iaColor4< float32 > iaux::iaColor4< float32 >::lightGray | ( | 0. | 75, |
0. | 75, | ||
0. | 75, | ||
1. | 0 | ||
) |
const iaColor4< uint8 > iaux::iaColor4< uint8 >::lightGray | ( | 0xbf | , |
0xbf | , | ||
0xbf | , | ||
0xff | |||
) |
const iaColor4< uint8 > iaux::iaColor4< uint8 >::magenta | ( | 0xff | , |
0x00 | , | ||
0xff | , | ||
0xff | |||
) |
const iaColor4< float32 > iaux::iaColor4< float32 >::magenta | ( | 1. | 0, |
0. | 0, | ||
1. | 0, | ||
1. | 0 | ||
) |
void iaColor4::operator* | ( | float32 | factor | ) |
scale operator
factor | the value to scale with |
void iaColor4::operator*= | ( | float32 | factor | ) |
scale operator
factor | the value to scale with |
void iaColor4::operator+= | ( | const iaColor4< T > & | color | ) |
add operator
color | the color to add |
void iaColor4::operator-= | ( | const iaColor4< T > & | color | ) |
subtract operator
color | the color to subtract |
assignment operator with other color
color | the color to assign |
const iaColor4< uint8 > iaux::iaColor4< uint8 >::red | ( | 0xff | , |
0x00 | , | ||
0x00 | , | ||
0xff | |||
) |
const iaColor4< float32 > iaux::iaColor4< float32 >::red | ( | 1. | 0, |
0. | 0, | ||
0. | 0, | ||
1. | 0 | ||
) |
void iaColor4::set | ( | T | r, |
T | g, | ||
T | b, | ||
T | a | ||
) |
set member variables with parameters
r | red component |
g | green component |
b | blue component |
a | alpha component |
const iaColor4< float32 > iaux::iaColor4< float32 >::transparent | ( | 0. | 0, |
0. | 0, | ||
0. | 0, | ||
0. | 0 | ||
) |
const iaColor4< uint8 > iaux::iaColor4< uint8 >::transparent | ( | 0x00 | , |
0x00 | , | ||
0x00 | , | ||
0x00 | |||
) |
const iaColor4< uint8 > iaux::iaColor4< uint8 >::white | ( | 0xff | , |
0xff | , | ||
0xff | , | ||
0xff | |||
) |
const iaColor4< float32 > iaux::iaColor4< float32 >::white | ( | 1. | 0, |
1. | 0, | ||
1. | 0, | ||
1. | 0 | ||
) |
const iaColor4< uint8 > iaux::iaColor4< uint8 >::yellow | ( | 0xff | , |
0xff | , | ||
0x00 | , | ||
0xff | |||
) |
const iaColor4< float32 > iaux::iaColor4< float32 >::yellow | ( | 1. | 0, |
1. | 0, | ||
0. | 0, | ||
1. | 0 | ||
) |
T iaux::iaColor4< T >::_a |
alpha color channel
T iaux::iaColor4< T >::_b |
blue color channel
T iaux::iaColor4< T >::_g |
green color channel
T iaux::iaColor4< T >::_r |
red color channel
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |