qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Classes | Typedefs | Functions | Variables
ccColor Namespace Reference

Colors namespace. More...

Classes

class  Convert
 Color space conversion. More...
 
class  Generator
 Colors generator. More...
 
class  RgbaTpl
 RGBA color structure. More...
 
class  RgbTpl
 RGB color structure. More...
 

Typedefs

using Rgbf = RgbTpl< float >
 3 components, float type
 
using Rgbub = RgbTpl< unsigned char >
 3 components, unsigned byte type
 
using Rgb = RgbTpl< ColorCompType >
 3 components, default type
 
using Rgbaf = RgbaTpl< float >
 4 components, float type
 
using Rgbaub = RgbaTpl< unsigned char >
 4 components, unsigned byte type
 
using Rgba = RgbaTpl< ColorCompType >
 4 components, default type
 

Functions

constexpr Rgb whiteRGB (MAX, MAX, MAX)
 
constexpr Rgb lightGreyRGB (static_cast< ColorCompType >(MAX *8/10), static_cast< ColorCompType >(MAX *8/10), static_cast< ColorCompType >(MAX *8/10))
 
constexpr Rgb darkGreyRGB (MAX/2, MAX/2, MAX/2)
 
constexpr Rgb redRGB (MAX, 0, 0)
 
constexpr Rgb greenRGB (0, MAX, 0)
 
constexpr Rgb blueRGB (0, 0, MAX)
 
constexpr Rgb darkBlueRGB (0, 0, MAX/2)
 
constexpr Rgb magentaRGB (MAX, 0, MAX)
 
constexpr Rgb cyanRGB (0, MAX, MAX)
 
constexpr Rgb orangeRGB (MAX, MAX/2, 0)
 
constexpr Rgb blackRGB (0, 0, 0)
 
constexpr Rgb yellowRGB (MAX, MAX, 0)
 
constexpr Rgba white (MAX, MAX, MAX, MAX)
 
constexpr Rgba lightGrey (static_cast< ColorCompType >(MAX *8/10), static_cast< ColorCompType >(MAX *8/10), static_cast< ColorCompType >(MAX *8/10), MAX)
 
constexpr Rgba darkGrey (MAX/2, MAX/2, MAX/2, MAX)
 
constexpr Rgba red (MAX, 0, 0, MAX)
 
constexpr Rgba green (0, MAX, 0, MAX)
 
constexpr Rgba blue (0, 0, MAX, MAX)
 
constexpr Rgba darkBlue (0, 0, MAX/2, MAX)
 
constexpr Rgba magenta (MAX, 0, MAX, MAX)
 
constexpr Rgba cyan (0, MAX, MAX, MAX)
 
constexpr Rgba orange (MAX, MAX/2, 0, MAX)
 
constexpr Rgba black (0, 0, 0, MAX)
 
constexpr Rgba yellow (MAX, MAX, 0, MAX)
 
constexpr Rgbaf bright (1.00f, 1.00f, 1.00f, 1.00f)
 
constexpr Rgbaf lighter (0.83f, 0.83f, 0.83f, 1.00f)
 
constexpr Rgbaf light (0.66f, 0.66f, 0.66f, 1.00f)
 
constexpr Rgbaf middle (0.50f, 0.50f, 0.50f, 1.00f)
 
constexpr Rgbaf dark (0.34f, 0.34f, 0.34f, 1.00f)
 
constexpr Rgbaf darker (0.17f, 0.17f, 0.17f, 1.00f)
 
constexpr Rgbaf darkest (0.08f, 0.08f, 0.08f, 1.00f)
 
constexpr Rgbaf night (0.00f, 0.00f, 0.00f, 1.00F)
 
constexpr Rgbaf defaultMeshFrontDiff (0.00f, 0.90f, 0.27f, 1.00f)
 
constexpr Rgbaf defaultMeshBackDiff (0.27f, 0.90f, 0.90f, 1.00f)
 
constexpr Rgbub defaultBkgColor (10, 102, 151)
 
constexpr Rgba defaultColor (MAX, MAX, MAX, MAX)
 
constexpr Rgba defaultLabelBkgColor (MAX, MAX, MAX, MAX)
 
constexpr Rgba defaultLabelMarkerColor (MAX, 0, MAX, MAX)
 
Rgb FromRgbfToRgb (const Rgbf &color)
 Conversion from Rgbf.
 
Rgb FromRgbafToRgb (const Rgbaf &color)
 Conversion from Rgbaf to Rgb.
 
Rgba FromRgbToRgba (const Rgb &color)
 Conversion from Rgb to Rgba.
 
Rgba FromRgbafToRgba (const Rgbaf &color)
 Conversion from Rgbaf to Rgba.
 
Rgb FromQRgb (QRgb qColor)
 Conversion from QRgb.
 
Rgba FromQRgba (QRgb qColor)
 Conversion from QRgb'a'.
 
Rgb FromQColor (const QColor &qColor)
 Conversion from QColor.
 
Rgba FromQColora (const QColor &qColor)
 Conversion from QColor'a'.
 
Rgbf FromQColorf (const QColor &qColor)
 Conversion from QColor (floating point)
 
Rgbaf FromQColoraf (const QColor &qColor)
 Conversion from QColor'a' (floating point)
 

Variables

constexpr ColorCompType MAX = 255
 Max value of a single color component (default type)
 

Detailed Description

Colors namespace.