| 67 | } |
| 68 | |
| 69 | UInt MultiGradient::position(UInt index) |
| 70 | { |
| 71 | if (index > size() - 1) |
| 72 | { |
| 73 | throw IndexOverflow(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION); |
| 74 | } |
| 75 | |
| 76 | map<double, QColor>::iterator it = pos_col_.begin(); |
| 77 | for (Size i = 0; i < index; ++i) |
| 78 | { |
| 79 | ++it; |
| 80 | } |
| 81 | return it->first; |
| 82 | } |
| 83 | |
| 84 | QColor MultiGradient::color(UInt index) |
| 85 | { |
no test coverage detected