| 45 | } |
| 46 | |
| 47 | QColor QtAnnotation::getDrawingColor() { |
| 48 | QColor drawingColor("#F4FA58"); |
| 49 | if (_annotation) { |
| 50 | std::shared_ptr<AnnotationGroup> grp = _annotation->getGroup(); |
| 51 | if (grp) { |
| 52 | while (grp->getGroup()) { |
| 53 | grp = grp->getGroup(); |
| 54 | } |
| 55 | return QColor(grp->getColor().c_str()); |
| 56 | } |
| 57 | else { |
| 58 | return QColor(_annotation->getColor().c_str()); |
| 59 | } |
| 60 | } |
| 61 | return drawingColor; |
| 62 | } |
| 63 | |
| 64 | void QtAnnotation::addCoordinate(const float& x, const float& y) { |
| 65 | prepareGeometryChange(); |