| 51 | } |
| 52 | |
| 53 | void CellularLightingCalculator::setMonochrome(bool monochrome) { |
| 54 | if (monochrome == m_monochrome) |
| 55 | return; |
| 56 | |
| 57 | m_monochrome = monochrome; |
| 58 | if (monochrome) |
| 59 | m_lightArray.setRight(ScalarCellularLightArray()); |
| 60 | else |
| 61 | m_lightArray.setLeft(ColoredCellularLightArray()); |
| 62 | |
| 63 | if (m_config) |
| 64 | setParameters(m_config); |
| 65 | } |
| 66 | |
| 67 | void CellularLightingCalculator::setParameters(Json const& config) { |
| 68 | m_config = config; |
no test coverage detected