MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / getDrawingColor

Method getDrawingColor

ASAP/annotation/QtAnnotation.cpp:47–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47QColor 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
64void QtAnnotation::addCoordinate(const float& x, const float& y) {
65 prepareGeometryChange();

Callers 2

paintMethod · 0.80
paintMethod · 0.80

Calls 2

getColorMethod · 0.80
getGroupMethod · 0.45

Tested by

no test coverage detected