Definition at line 285 of file SimilarityTimeLineVideo.h. References Impala::Core::Table::SimilarityTableSet::GetIndex(), OglGui::CheckBoxValueBars::GetItem(), mChBoxValBars, mExtraTimeLines, mSimSet, mSimTimeLine, OglGui::CheckBoxValueBar::Name(), OglGui::CheckBoxValueBars::NrOfItems(), Impala::Core::Table::SimilarityTableSet::NrTables(), Impala::Visualization::SimilarityTimeLine::SetShowSim(), and Impala::Visualization::SimilarityTimeLine::SetSimColor(). Referenced by DisplayFunc(), and OnValueChanged(). 00286 { 00287 if (!mSimSet || !mChBoxValBars) 00288 return; 00289 for (int i=0; i<mSimSet->NrTables(); i++) 00290 { 00291 mSimTimeLine->SetShowSim(i, false); 00292 mSimTimeLine->SetSimColor(i,0); 00293 for (int t=0; t<mExtraTimeLines.size(); t++) 00294 { 00295 mExtraTimeLines[t]->SetShowSim(i, false); 00296 mExtraTimeLines[t]->SetSimColor(i,0); 00297 } 00298 } 00299 for (int i=0; i<mChBoxValBars->NrOfItems(); i++) 00300 { 00301 CheckBoxValueBar* chBoxValB = mChBoxValBars->GetItem(i); 00302 std::string name = chBoxValB->Name(); 00303 int idx = mSimSet->GetIndex(name); 00304 if (idx != -1) 00305 { 00306 mSimTimeLine->SetSimColor(idx,chBoxValB->Color()); 00307 mSimTimeLine->SetShowSim(idx,chBoxValB->Selected()); 00308 for (int t=0; t<mExtraTimeLines.size(); t++) 00309 { 00310 mExtraTimeLines[t]->SetSimColor(idx,chBoxValB->Color()); 00311 mExtraTimeLines[t]->SetShowSim(idx,chBoxValB->Selected()); 00312 } 00313 } 00314 } 00315 }
Here is the call graph for this function:
|