| 82 | } |
| 83 | |
| 84 | QColor MultiGradient::color(UInt index) |
| 85 | { |
| 86 | if (index > size() - 1) |
| 87 | { |
| 88 | throw IndexOverflow(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION); |
| 89 | } |
| 90 | |
| 91 | map<double, QColor>::iterator it = pos_col_.begin(); |
| 92 | for (Size i = 0; i < index; ++i) |
| 93 | { |
| 94 | ++it; |
| 95 | } |
| 96 | return it->second; |
| 97 | } |
| 98 | |
| 99 | QColor MultiGradient::interpolatedColorAt(double position) const |
| 100 | { |
no test coverage detected