Assimp: aiColor4t< TReal > Class Template Reference

assimp - Open Asset Import Library

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

union {
   struct {
      TReal   a
 
      TReal   b
 
      TReal   g
 
      TReal   r
 
   } 
 
   TReal   c [4]
 
}; 
 

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

template<typename TReal >
aiColor4t< TReal >::aiColor4t ( )
inline
template<typename TReal >
aiColor4t< TReal >::aiColor4t ( TReal  _r,
TReal  _g,
TReal  _b,
TReal  _a 
)
inline
template<typename TReal >
aiColor4t< TReal >::aiColor4t ( TReal  _r)
inlineexplicit
template<typename TReal >
aiColor4t< TReal >::aiColor4t ( const aiColor4t< TReal > &  o)
inline

Member Function Documentation

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

check whether a color is (close to) black

template<typename TReal >
AI_FORCE_INLINE bool aiColor4t< TReal >::operator!= ( const aiColor4t< TReal > &  other) const
template<typename TReal >
AI_FORCE_INLINE const aiColor4t< TReal > & aiColor4t< TReal >::operator*= ( TReal  f)
template<typename TReal >
AI_FORCE_INLINE const aiColor4t< TReal > & aiColor4t< TReal >::operator+= ( const aiColor4t< TReal > &  o)
template<typename TReal >
AI_FORCE_INLINE const aiColor4t< TReal > & aiColor4t< TReal >::operator-= ( const aiColor4t< TReal > &  o)
template<typename TReal >
AI_FORCE_INLINE const aiColor4t< TReal > & aiColor4t< TReal >::operator/= ( TReal  f)
template<typename TReal >
AI_FORCE_INLINE bool aiColor4t< TReal >::operator< ( const aiColor4t< TReal > &  other) const
template<typename TReal >
AI_FORCE_INLINE bool aiColor4t< TReal >::operator== ( const aiColor4t< TReal > &  other) const
template<typename TReal >
AI_FORCE_INLINE TReal aiColor4t< TReal >::operator[] ( unsigned int  i) const
inline
template<typename TReal >
AI_FORCE_INLINE TReal & aiColor4t< TReal >::operator[] ( unsigned int  i)
inline

Member Data Documentation

union { ... }
template<typename TReal >
TReal aiColor4t< TReal >::a
template<typename TReal >
TReal aiColor4t< TReal >::b
template<typename TReal >
TReal aiColor4t< TReal >::c[4]
template<typename TReal >
TReal aiColor4t< TReal >::g
template<typename TReal >
TReal aiColor4t< TReal >::r
The documentation for this class was generated from the following files:
Generated on Sun Feb 21 2016 19:42:29 for Assimp by   doxygen 1.8.11