MCPcopy Create free account
hub / github.com/IENT/YUView / getColor

Method getColor

YUViewLib/src/statistics/ColorMapper.cpp:129–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129Color ColorMapper::getColor(int value) const
130{
131 if (this->mappingType == MappingType::Map)
132 {
133 if (this->colorMap.count(value) > 0)
134 return this->colorMap.at(value);
135 else
136 return this->colorMapOther;
137 }
138 else
139 return this->getColor(double(value));
140}
141
142Color ColorMapper::getColor(double value) const
143{

Callers 3

paintStatisticsDataMethod · 0.80
paintEventMethod · 0.80

Calls 9

clipFunction · 0.85
ColorClass · 0.85
RGBAClass · 0.85
applyIMappingFunction · 0.85
RMethod · 0.80
GMethod · 0.80
BMethod · 0.80
AMethod · 0.80
atMethod · 0.45

Tested by

no test coverage detected