Assimp  v3.1.1 (June 2014)
aiColor4t< TReal > Class Template Reference

Represents a color in Red-Green-Blue space including an alpha component. More...

Public Member Functions

 aiColor4t ()
 
 aiColor4t (TReal _r, TReal _g, TReal _b, TReal _a)
 
 aiColor4t (TReal _r)
 
 aiColor4t (const aiColor4t &o)
 
bool IsBlack () const
 check whether a color is (close to) black More...
 
bool operator!= (const aiColor4t &other) const
 
const aiColor4toperator*= (TReal f)
 
const aiColor4toperator+= (const aiColor4t &o)
 
const aiColor4toperator-= (const aiColor4t &o)
 
const aiColor4toperator/= (TReal f)
 
bool operator< (const aiColor4t &other) const
 
bool operator== (const aiColor4t &other) const
 
TReal operator[] (unsigned int i) const
 
TReal & operator[] (unsigned int i)
 

Public Attributes

TReal a
 
TReal b
 
TReal g
 
TReal r
 

Detailed Description

template<typename TReal>
class aiColor4t< TReal >

Represents a color in Red-Green-Blue space including an alpha component.

Color values range from 0 to 1.

Constructor & Destructor Documentation

§ aiColor4t() [1/4]

template<typename TReal >
aiColor4t< TReal >::aiColor4t ( )
inline

§ aiColor4t() [2/4]

template<typename TReal >
aiColor4t< TReal >::aiColor4t ( TReal  _r,
TReal  _g,
TReal  _b,
TReal  _a 
)
inline

§ aiColor4t() [3/4]

template<typename TReal >
aiColor4t< TReal >::aiColor4t ( TReal  _r)
inlineexplicit

§ aiColor4t() [4/4]

template<typename TReal >
aiColor4t< TReal >::aiColor4t ( const aiColor4t< TReal > &  o)
inline

Member Function Documentation

§ IsBlack()

template<typename TReal >
bool aiColor4t< TReal >::IsBlack ( ) const
inline

check whether a color is (close to) black

§ operator!=()

template<typename TReal >
AI_FORCE_INLINE bool aiColor4t< TReal >::operator!= ( const aiColor4t< TReal > &  other) const

§ operator*=()

template<typename TReal >
AI_FORCE_INLINE const aiColor4t< TReal > & aiColor4t< TReal >::operator*= ( TReal  f)

§ operator+=()

template<typename TReal >
AI_FORCE_INLINE const aiColor4t< TReal > & aiColor4t< TReal >::operator+= ( const aiColor4t< TReal > &  o)

§ operator-=()

template<typename TReal >
AI_FORCE_INLINE const aiColor4t< TReal > & aiColor4t< TReal >::operator-= ( const aiColor4t< TReal > &  o)

§ operator/=()

template<typename TReal >
AI_FORCE_INLINE const aiColor4t< TReal > & aiColor4t< TReal >::operator/= ( TReal  f)

§ operator<()

template<typename TReal >
AI_FORCE_INLINE bool aiColor4t< TReal >::operator< ( const aiColor4t< TReal > &  other) const

§ operator==()

template<typename TReal >
AI_FORCE_INLINE bool aiColor4t< TReal >::operator== ( const aiColor4t< TReal > &  other) const

§ operator[]() [1/2]

template<typename TReal >
AI_FORCE_INLINE TReal aiColor4t< TReal >::operator[] ( unsigned int  i) const
inline

§ operator[]() [2/2]

template<typename TReal >
AI_FORCE_INLINE TReal & aiColor4t< TReal >::operator[] ( unsigned int  i)
inline

Member Data Documentation

§ a

template<typename TReal >
TReal aiColor4t< TReal >::a

§ b

template<typename TReal >
TReal aiColor4t< TReal >::b

§ g

template<typename TReal >
TReal aiColor4t< TReal >::g

§ r

template<typename TReal >
TReal aiColor4t< TReal >::r

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