Public Member Functions

FBColorAndAlpha Class Reference

Search for all occurrences

Detailed Description

Color and alpha vector.

Definition at line 489 of file fbtypes.h.

#include <fbtypes.h>

Inheritance diagram for FBColorAndAlpha:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 FBColorAndAlpha ()
 Constructor.
 FBColorAndAlpha (double *pValue)
 Constructor from array.
 FBColorAndAlpha (double pRed, double pGreen, double pBlue, double pAlpha=1.0)
 Constructor.
 FBColorAndAlpha (const FBColor &pValue)
 Constructor from FBColor.
 FBColorAndAlpha (const FBColorF &pValue)
 Constructor from FBColorF.
 FBColorAndAlpha (const FBColorAndAlpha &pVector)
 Copy Constructor.
double & operator[] (int pIndex)
 Overloaded [] operator.
 operator double * () const
 Overloaded cast to array.
const FBColorAndAlphaoperator= (const FBColorAndAlpha &pVector)
 Overloaded equal operator.
const FBColorAndAlphaoperator= (const FBColor &pVector)
const FBColorAndAlphaoperator= (const FBColorF &pVector)
void operator= (double *pValue)
const FBVector4< double > & operator= (const FBVector4< double > &pVector)

Constructor & Destructor Documentation

Constructor.

FBColorAndAlpha ( double *  pValue)

Constructor from array.

Parameters:
pValueArray to take values from.
FBColorAndAlpha ( double  pRed,
double  pGreen,
double  pBlue,
double  pAlpha = 1.0 
)

Constructor.

Parameters:
pRedRed component.
pGreenGreen component.
pBlueBlue component.
pAlphaAlpha component(default=1.0).
FBColorAndAlpha ( const FBColor pValue)

Constructor from FBColor.

Parameters:
pValueFBColor to take values from.
FBColorAndAlpha ( const FBColorF pValue)

Constructor from FBColorF.

Parameters:
pValueFBColorF to take values from.
FBColorAndAlpha ( const FBColorAndAlpha pVector)

Copy Constructor.


Member Function Documentation

double& operator[] ( int  pIndex)

Overloaded [] operator.

Parameters:
pIndexElement to access.
Returns:
Element at pIndex.

Reimplemented from FBVector4< double >.

operator double * ( ) const

Overloaded cast to array.

Returns:
Array of items of tType.

Reimplemented from FBVector4< double >.

const FBColorAndAlpha& operator= ( const FBColorAndAlpha pVector)

Overloaded equal operator.

Parameters:
pVectorVector to copy.
Returns:
this vector as a const.
const FBColorAndAlpha& operator= ( const FBColor pVector)
const FBColorAndAlpha& operator= ( const FBColorF pVector)
void operator= ( double *  pValue)
const FBVector4< double >& operator= ( const FBVector4< double > &  pVector)

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

FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha
FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha FBColorAndAlpha