MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / onResetTrackButtonClicked

Method onResetTrackButtonClicked

Engine/TrackerNodeInteract.cpp:369–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void
370TrackerNodeInteract::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
388QPointF
389TrackerNodeInteract::computeMidPointExtent(const QPointF& prev,

Callers 1

knobChangedMethod · 0.80

Calls 8

getSelectedMarkersMethod · 0.80
endEditSelectionMethod · 0.80
resetTrackMethod · 0.80
beginEditSelectionMethod · 0.80
addTracksToSelectionMethod · 0.80
clearSelectionMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected