| 127 | } |
| 128 | |
| 129 | Color 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 | |
| 142 | Color ColorMapper::getColor(double value) const |
| 143 | { |
no test coverage detected