| 1296 | } |
| 1297 | |
| 1298 | void |
| 1299 | TrackerNodeInteract::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 | |
| 1334 | void |
| 1335 | TrackerNodeInteract::onTrackImageRenderingFinished() |
nothing calls this directly
no test coverage detected