| 676 | // == ColorSetting ================================================================================ |
| 677 | |
| 678 | static std::string GetIntensityLabel(const char* colorLabelName, ColorUnit units) |
| 679 | { |
| 680 | std::string intensityLabel = colorLabelName; |
| 681 | intensityLabel += " Intensity"; |
| 682 | if(units == ColorUnit::Luminance) |
| 683 | intensityLabel += " (cd/m^2)"; |
| 684 | else if(units == ColorUnit::Illuminance) |
| 685 | intensityLabel += " (lux)"; |
| 686 | else if(units == ColorUnit::LuminousPower) |
| 687 | intensityLabel += " (lm)"; |
| 688 | else if(units == ColorUnit::EV100) |
| 689 | intensityLabel += " (EV100)"; |
| 690 | |
| 691 | return intensityLabel; |
| 692 | } |
| 693 | |
| 694 | ColorSetting::ColorSetting() |
| 695 | { |
no outgoing calls
no test coverage detected