Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
aiColor4t< TReal > Class Template Reference

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

#include <color4.h>

Public Member Functions

 aiColor4t () AI_NO_EXCEPT
 
 aiColor4t (const aiColor4t &o)=default
 
 aiColor4t (TReal _r)
 
 aiColor4t (TReal _r, TReal _g, TReal _b, TReal _a)
 
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)
 
TReal operator[] (unsigned int i) const
 

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)
default

Member Function Documentation

◆ IsBlack()

template<typename TReal >
AI_FORCE_INLINE bool aiColor4t< TReal >::IsBlack
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)
inline

◆ operator[]() [2/2]

template<typename TReal >
AI_FORCE_INLINE TReal aiColor4t< TReal >::operator[] ( unsigned int  i) const
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: