MeteoIODoc 2.11.0
Graphical elements and operations

Classes

class  mio::Legend
 This creates a legend as pixels in a Grid2DObject. This should be used with/by a plugin that would then convert this Grid2DObject into a true graphic file (png, etc). More...
 
class  mio::Gradient
 This converts numeric values into rgb values. The object is initialized with the range that the gradient should cover and the gradient type. Then each numeric value that is given will be converted into rgb values from the selected gradient. Data out of range are converted to either the minimum or the maximum of the gradient. Special pixels should return a=true to indicate transparency (however, pure white is the transparency color, so do not use it in your gradients!). More...
 

Functions

void mio::Color::RGBtoHSV (const double &r, const double &g, const double &b, double &h, double &s, double &v)
 convert RGB to HSV. This converts Red-Green-Blue values to Hue-Saturation-Value. See https://secure.wikimedia.org/wikipedia/en/wiki/HSL_and_HSV or http://www.cs.rit.edu/~ncs/color/t_convert.html More...
 
void mio::Color::HSVtoRGB (const double &h, const double &s, const double &v, double &r, double &g, double &b)
 convert HSV to RGB. This converts Hue-Saturation-Value to Red-Green-Blue values. See https://secure.wikimedia.org/wikipedia/en/wiki/HSL_and_HSV or http://www.cs.rit.edu/~ncs/color/t_convert.html More...
 

Detailed Description

Documentation for available classes and methods for dealing with graphical elements, color conversions, etc

Function Documentation

◆ HSVtoRGB()

void mio::Color::HSVtoRGB ( const double &  h,
const double &  s,
const double &  v,
double &  r,
double &  g,
double &  b 
)

convert HSV to RGB. This converts Hue-Saturation-Value to Red-Green-Blue values. See https://secure.wikimedia.org/wikipedia/en/wiki/HSL_and_HSV or http://www.cs.rit.edu/~ncs/color/t_convert.html

Parameters
hhue (between 0 and 360)
ssaturation (between 0 and 1)
vvalue (between 0 and 1)
rred (between 0 and 1)
ggreen (between 0 and 1)
bblue (between 0 and 1)

◆ RGBtoHSV()

void mio::Color::RGBtoHSV ( const double &  r,
const double &  g,
const double &  b,
double &  h,
double &  s,
double &  v 
)

convert RGB to HSV. This converts Red-Green-Blue values to Hue-Saturation-Value. See https://secure.wikimedia.org/wikipedia/en/wiki/HSL_and_HSV or http://www.cs.rit.edu/~ncs/color/t_convert.html

Parameters
rred (between 0 and 1)
ggreen (between 0 and 1)
bblue (between 0 and 1)
hhue (between 0 and 360)
ssaturation (between 0 and 1)
vvalue (between 0 and 1)