FBColor Class Reference
 
 
 
FBColor Class Reference

#include <fbtypes.h>


Class Description

Color vector.

Definition at line 447 of file fbtypes.h.

Inheritance diagram for FBColor:
FBVector3< double >

Public Member Functions

  FBColor ()
  Constructor.
  FBColor (double *pValue)
  Constructor from array.
  FBColor (double pRed, double pGreen, double pBlue)
  Constructor.
  FBColor (const FBColor &pVector)
  Copy Constructor.
double &  operator[] (int pIndex)
  Overloaded [] operator.
  operator double * () const
  Overloaded cast to array.
const FBColor operator= (const FBColor &pVector)
  Overloaded equal operator.
void  operator= (double *pValue)
const FBVector3< double > &  operator= (const FBVector3< double > &pVector)
void  Init ()
  Initialization function.
void  Set (double *pValue)
  Set vector from an array.
bool  operator!= (const FBVector3 &pVector)
  not equal operator.
bool  operator== (const FBVector3 &pVector)
  equal operator.

Public Attributes

double  mValue [3]
  Values.

Constructor & Destructor Documentation

FBColor::FBColor ( )

Constructor.

FBColor::FBColor ( double *  pValue )

Constructor from array.

Parameters:
pValue Array to take values from.
FBColor::FBColor ( double  pRed,
double  pGreen,
double  pBlue 
)

Constructor.

Parameters:
pRed Red component.
pGreen Green component.
pBlue Blue component.
FBColor::FBColor ( const FBColor pVector )

Copy Constructor.


Member Function Documentation

double& FBColor::operator[] ( int  pIndex )

Overloaded [] operator.

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

Reimplemented from FBVector3< double >.

FBColor::operator double * ( ) const

Overloaded cast to array.

Returns:
Array of items of tType.

Reimplemented from FBVector3< double >.

const FBColor& FBColor::operator= ( const FBColor pVector )

Overloaded equal operator.

Parameters:
pVector Vector to copy.
Returns:
this vector as a const.
void FBColor::operator= ( double *  pValue )
const FBVector3< double >& FBColor::operator= ( const FBVector3< double > &  pVector )
void FBVector3< double >::Init ( ) [inherited]

Initialization function.

Clear vector.

Reimplemented in FBSVector.

void FBVector3< double >::Set ( double *  pValue ) [inherited]

Set vector from an array.

Parameters:
pValue Array to copy value from.
bool FBVector3< double >::operator!= ( const FBVector3< double > &  pVector ) [inherited]

not equal operator.

Parameters:
pVector Vector to compare.
Returns:
true if not equal.
bool FBVector3< double >::operator== ( const FBVector3< double > &  pVector ) [inherited]

equal operator.

Parameters:
pVector Vector to compare.
Returns:
true if equal.

Member Data Documentation

double FBVector3< double >::mValue[3] [inherited]

Values.

Definition at line 158 of file fbtypes.h.


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