| 60 | } |
| 61 | |
| 62 | void 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 | |
| 74 | void 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected