comparison view/AlignmentView.cpp @ 1509:8145a9c4c253

The default key frame map is not working well at the moment, because its extents are not being properly updated as the models they depend on are loaded. Leave it empty for now.
author Chris Cannam
date Tue, 17 Sep 2019 12:50:34 +0100
parents c5589d94b731
children 911330a28a7c
comparison
equal deleted inserted replaced
1507:996e971df9e7 1509:8145a9c4c253
305 305
306 vector<sv_frame_t> 306 vector<sv_frame_t>
307 AlignmentView::getDefaultKeyFrames() 307 AlignmentView::getDefaultKeyFrames()
308 { 308 {
309 vector<sv_frame_t> keyFrames; 309 vector<sv_frame_t> keyFrames;
310 310 return keyFrames;
311
312 #ifdef NOT_REALLY
311 if (!m_above || !m_manager) return keyFrames; 313 if (!m_above || !m_manager) return keyFrames;
312 314
313 sv_samplerate_t rate = m_manager->getMainModelSampleRate(); 315 sv_samplerate_t rate = m_manager->getMainModelSampleRate();
314 if (rate == 0) return keyFrames; 316 if (rate == 0) return keyFrames;
315 317
318 f += sv_frame_t(rate * 5 + 0.5)) { 320 f += sv_frame_t(rate * 5 + 0.5)) {
319 keyFrames.push_back(f); 321 keyFrames.push_back(f);
320 } 322 }
321 323
322 return keyFrames; 324 return keyFrames;
325 #endif
323 } 326 }
324 327
325 ModelId 328 ModelId
326 AlignmentView::getSalientModel(View *view) 329 AlignmentView::getSalientModel(View *view)
327 { 330 {