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

RGB color structure. More...

#include <ccColorTypes.h>

Public Member Functions

constexpr RgbTpl ()
 Default constructor. More...
 
constexpr RgbTpl (Type red, Type green, Type blue)
 Constructor from a triplet of r,g,b values.
 
constexpr RgbTpl (const Type col[3])
 Constructor from an array of 3 values.
 
bool operator!= (const RgbTpl< Type > &t) const
 Comparison operator.
 

Public Attributes

union {
   struct {
      Type   r
 
      Type   g
 
      Type   b
 
   } 
 
   Type   rgb [3]
 
}; 
 3-tuple as a union
 

Detailed Description

template<typename Type>
class ccColor::RgbTpl< Type >

RGB color structure.

Constructor & Destructor Documentation

◆ RgbTpl()

template<typename Type >
constexpr ccColor::RgbTpl< Type >::RgbTpl ( )
inlineconstexpr

Default constructor.

Inits color to (0,0,0).


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