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

Method cancelAnnotation

ASAP/annotation/PolyAnnotationTool.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void PolyAnnotationTool::cancelAnnotation() {
63 if (_generating) {
64 AnnotationTool::cancelAnnotation();
65 if (_activeLine) {
66 _activeLine->hide();
67 _viewer->scene()->removeItem(_activeLine);
68 delete _activeLine;
69 _activeLine = NULL;
70 }
71 }
72}
73
74void PolyAnnotationTool::addCoordinate(const QPointF& scenePos) {
75 if (_annotationPlugin->getGeneratedAnnotation()->getAnnotation()->getCoordinates().size() > 2 && QLineF(_viewer->mapFromScene(QPointF(_start.getX(), _start.getY())), _viewer->mapFromScene(scenePos)).length() < 12) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected