Public Member Functions

FbxColor Class Reference

This reference page is linked to from the following overview topics: List of Python Fbx classes.


Search for all occurrences

Detailed Description

Class to represent colors in RGBA format using doubles.

Definition at line 60 of file fbxpropertytypes.h.

#include <fbxpropertytypes.h>

List of all members.

Public Member Functions

 FbxColor ()
 Constructor.
 FbxColor (const double pRed, const double pGreen, const double pBlue, const double pAlpha=1.0)
 Constructor.
 FbxColor (const FbxDouble3 &pRGB, const double pAlpha=1.0)
 FbxColor (const FbxDouble4 &pRGBA)
 ~FbxColor ()
 Destructor.
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.
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

FbxColoroperator= (const FbxColor &pColor)
 Assignment operator.
FbxColoroperator= (const FbxDouble3 &pColor)
FbxColoroperator= (const FbxDouble4 &pColor)
bool operator== (const FbxColor &pColor) const
 Equality operator.
bool operator!= (const FbxColor &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.

Constructor & Destructor Documentation

FbxColor ( )

Constructor.

FbxColor ( const double  pRed,
const double  pGreen,
const double  pBlue,
const double  pAlpha = 1.0 
)

Constructor.

Parameters:
pRedThe Red component value.
pGreenThe Green component value.
pBlueThe Blue component value.
pAlphaThe alpha value of the color.
FbxColor ( const FbxDouble3 pRGB,
const double  pAlpha = 1.0 
)
FbxColor ( const FbxDouble4 pRGBA)
~FbxColor ( )

Destructor.


Member Function Documentation

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:
pRedThe Red component value.
pGreenThe Green component value.
pBlueThe Blue component value.
pAlphaThe alpha value of the color.
bool IsValid ( ) const

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.
double& operator[] ( int  pIndex)

Accessors.

Parameters:
pIndexThe index of the component to access.
Returns:
The reference to the indexed component.
Remarks:
The pIndex parameter is not checked for values out of bounds.
const double& operator[] ( int  pIndex) const

Accessors.

Parameters:
pIndexThe index of the component to access.
Returns:
The reference to the indexed component.
Remarks:
The pIndex parameter is not checked for values out of bounds.
FbxColor& operator= ( const FbxColor pColor)

Assignment operator.

Parameters:
pColorFbxColor to be copied.
FbxColor& operator= ( const FbxDouble3 pColor)
FbxColor& operator= ( const FbxDouble4 pColor)
bool operator== ( const FbxColor pColor) const

Equality operator.

Parameters:
pColorFbxColor compared with this one.
Returns:
true if equal, false if unequal.
bool operator!= ( const FbxColor pColor) const

Inequality operator.

Parameters:
pColorFbxColor compared with this one.
Returns:
true if unequal, false if equal.

Member Data Documentation

double mRed

name Public Members

Valid range is from 0.0 to 1.0.

Definition at line 135 of file fbxpropertytypes.h.

double mGreen

Valid range is from 0.0 to 1.0.

Definition at line 138 of file fbxpropertytypes.h.

double mBlue

Valid range is from 0.0 to 1.0.

Definition at line 141 of file fbxpropertytypes.h.

double mAlpha

Valid range is from 0.0 to 1.0.

Definition at line 144 of file fbxpropertytypes.h.


The documentation for this class was generated from the following file:

FbxColor FbxColor FbxColor FbxColor FbxColor FbxColor FbxColor FbxColor FbxColor FbxColor
FbxColor FbxColor FbxColor FbxColor FbxColor FbxColor FbxColor FbxColor FbxColor FbxColor