| 630 | // == ColorSetting ================================================================================ |
| 631 | |
| 632 | static std::string GetIntensityLabel(const char* colorLabelName, ColorUnit units) |
| 633 | { |
| 634 | std::string intensityLabel = colorLabelName; |
| 635 | intensityLabel += " Intensity"; |
| 636 | if(units == ColorUnit::Luminance) |
| 637 | intensityLabel += " (cd/m^2)"; |
| 638 | else if(units == ColorUnit::Illuminance) |
| 639 | intensityLabel += " (lux)"; |
| 640 | else if(units == ColorUnit::LuminousPower) |
| 641 | intensityLabel += " (lm)"; |
| 642 | else if(units == ColorUnit::EV100) |
| 643 | intensityLabel += " (EV100)"; |
| 644 | |
| 645 | return intensityLabel; |
| 646 | } |
| 647 | |
| 648 | ColorSetting::ColorSetting() |
| 649 | { |
no outgoing calls
no test coverage detected