26 #include <boost/property_tree/ptree.hpp>
41 const double c0 = (cell->GetChemicals().size() > m_index) ? cell->GetChemical(m_index) : 0.0;
42 const double conc = max(c0, 0.0) / cell->
GetArea();
56 const double x = log10(conc);
58 const double x_black = -4.0;
59 const double x_lime = -3.0;
65 else if (x < x_lime) {
66 t_color = interpolate(x, black, x_black, lime, x_lime);
72 return Hsv2Rgb(get<0>(t_color), get<1>(t_color), get<2>(t_color));
A cell contains walls and nodes.
ChemGreen(const boost::property_tree::ptree &pt, unsigned int index)
Straight initialization.
Namespace for components of the Default model group.
Header file for HSV colors.
std::array< double, 3 > operator()(SimPT_Sim::Cell *cell)
Return color value.
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...
CellColor ChemGreen scheme (use black background).
double GetArea() const
Return the area of the cell.