0.44.0
|
#include <iaColor3.h>
Public Member Functions | |
iaColor3 () | |
iaColor3 (T r, T g, T b) | |
void | set (T r, T g, T b) |
T * | getData () |
iaColor3< T > | operator= (const iaColor3< T > &color) |
void | operator+= (const iaColor3< T > &color) |
void | operator-= (const iaColor3< T > &color) |
void | operator*= (float32 factor) |
void | operator* (float32 factor) |
iaColor3 () | |
iaColor3 () | |
const iaColor3< float32 > | white (1.0, 1.0, 1.0) |
const iaColor3< uint8 > | white (0xff, 0xff, 0xff) |
const iaColor3< float32 > | lightGray (0.75, 0.75, 0.75) |
const iaColor3< uint8 > | lightGray (0xb, 0xbf, 0xbf) |
const iaColor3< float32 > | gray (0.5, 0.5, 0.5) |
const iaColor3< uint8 > | gray (0x80, 0x80, 0x80) |
const iaColor3< float32 > | darkGray (0.25, 0.25, 0.25) |
const iaColor3< uint8 > | darkGray (0x40, 0x40, 0x40) |
const iaColor3< float32 > | black (0.0, 0.0, 0.0) |
const iaColor3< uint8 > | black (0x00, 0x00, 0x00) |
const iaColor3< float32 > | red (1.0, 0.0, 0.0) |
const iaColor3< uint8 > | red (0xff, 0x00, 0x00) |
const iaColor3< float32 > | green (0.0, 1.0, 0.0) |
const iaColor3< uint8 > | green (0x00, 0xff, 0x00) |
const iaColor3< float32 > | blue (0.0, 0.0, 1.0) |
const iaColor3< uint8 > | blue (0x00, 0x00, 0xff) |
const iaColor3< float32 > | yellow (1.0, 1.0, 0.0) |
const iaColor3< uint8 > | yellow (0xff, 0xff, 0x00) |
const iaColor3< float32 > | magenta (1.0, 0.0, 1.0) |
const iaColor3< uint8 > | magenta (0xff, 0x00, 0xff) |
const iaColor3< float32 > | cyan (0.0, 1.0, 1.0) |
const iaColor3< uint8 > | cyan (0x00, 0xff, 0xff) |
Public Attributes | |
T | _r |
T | _g |
T | _b |
Static Public Attributes | |
static IAUX_API_IMPORT_ONLY const iaColor3< T > | white |
static IAUX_API_IMPORT_ONLY const iaColor3< T > | lightGray |
static IAUX_API_IMPORT_ONLY const iaColor3< T > | gray |
static IAUX_API_IMPORT_ONLY const iaColor3< T > | darkGray |
static IAUX_API_IMPORT_ONLY const iaColor3< T > | black |
static IAUX_API_IMPORT_ONLY const iaColor3< T > | red |
static IAUX_API_IMPORT_ONLY const iaColor3< T > | green |
static IAUX_API_IMPORT_ONLY const iaColor3< T > | blue |
static IAUX_API_IMPORT_ONLY const iaColor3< T > | yellow |
static IAUX_API_IMPORT_ONLY const iaColor3< T > | cyan |
static IAUX_API_IMPORT_ONLY const iaColor3< T > | magenta |
3 component color class
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::iaColor3< T >::iaColor3 | ( | ) |
ctor initializes members
iaColor3::iaColor3 | ( | T | r, |
T | g, | ||
T | b | ||
) |
ctor initializes members with parameters
r | red component |
g | green component |
b | blue component |
iaux::iaColor3< float32 >::iaColor3 | ( | ) |
iaColor3::iaColor3 | ( | ) |
const iaColor3< float32 > iaux::iaColor3< float32 >::black | ( | 0. | 0, |
0. | 0, | ||
0. | 0 | ||
) |
const iaColor3< uint8 > iaux::iaColor3< uint8 >::black | ( | 0x00 | , |
0x00 | , | ||
0x00 | |||
) |
const iaColor3< float32 > iaux::iaColor3< float32 >::blue | ( | 0. | 0, |
0. | 0, | ||
1. | 0 | ||
) |
const iaColor3< uint8 > iaux::iaColor3< uint8 >::blue | ( | 0x00 | , |
0x00 | , | ||
0xff | |||
) |
const iaColor3< float32 > iaux::iaColor3< float32 >::cyan | ( | 0. | 0, |
1. | 0, | ||
1. | 0 | ||
) |
const iaColor3< uint8 > iaux::iaColor3< uint8 >::cyan | ( | 0x00 | , |
0xff | , | ||
0xff | |||
) |
const iaColor3< float32 > iaux::iaColor3< float32 >::darkGray | ( | 0. | 25, |
0. | 25, | ||
0. | 25 | ||
) |
const iaColor3< uint8 > iaux::iaColor3< uint8 >::darkGray | ( | 0x40 | , |
0x40 | , | ||
0x40 | |||
) |
T * iaColor3::getData | ( | ) |
const iaColor3< float32 > iaux::iaColor3< float32 >::gray | ( | 0. | 5, |
0. | 5, | ||
0. | 5 | ||
) |
const iaColor3< uint8 > iaux::iaColor3< uint8 >::gray | ( | 0x80 | , |
0x80 | , | ||
0x80 | |||
) |
const iaColor3< float32 > iaux::iaColor3< float32 >::green | ( | 0. | 0, |
1. | 0, | ||
0. | 0 | ||
) |
const iaColor3< uint8 > iaux::iaColor3< uint8 >::green | ( | 0x00 | , |
0xff | , | ||
0x00 | |||
) |
const iaColor3< float32 > iaux::iaColor3< float32 >::lightGray | ( | 0. | 75, |
0. | 75, | ||
0. | 75 | ||
) |
const iaColor3< uint8 > iaux::iaColor3< uint8 >::lightGray | ( | 0xb | , |
0xbf | , | ||
0xbf | |||
) |
const iaColor3< uint8 > iaux::iaColor3< uint8 >::magenta | ( | 0xff | , |
0x00 | , | ||
0xff | |||
) |
const iaColor3< float32 > iaux::iaColor3< float32 >::magenta | ( | 1. | 0, |
0. | 0, | ||
1. | 0 | ||
) |
void iaux::iaColor3< T >::operator* | ( | float32 | factor | ) |
scale operator
factor | the factor to scale with |
void iaColor3::operator*= | ( | float32 | factor | ) |
scale operator
factor | the factor to scale with |
void iaColor3::operator+= | ( | const iaColor3< T > & | color | ) |
add operator
\parm color the color to add
void iaColor3::operator-= | ( | const iaColor3< T > & | color | ) |
subtract operator
\parm color the color to subtract
assignment operator
\parm color the color to copy
const iaColor3< uint8 > iaux::iaColor3< uint8 >::red | ( | 0xff | , |
0x00 | , | ||
0x00 | |||
) |
const iaColor3< float32 > iaux::iaColor3< float32 >::red | ( | 1. | 0, |
0. | 0, | ||
0. | 0 | ||
) |
void iaColor3::set | ( | T | r, |
T | g, | ||
T | b | ||
) |
set members
r | red component |
g | green component |
b | blue component |
const iaColor3< uint8 > iaux::iaColor3< uint8 >::white | ( | 0xff | , |
0xff | , | ||
0xff | |||
) |
const iaColor3< float32 > iaux::iaColor3< float32 >::white | ( | 1. | 0, |
1. | 0, | ||
1. | 0 | ||
) |
const iaColor3< uint8 > iaux::iaColor3< uint8 >::yellow | ( | 0xff | , |
0xff | , | ||
0x00 | |||
) |
const iaColor3< float32 > iaux::iaColor3< float32 >::yellow | ( | 1. | 0, |
1. | 0, | ||
0. | 0 | ||
) |
T iaux::iaColor3< T >::_b |
blue component
T iaux::iaColor3< T >::_g |
green component
T iaux::iaColor3< T >::_r |
red component
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |