Open Reality Reference Guide
 
Loading...
Searching...
No Matches
FBColor Class Reference

Color vector. More...

#include <fbtypes.h>

Inheritance diagram for FBColor:

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 FBColoroperator= (const FBColor &pVector)
 Overloaded equal operator.
 
void operator= (double *pValue)
 
const FBVector3< double > & operator= (const FBVector3< double > &pVector)
 
- Public Member Functions inherited from FBVector3< double >
 FBVector3 ()
 Constructor.
 
 FBVector3 (const FBVector3 &pVector)
 Copy Constructor.
 
 FBVector3 (double *pValue)
 Constructor from array.
 
 FBVector3 (double p1, double p2, double p3=0)
 Constructor.
 
void Init ()
 Initialization function.
 
double & operator[] (int pIndex)
 Overloaded [] operator.
 
void Set (double *pValue)
 Set vector from an array.
 
 operator double * () const
 Overloaded cast to array.
 
const FBVector3operator= (const FBVector3 &pVector)
 Overloaded equal operator.
 
bool operator!= (const FBVector3 &pVector)
 not equal operator.
 
bool operator== (const FBVector3 &pVector)
 equal operator.
 

Additional Inherited Members

- Public Attributes inherited from FBVector3< double >
double mValue [3]
 Values.
 

Detailed Description

Color vector.

Definition at line 447 of file fbtypes.h.

Constructor & Destructor Documentation

◆ FBColor() [1/4]

FBColor ( )

Constructor.

◆ FBColor() [2/4]

FBColor ( double *  pValue)

Constructor from array.

Parameters
pValueArray to take values from.

◆ FBColor() [3/4]

FBColor ( double  pRed,
double  pGreen,
double  pBlue 
)

Constructor.

Parameters
pRedRed component.
pGreenGreen component.
pBlueBlue component.

◆ FBColor() [4/4]

FBColor ( const FBColor pVector)

Copy Constructor.

Member Function Documentation

◆ operator double *()

operator double * ( ) const

Overloaded cast to array.

Returns
Array of items of tType.

◆ operator=()

const FBColor & operator= ( const FBColor pVector)

Overloaded equal operator.

Parameters
pVectorVector to copy.
Returns
this vector as a const.

◆ operator[]()

double & operator[] ( int  pIndex)

Overloaded [] operator.

Parameters
pIndexElement to access.
Returns
Element at pIndex.

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