| 421 | // == ColorSetting ================================================================================ |
| 422 | |
| 423 | static std::string GetIntensityLabel(const char* colorLabelName, ColorUnit units) |
| 424 | { |
| 425 | std::string intensityLabel = colorLabelName; |
| 426 | intensityLabel += " Intensity"; |
| 427 | if(units == ColorUnit::Luminance) |
| 428 | intensityLabel += " (cd/m^2)"; |
| 429 | else if(units == ColorUnit::Illuminance) |
| 430 | intensityLabel += " (lux)"; |
| 431 | else if(units == ColorUnit::LuminousPower) |
| 432 | intensityLabel += " (lm)"; |
| 433 | else if(units == ColorUnit::EV100) |
| 434 | intensityLabel += " (EV100)"; |
| 435 | |
| 436 | return intensityLabel; |
| 437 | } |
| 438 | |
| 439 | ColorSetting::ColorSetting() |
| 440 | { |
no outgoing calls
no test coverage detected