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

Jet color range. More...

#include "jet_color.h"

Inheritance diagram for hh::JetColor:
Inheritance graph
Collaboration diagram for hh::JetColor:
Collaboration graph

Public Member Functions

 JetColor ()=default
 Default constructor.
 
 ~JetColor () override=default
 Default destructor.
 
std::string getRGBFromRange (std::chrono::nanoseconds const &value, std::chrono::nanoseconds const &min, std::chrono::nanoseconds const &range) override
 Get RGB value for a duration within a range for the jet color 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

Jet color range.

Return a color from the jet color range

Definition at line 33 of file jet_color.h.

Constructor & Destructor Documentation

◆ JetColor()

hh::JetColor::JetColor ( )
default

Default constructor.

◆ ~JetColor()

hh::JetColor::~JetColor ( )
overridedefault

Default destructor.

Member Function Documentation

◆ getRGBFromRange()

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

Get RGB value for a duration within a range for the jet color range.

Parameters
valueValue to get the RGB color
minMin value in the range
rangeRange of values
Returns
String representing the RGB values

Implements hh::ColorPicker.

Definition at line 46 of file jet_color.h.