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

Method onAnnotationChanged

ASAP/annotation/PolyQtAnnotation.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void PolyQtAnnotation::onAnnotationChanged() {
37 _currentPath = getCurrentPath(_annotation->getCoordinates());
38 if (_type == "spline") {
39 _polys = _currentPath.toFillPolygon();
40 if (!_closed && _polys.isClosed()) {
41 _polys.pop_back();
42 }
43 }
44}
45
46std::vector<QPointF> PolyQtAnnotation::catmullRomToBezier(const QPointF& p0, const QPointF& p1, const QPointF& p2, const QPointF& p3) const
47{

Callers

nothing calls this directly

Calls 1

getCoordinatesMethod · 0.80

Tested by

no test coverage detected