25 #include <boost/property_tree/ptree.hpp>
37 m_base = pt.get<
double>(
"cell_mechanics.base_area", 293.893);
42 const double x = min(1.0, abs(cell->
GetArea() - m_base) / m_base);
43 constexpr
double hue = 10.0 / 255.0;
44 constexpr
double saturation = 50.0 / 255.0;
45 return Hsv2Rgb(hue, saturation, x);
A cell contains walls and nodes.
std::array< double, 3 > operator()(SimPT_Sim::Cell *cell)
Return color value.
Namespace for components of the Default model group.
Namespace for color utilities.
Rgb color def to Hsv color def: r,g,b values are from 0 to 1 and h = [0,360], s = [0...
Size(const boost::property_tree::ptree &pt)
Straight initialization.
double GetArea() const
Return the area of the cell.