MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / GetIntensityLabel

Function GetIntensityLabel

SampleFramework11/v1.02/Settings.cpp:423–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421// == ColorSetting ================================================================================
422
423static 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
439ColorSetting::ColorSetting()
440{

Callers 2

InitializeMethod · 0.85
SetUnitsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected