Hedgehog  3.1.0
A library to generate hybrid pipeline workflow systems
Loading...
Searching...
No Matches
hh::BlueToRedColor Class Reference

Blue to Red color range. More...

#include "blue_to_red_color.h"

Inheritance diagram for hh::BlueToRedColor:
Inheritance graph
Collaboration diagram for hh::BlueToRedColor:
Collaboration graph

Public Member Functions

 BlueToRedColor ()=default
 Default constructor.
 
 ~BlueToRedColor () override=default
 Default destructor.
 
std::string getRGBFromRange (std::chrono::nanoseconds const &value, std::chrono::nanoseconds const &min, std::chrono::nanoseconds const &range) override
 Return a color from only blue to only red, blue being the lowest value, red the highest value in range.
 
- Public Member Functions inherited from hh::ColorPicker
 ColorPicker ()=default
 Default constructor.
 
virtual ~ColorPicker ()=default
 Default destructor.
 
virtual std::string getRGBFromRange (std::chrono::nanoseconds const &value, std::chrono::nanoseconds const &min, std::chrono::nanoseconds const &range)=0
 Create a RGB value in the form of a string from a value and its range.
 

Detailed Description

Blue to Red color range.

Return a color from only blue to only red, blue being the lowest value, red the highest value in range

Definition at line 34 of file blue_to_red_color.h.

Constructor & Destructor Documentation

◆ BlueToRedColor()

hh::BlueToRedColor::BlueToRedColor ( )
default

Default constructor.

◆ ~BlueToRedColor()

hh::BlueToRedColor::~BlueToRedColor ( )
overridedefault

Default destructor.

Member Function Documentation

◆ getRGBFromRange()

std::string hh::BlueToRedColor::getRGBFromRange ( std::chrono::nanoseconds const &  value,
std::chrono::nanoseconds const &  min,
std::chrono::nanoseconds const &  range 
)
inlineoverridevirtual

Return a color from only blue to only red, blue being the lowest value, red the highest value in range.

Parameters
valueValue to get the color from
minMinimum value of the range
rangeRange of values
Returns
RGB color for the value

Implements hh::ColorPicker.

Definition at line 46 of file blue_to_red_color.h.