#include <fbxpropertytypes.h>
Class to represent colors in RGBA format using doubles.
- Examples:
- ExportScene03/main.cxx, ExportScene04/main.cxx, ImportScene/DisplayCamera.cxx, ImportScene/DisplayCommon.cxx, ImportScene/DisplayCommon.h, ImportScene/DisplayGenericInfo.cxx, ImportScene/DisplayLight.cxx, ImportScene/DisplayMarker.cxx, ImportScene/DisplayMaterial.cxx, ImportScene/DisplayUserProperties.cxx, Layers/main.cxx, Transformations/DisplayCommon.cxx, Transformations/DisplayCommon.h, UserProperties/main.cxx, ViewScene/SceneCache.cxx, and ViewScene/SceneCache.h.
Definition at line 61 of file fbxpropertytypes.h.
◆ FbxColor() [1/4]
◆ FbxColor() [2/4]
FbxColor |
( |
const double |
pRed, |
|
|
const double |
pGreen, |
|
|
const double |
pBlue, |
|
|
const double |
pAlpha = 1.0 |
|
) |
| |
Constructor.
- Parameters
-
pRed | The Red component value. |
pGreen | The Green component value. |
pBlue | The Blue component value. |
pAlpha | The alpha value of the color. |
◆ FbxColor() [3/4]
◆ FbxColor() [4/4]
◆ ~FbxColor()
◆ Set()
void Set |
( |
const double |
pRed, |
|
|
const double |
pGreen, |
|
|
const double |
pBlue, |
|
|
const double |
pAlpha = 1.0 |
|
) |
| |
Re-initialize the color object with their new values.
- Parameters
-
pRed | The Red component value. |
pGreen | The Green component value. |
pBlue | The Blue component value. |
pAlpha | The alpha value of the color. |
- Examples:
- ImportScene/DisplayMaterial.cxx.
◆ IsValid()
Indicate if all the members in the color objects are within their valid range.
- Returns
true
if all the members are within their valid range.
◆ operator[]() [1/2]
double& operator[] |
( |
int |
pIndex | ) |
|
Accessors.
- Parameters
-
pIndex | The index of the component to access. |
- Returns
- The reference to the indexed component.
◆ operator[]() [2/2]
const double& operator[] |
( |
int |
pIndex | ) |
const |
Accessors.
- Parameters
-
pIndex | The index of the component to access. |
- Returns
- The reference to the indexed component.
◆ operator=() [1/3]
Assignment operator.
- Parameters
-
◆ operator=() [2/3]
◆ operator=() [3/3]
◆ operator==()
bool operator== |
( |
const FbxColor & |
pColor | ) |
const |
Equality operator.
- Parameters
-
- Returns
true
if equal, false
if unequal.
◆ operator!=()
bool operator!= |
( |
const FbxColor & |
pColor | ) |
const |
Inequality operator.
- Parameters
-
- Returns
true
if unequal, false
if equal.
◆ mRed
◆ mGreen
◆ mBlue
◆ mAlpha
The documentation for this class was generated from the following file: