CoreComponents 3.0.0
A Modern C++ Toolkit
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Modules
Miscellaneous

Utility classes and helper functions More...

Collaboration diagram for Miscellaneous:

Classes

class  Arguments
 Command line arguments parser More...
 
class  Bundle
 Lookup files in installation directories. More...
 
class  Color
 ARGB color tuple (32 bit) More...
 
class  Monitor
 Object with a single void property definition More...
 
class  Property< T >
 Property bindings More...
 
class  Random
 Pseudo-random number generator. More...
 
class  Range
 Index range. More...
 
class  ResourceManager
 Keep track of application resource directories. More...
 
class  ResourcePath
 Automatically map resource paths to real file system paths. More...
 
class  Trigger
 Callback mechanism: get notified on state changes. More...
 
class  Variant
 Duck-typed value. More...
 
class  Version
 Software version tuple. More...
 

Color space transformation functions

void rgbToHsv (double r, double g, double b, Out< double > h, Out< double > s, Out< double > v)
 Translate from the RGB to the HSV color space.
 
void hsvToRgb (double h, double s, double v, Out< double > r, Out< double > g, Out< double > b)
 Translate from the HSV to the RGB color space.
 
void rgbToHsl (double r, double g, double b, Out< double > h, Out< double > s, Out< double > l)
 Translate from the RGB to the HSL color space.
 
void hslToRgb (double h, double s, double l, Out< double > r, Out< double > g, Out< double > b)
 Translate from the HSL to the RGB color space.
 

Detailed Description

Utility classes and helper functions

Function Documentation

◆ rgbToHsv()

void rgbToHsv ( double r,
double g,
double b,
Out< double > h,
Out< double > s,
Out< double > v )

Translate from the RGB to the HSV color space.

Parameters
rRed in range [0, 1]
gGreen in range [0, 1]
bBlue in range [0, 1]
hReturns hue in range [0, 360)
sReturns saturation in range [0, 1]
vReturns value in range [0, 1]

◆ hsvToRgb()

void hsvToRgb ( double h,
double s,
double v,
Out< double > r,
Out< double > g,
Out< double > b )

Translate from the HSV to the RGB color space.

Parameters
hHue in range [0, 360]
sSaturation in range [0, 1]
vValue in range [0, 1]
rReturns red in range [0, 1]
gReturns green in range [0, 1]
bReturns blue in range [0, 1]

◆ rgbToHsl()

void rgbToHsl ( double r,
double g,
double b,
Out< double > h,
Out< double > s,
Out< double > l )

Translate from the RGB to the HSL color space.

Parameters
rRed in range [0, 1]
gGreen in range [0, 1]
bBlue in range [0, 1]
hReturns hue in range [0, 360)
sReturns saturation in range [0, 1]
lReturns luminance in range [0, 1]

◆ hslToRgb()

void hslToRgb ( double h,
double s,
double l,
Out< double > r,
Out< double > g,
Out< double > b )

Translate from the HSL to the RGB color space.

Parameters
hHue in range [0, 360]
sSaturation in range [0, 1]
lLuminance in range [0, 1]
rReturns red in range [0, 1]
gReturns green in range [0, 1]
bReturns blue in range [0, 1]