Definition at line 696 of file SimilarityTableSetRank.h.
References Impala::Core::Table::Copy(), Impala::Core::Database::DataDocument::CurFileId(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::VideoSet::Keyframes::GetFrameId(), OglGui::CheckBox::GetSelected(), Impala::Core::VideoSet::Keyframes::IsRKF(), Impala::MakeString(), Impala::Visualization::ShowNextFromControl::MaxVal(), mDataDoc, mIdxGridTotalTxt, mImagesSet, mKeyframes, mNrToShow, mPunsOnly, mQualifiedRanking, mRkfCheckBox, mSegDoc, mSelectedRanking, mShowNextFrom, mStartIm, mVideoCheckBox, Impala::Visualization::PunsOnlyControl::NegativeCheckBox(), Impala::Visualization::ShowNextFromControl::NrToShow(), Impala::Visualization::PunsOnlyControl::PositiveCheckBox(), Impala::Core::Table::Select(), OglGui::StaticText::SetText(), Impala::Core::Table::Table::Size(), Impala::Visualization::PunsOnlyControl::SkipCheckBox(), and Impala::Visualization::ShowNextFromControl::StartVal().
Referenced by HandleUpdate().
00697 {
00698 using Core::Table::CriterionQuidObjectEquals;
00699 using Core::Table::CriterionElement2Equals;
00700 Core::Table::Copy(mSelectedRanking, mQualifiedRanking);
00701 if (mSegDoc && mVideoCheckBox->GetSelected())
00702 {
00703 CriterionQuidObjectEquals<AnnotationTable> crit(mDataDoc->CurFileId());
00704 Core::Table::Select(mSelectedRanking, mSelectedRanking, crit, true);
00705 }
00706 if (mPunsOnly->PositiveCheckBox()->GetSelected())
00707 {
00708 CriterionElement2Equals<AnnotationTable> crit(1.0);
00709 Core::Table::Select(mSelectedRanking, mSelectedRanking, crit, true);
00710 }
00711 if (mPunsOnly->NegativeCheckBox()->GetSelected())
00712 {
00713 CriterionElement2Equals<AnnotationTable> crit(-1.0);
00714 Core::Table::Select(mSelectedRanking, mSelectedRanking, crit, true);
00715 }
00716 if (mPunsOnly->SkipCheckBox()->GetSelected())
00717 {
00718 CriterionElement2Equals<AnnotationTable> crit(0.0);
00719 Core::Table::Select(mSelectedRanking, mSelectedRanking, crit, true);
00720 }
00721 if (mSegDoc && mRkfCheckBox->GetSelected())
00722 {
00723 bool* filter = new bool[mSelectedRanking->Size()];
00724 for (int i=0 ; i<mSelectedRanking->Size() ; i++)
00725 {
00726 Quid q = mSelectedRanking->Get1(i);
00727 int keyId = mKeyframes->GetFrameId(q);
00728 filter[i] = mKeyframes->IsRKF(keyId);
00729 }
00730 Core::Table::Select(mSelectedRanking, mSelectedRanking, filter, true);
00731 delete filter;
00732 }
00733 int nrIm = mSelectedRanking->Size();
00734 if (mImagesSet)
00735 {
00736 mShowNextFrom->MaxVal(nrIm);
00737 mStartIm = mShowNextFrom->StartVal();
00738 mNrToShow = mShowNextFrom->NrToShow();
00739 }
00740 if (mIdxGridTotalTxt)
00741 mIdxGridTotalTxt->SetText("Total: " + MakeString(nrIm));
00742 }
Here is the call graph for this function: