Assimp  v3.0 (July 2012)
Public Member Functions | Public Attributes
aiColor3D Struct Reference

Represents a color in Red-Green-Blue space. More...

List of all members.

Public Member Functions

 aiColor3D ()
 aiColor3D (float _r, float _g, float _b)
 aiColor3D (float _r)
 aiColor3D (const aiColor3D &o)
bool IsBlack () const
 Check whether a color is black.
bool operator!= (const aiColor3D &other) const
 Component-wise inverse comparison.
aiColor3D operator* (const aiColor3D &c) const
 Component-wise multiplication.
aiColor3D operator* (float f) const
 Multiply with a scalar.
aiColor3D operator+ (const aiColor3D &c) const
 Component-wise addition.
aiColor3D operator- (const aiColor3D &c) const
 Component-wise subtraction.
bool operator== (const aiColor3D &other) const
 Component-wise comparison.
float operator[] (unsigned int i) const
 Access a specific color component.
float & operator[] (unsigned int i)
 Access a specific color component.

Public Attributes

float b
float g
float r
 Red, green and blue color values.

Detailed Description

Represents a color in Red-Green-Blue space.


Constructor & Destructor Documentation

aiColor3D::aiColor3D ( )
inline
aiColor3D::aiColor3D ( float  _r,
float  _g,
float  _b 
)
inline
aiColor3D::aiColor3D ( float  _r)
inline
aiColor3D::aiColor3D ( const aiColor3D o)
inline

Member Function Documentation

bool aiColor3D::IsBlack ( ) const
inline

Check whether a color is black.

bool aiColor3D::operator!= ( const aiColor3D other) const
inline

Component-wise inverse comparison.

aiColor3D aiColor3D::operator* ( const aiColor3D c) const
inline

Component-wise multiplication.

aiColor3D aiColor3D::operator* ( float  f) const
inline

Multiply with a scalar.

aiColor3D aiColor3D::operator+ ( const aiColor3D c) const
inline

Component-wise addition.

aiColor3D aiColor3D::operator- ( const aiColor3D c) const
inline

Component-wise subtraction.

bool aiColor3D::operator== ( const aiColor3D other) const
inline

Component-wise comparison.

float aiColor3D::operator[] ( unsigned int  i) const
inline

Access a specific color component.

float& aiColor3D::operator[] ( unsigned int  i)
inline

Access a specific color component.


Member Data Documentation

float aiColor3D::b
float aiColor3D::g
float aiColor3D::r

Red, green and blue color values.


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