24 #include <boost/property_tree/ptree.hpp>
31 using boost::property_tree::ptree;
40 const double c0 = (cell->GetChemicals().size() >= 1) ? (cell->GetChemical(0)/cell->
GetArea()) : 0.0;
41 return (c0 <= 0.05) ? array<double, 3> {{1.0, 1.0, 1.0}} : array<double, 3> {{1.0, c0/(400.0+c0), 0.0}};
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.
Interface for CellColor::WortelColor.
Wortel(const boost::property_tree::ptree &pt)
Straight initialization.
double GetArea() const
Return the area of the cell.