qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Public Member Functions | Public Attributes | List of all members
ccColor::RgbaTpl< Type > Class Template Reference

RGBA color structure. More...

#include <ccColorTypes.h>

Public Member Functions

constexpr RgbaTpl ()
 Default constructor. More...
 
constexpr RgbaTpl (Type red, Type green, Type blue, Type alpha)
 Constructor from a triplet of r,g,b values and a transparency value.
 
constexpr RgbaTpl (const Type col[4])
 RgbaTpl from an array of 4 values.
 
constexpr RgbaTpl (const Type col[3], Type alpha)
 RgbaTpl from an array of 3 values and a transparency value.
 
 RgbaTpl (const RgbTpl< Type > &c, Type alpha)
 Copy constructor.
 
 operator RgbTpl< Type > () const
 Cast operator.
 
bool operator!= (const RgbaTpl< Type > &t) const
 Cast operator (const version) More...
 

Public Attributes

union {
   struct {
      Type   r
 
      Type   g
 
      Type   b
 
      Type   a
 
   } 
 
   Type   rgba [4]
 
}; 
 

Detailed Description

template<class Type>
class ccColor::RgbaTpl< Type >

RGBA color structure.

Constructor & Destructor Documentation

◆ RgbaTpl()

template<class Type >
constexpr ccColor::RgbaTpl< Type >::RgbaTpl ( )
inlineconstexpr

Default constructor.

Inits color to (0,0,0,0).

Member Function Documentation

◆ operator!=()

template<class Type >
bool ccColor::RgbaTpl< Type >::operator!= ( const RgbaTpl< Type > &  t) const
inline

Cast operator (const version)

Comparison operator


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