Public Member Functions

FBColorAndAlpha Class Reference

Search for all occurrences

Detailed Description

Color and alpha vector.

Definition at line 495 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 FBColorAndAlpha operator= (const FBColorAndAlpha &pVector)
  Overloaded equal operator.
const FBColorAndAlpha operator= (const FBColor &pVector)
const FBColorAndAlpha operator= (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:
pValue Array to take values from.
FBColorAndAlpha ( double  pRed,
double  pGreen,
double  pBlue,
double  pAlpha = 1.0 
)

Constructor.

Parameters:
pRed Red component.
pGreen Green component.
pBlue Blue component.
pAlpha Alpha component(default=1.0).
FBColorAndAlpha ( const FBColor pValue )

Constructor from FBColor.

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

Constructor from FBColorF.

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

Copy Constructor.


Member Function Documentation

double& operator[] ( int  pIndex )

Overloaded [] operator.

Parameters:
pIndex Element 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:
pVector Vector 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