Definition at line 161 of file AllFramesTLineVideo.h. References OglGui::OglWindow::ConnectTo(), Impala::Visualization::TimeLineViewStrip::FrameError(), Impala::Core::Database::RawDataSet::GetContainerFile(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::DataDocument::GetDataSet(), Impala::Core::Database::RawDataSet::GetFilePathSimilarityData(), Impala::Core::Database::RawDataSet::GetLocator(), OglGui::OglWindow::H(), HandleExtraTimeLines(), HandleNewVideo(), Impala::Core::Table::SimilarityTableSet::MakeFromFile(), mConceptFeature, mConceptModel, mConceptSet, mCurFile, mFrameError, mSegDoc, mShowViewStrip, mSimSet, mSimTLV, mTimeLineVideo3D, OglGui::Window::ScaleChildren(), Impala::Visualization::SimilarityTimeLineVideo::SetSimilarityTableSet(), OglGui::Window::SetWindowListener(), Impala::Visualization::SimilarityTimeLineVideo::TimeLine(), and OglGui::OglWindow::W(). Referenced by HandleNewFile(). 00162 { 00163 bool doExtra = false; 00164 RawDataSet* dataSet = mSegDoc->GetDataSet(); 00165 //std::string dir = dataSet->GetFile(mCurFile); 00166 //std::string simNames = mTimeLineVideoSimDir+"/"+dir+"/names.txt"; 00167 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00168 std::string simNames = 00169 dataSet->GetFilePathSimilarityData("Frames", mConceptSet, mConceptModel, 00170 mConceptFeature, mCurFile, 00171 "names.txt", false, false); 00172 00173 if (mSimSet) 00174 delete mSimSet; 00175 mSimSet = 0; 00176 if (!simNames.empty()) 00177 mSimSet = SimilarityTableSet::MakeFromFile(simNames, 00178 dataSet->GetDatabase()); 00179 #else // REPOSITORY_USED 00180 typedef Persistency::SimilarityTableSetLocator SimLoc; 00181 SimLoc loc(dataSet->GetLocator(), false, "Frames", mConceptSet, 00182 mConceptModel, mConceptFeature, 00183 dataSet->GetContainerFile(mCurFile)); 00184 if (mSimSet) 00185 delete mSimSet; 00186 mSimSet = Persistency::SimilarityTableSetRepository().Get(loc); 00187 #endif // REPOSITORY_USED 00188 00189 if (!mSimTLV) 00190 { 00191 int m = 0; // = (mNoValues ? 0 : 1) | (mNoBars ? 0 : 2); 00192 m |= mShowViewStrip ? 4 : 0; 00193 m |= mTimeLineVideo3D ? 16 : 0; 00194 mSimTLV = new SimilarityTimeLineVideo(this,0,30,W(),H()-30, 00195 mSimSet,m); 00196 SimilarityTimeLine* simTL = mSimTLV->TimeLine(); 00197 simTL->SetWindowListener(this); 00198 simTL->FrameError(mFrameError); 00199 mSimTLV->ConnectTo(this); 00200 mSimTLV->ScaleChildren(0,0); 00201 doExtra = true; 00202 } 00203 else 00204 mSimTLV->SetSimilarityTableSet(mSimSet); 00205 HandleNewVideo(); 00206 if (doExtra) 00207 HandleExtraTimeLines(); 00208 }
Here is the call graph for this function:
|