| 367 | } |
| 368 | |
| 369 | void |
| 370 | TrackerNodeInteract::onResetTrackButtonClicked() |
| 371 | { |
| 372 | TrackerContextPtr context = getContext(); |
| 373 | |
| 374 | assert(context); |
| 375 | std::list<TrackMarkerPtr> markers; |
| 376 | context->getSelectedMarkers(&markers); |
| 377 | context->clearSelection(TrackerContext::eTrackSelectionInternal); |
| 378 | context->endEditSelection(TrackerContext::eTrackSelectionInternal); |
| 379 | |
| 380 | for (std::list<TrackMarkerPtr>::iterator it = markers.begin(); it != markers.end(); ++it) { |
| 381 | (*it)->resetTrack(); |
| 382 | } |
| 383 | context->beginEditSelection(TrackerContext::eTrackSelectionInternal); |
| 384 | context->addTracksToSelection(markers, TrackerContext::eTrackSelectionInternal); |
| 385 | context->endEditSelection(TrackerContext::eTrackSelectionInternal); |
| 386 | } |
| 387 | |
| 388 | QPointF |
| 389 | TrackerNodeInteract::computeMidPointExtent(const QPointF& prev, |
no test coverage detected