// FIXME: ThreadJobCollection::allJobsCompleted() always needs to be called. // maybe provide a public interface different from the // implementation()? // -> i.e. provide notifyAllJobsCompleted() as a public method // (non-virtual) and allJobsCompleted() as a protected and // virtual. the latter would be empty in ThreadJobCollection. void BroadPhasePostProcessingJobCollection::allJobsCompleted() { ThreadJobCollection::allJobsCompleted(); if (!mSkipMiddlePhase) { if (mDetectorDeformManager) { mDetectorDeformManager->notifyAllCollisionPairsAreAdded(); } } // TODO: most job collection seem to do that here // -> move into ThreadJobCollection::allJobsCompleted() ? resetCollection(); }
void MainWindow::mainStartAnimation() { if( leftPanel->currentRow() != -1) { if(currentCollection != leftPanel->currentRow()) { resetCollection(leftPanel->currentRow()); currentCollection = leftPanel->currentRow(); } } bottom->startAnimation(leftPanel->currentRow()); }