This reference page is linked to from the following overview topics: List of Python FBX classes.
Class to represent colors in RGBA format using doubles.
ExportScene03/main.cxx, ExportScene04/main.cxx, ImportScene/DisplayCamera.cxx, ImportScene/DisplayCommon.cxx, ImportScene/DisplayGenericInfo.cxx, ImportScene/DisplayLight.cxx, ImportScene/DisplayMarker.cxx, ImportScene/DisplayMaterial.cxx, ImportScene/DisplayUserProperties.cxx, Layers/main.cxx, Transformations/DisplayCommon.cxx, UserProperties/main.cxx, ViewScene/DrawScene.cxx, ViewScene/GlFunctions.cxx, ViewScene/GlFunctions.h, ViewScene/Texture.cxx, and ViewScene/Texture.h.
Definition at line 48 of file kfbxcolor.h.
#include <kfbxcolor.h>
Public Member Functions |
|
KFbxColor () | |
Constructor. |
|
KFbxColor (double pRed, double pGreen, double pBlue, double pAlpha=1.0) | |
Constructor. |
|
~KFbxColor () | |
Destructor. |
|
void | Set (double pRed, double pGreen, double pBlue, double pAlpha=1.0) |
Re-initialize the color object with their
new values. |
|
bool | IsValid () const |
Indicate if all the members in the color
objects are within their valid range. |
|
double & | operator[] (int pIndex) |
Accessors. |
|
const double & | operator[] (int pIndex) const |
Accessors. |
|
Operators |
|
KFbxColor & | operator= (const KFbxColor &pColor) |
Assignment operator. |
|
bool | operator== (const KFbxColor &pColor) const |
Equality operator. |
|
bool | operator!= (const KFbxColor &pColor) const |
Inequality operator. |
|
|
|
double | mRed |
name Public Members |
|
double | mGreen |
Valid range is from 0.0 to 1.0. |
|
double | mBlue |
Valid range is from 0.0 to 1.0. |
|
double | mAlpha |
Valid range is from 0.0 to 1.0. |
KFbxColor | ( | ) |
Constructor.
KFbxColor | ( | double | pRed, |
double | pGreen, | ||
double | pBlue, | ||
double | pAlpha = 1.0 |
||
) |
Constructor.
pRed | The Red component value. |
pGreen | The Green component value. |
pBlue | The Blue component value. |
pAlpha | The alpha value of the color. |
~KFbxColor | ( | ) |
Destructor.
void Set | ( | double | pRed, |
double | pGreen, | ||
double | pBlue, | ||
double | pAlpha = 1.0 |
||
) |
Re-initialize the color object with their new values.
pRed | The Red component value. |
pGreen | The Green component value. |
pBlue | The Blue component value. |
pAlpha | The alpha value of the color. |
bool IsValid | ( | ) | const |
Indicate if all the members in the color objects are within their valid range.
true
if all the members are within their valid
range.double& operator[] | ( | int | pIndex | ) |
Accessors.
pIndex | The index of the component to access. |
const double& operator[] | ( | int | pIndex | ) | const |
Accessors.
pIndex | The index of the component to access. |
Assignment operator.
pColor | KFbxColor to be copied. |
bool operator== | ( | const KFbxColor & | pColor | ) | const |
Equality operator.
pColor | KFbxColor compared with this one. |
true
if equal, false
if unequal.bool operator!= | ( | const KFbxColor & | pColor | ) | const |
Inequality operator.
pColor | KFbxColor compared with this one. |
true
if unequal, false
if equal.double mRed |
name Public Members
Valid range is from 0.0 to 1.0.
Definition at line 122 of file kfbxcolor.h.
double mGreen |
Valid range is from 0.0 to 1.0.
Definition at line 125 of file kfbxcolor.h.
double mBlue |
Valid range is from 0.0 to 1.0.
Definition at line 128 of file kfbxcolor.h.
double mAlpha |
Valid range is from 0.0 to 1.0.
Definition at line 131 of file kfbxcolor.h.