MeteoIODoc 2.11.0
mio::Gradient_model Class Reference

#include <Graphics.h>

Public Member Functions

 Gradient_model ()
 
virtual ~Gradient_model ()
 
 Gradient_model (const double &i_min, const double &i_max, const bool &i_autoscale)
 
virtual void getColor (const double &val, double &r, double &g, double &b) const
 

Protected Member Functions

double getInterpol (const double &val, const std::vector< double > &i_X, const std::vector< double > &i_Y) const
 
void HSV2RGB (const double &h, const double &s, const double &v, unsigned char &r, unsigned char &g, unsigned char &b) const
 

Protected Attributes

std::vector< double > X
 
std::vector< double > v_h
 
std::vector< double > v_s
 
std::vector< double > v_v
 control points: vector of X and associated hues, saturations and values. They must be in X ascending order More...
 

Constructor & Destructor Documentation

◆ Gradient_model() [1/2]

mio::Gradient_model::Gradient_model ( )
inline

◆ ~Gradient_model()

virtual mio::Gradient_model::~Gradient_model ( )
inlinevirtual

◆ Gradient_model() [2/2]

mio::Gradient_model::Gradient_model ( const double &  i_min,
const double &  i_max,
const bool &  i_autoscale 
)
inline

Member Function Documentation

◆ getColor()

void mio::Gradient_model::getColor ( const double &  val,
double &  r,
double &  g,
double &  b 
) const
virtual

Reimplemented in mio::gr_heat, and mio::gr_freeze.

◆ getInterpol()

double mio::Gradient_model::getInterpol ( const double &  val,
const std::vector< double > &  i_X,
const std::vector< double > &  i_Y 
) const
protected

◆ HSV2RGB()

void mio::Gradient_model::HSV2RGB ( const double &  h,
const double &  s,
const double &  v,
unsigned char &  r,
unsigned char &  g,
unsigned char &  b 
) const
protected

Member Data Documentation

◆ v_h

std::vector<double> mio::Gradient_model::v_h
protected

◆ v_s

std::vector<double> mio::Gradient_model::v_s
protected

◆ v_v

std::vector<double> mio::Gradient_model::v_v
protected

control points: vector of X and associated hues, saturations and values. They must be in X ascending order

◆ X

std::vector<double> mio::Gradient_model::X
protected

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