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

Method onContextSelectionChanged

Engine/TrackerNodeInteract.cpp:1298–1332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1296}
1297
1298void
1299TrackerNodeInteract::onContextSelectionChanged(int reason)
1300{
1301 std::list<TrackMarkerPtr> selection;
1302
1303 getContext()->getSelectedMarkers(&selection);
1304 if ( selection.empty() || (selection.size() > 1) ) {
1305 showMarkerTexture = false;
1306 } else {
1307 assert(selection.size() == 1);
1308
1309 const TrackMarkerPtr& selectionFront = selection.front();
1310 TrackMarkerPtr oldMarker = selectedMarker.lock();
1311 if (oldMarker != selectionFront) {
1312 selectedMarker = selectionFront;
1313 refreshSelectedMarkerTexture();
1314
1315
1316 std::set<int> keys;
1317 selectionFront->getUserKeyframes(&keys);
1318 for (std::set<int>::iterator it2 = keys.begin(); it2 != keys.end(); ++it2) {
1319 makeMarkerKeyTexture(*it2, selectionFront);
1320 }
1321 } else {
1322 if (selectionFront) {
1323 showMarkerTexture = true;
1324 }
1325 }
1326 }
1327 if ( (TrackerContext::TrackSelectionReason)reason == TrackerContext::eTrackSelectionViewer ) {
1328 return;
1329 }
1330
1331 _p->publicInterface->redrawOverlayInteract();
1332}
1333
1334void
1335TrackerNodeInteract::onTrackImageRenderingFinished()

Callers

nothing calls this directly

Calls 8

getSelectedMarkersMethod · 0.80
emptyMethod · 0.80
sizeMethod · 0.45
lockMethod · 0.45
getUserKeyframesMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
redrawOverlayInteractMethod · 0.45

Tested by

no test coverage detected