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

Color scheme abstraction for dot file generation. More...

#include "color_picker.h"

Inheritance diagram for hh::ColorPicker:
Inheritance graph
Collaboration diagram for hh::ColorPicker:
Collaboration graph

Public Member Functions

 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

Color scheme abstraction for dot file generation.

Definition at line 30 of file color_picker.h.

Constructor & Destructor Documentation

◆ ColorPicker()

hh::ColorPicker::ColorPicker ( )
default

Default constructor.

◆ ~ColorPicker()

virtual hh::ColorPicker::~ColorPicker ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ getRGBFromRange()

virtual std::string hh::ColorPicker::getRGBFromRange ( std::chrono::nanoseconds const &  value,
std::chrono::nanoseconds const &  min,
std::chrono::nanoseconds const &  range 
)
pure virtual

Create a RGB value in the form of a string from a value and its range.

Parameters
valueTime in nanoseconds to represent in RGB
minMin range value (in nanoseconds)
rangeRange of values (in nanoseconds)
Returns
RGB value in the form of a string from a value and its range

Implemented in hh::BlueToRedColor, and hh::JetColor.