| 32 | namespace OpenMS |
| 33 | { |
| 34 | void Painter1DBase::drawAnnotations_(const LayerData1DBase* layer, QPainter& painter, Plot1DCanvas* canvas) const |
| 35 | { |
| 36 | const QColor col {QColor(String(layer->param.getValue("annotation_color").toString()).toQString())}; |
| 37 | // 0: default pen; 1: selected pen |
| 38 | const QPen pen[2] = {col, col.lighter()}; |
| 39 | |
| 40 | for (const auto& c : layer->getCurrentAnnotations()) |
| 41 | { |
| 42 | painter.setPen(pen[c->isSelected()]); |
| 43 | c->draw(canvas, painter, layer->flipped); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | // ############################### |
| 48 | // ###### 1D Peak |