Definition at line 60 of file AnnotationTableGui.h. References Impala::Visualization::AppControlDoc::AddDocListener(), OglGui::StringSelector::AddString(), Impala::CmdOptions::GetBool(), Impala::Core::Database::DataDocument::GetConcept(), Impala::Core::Database::RawDataSet::GetFilePathAnnotation(), Impala::Core::ImageSet::IxsDocument::GetImageSet(), Impala::CmdOptions::GetInstance(), Impala::Core::VideoSet::SegmentationDocument::GetVideoSet(), Impala::Visualization::ImageSetIdxGridScroller::ImSetIdxGrid(), Impala::Core::Database::DataDocument::LoadConcepts(), mAnno, mAnnoSet, mCurConcept, mDataDoc, mImagesSet, mImSetIdxGrid, mImSetIdxGridScroller, mIxsDoc, mSegDoc, mStringSelector, Impala::Core::Database::DataDocument::NrConcepts(), Impala::Core::Database::DataDocument::SetConcept(), Impala::Visualization::ImageSetIdxGrid::SetImageSetIdxGridListener(), Impala::Visualization::ImagesWindow::SetImagesListener(), OglGui::StringSelector::SetStringListener(), and Impala::Visualization::ImageSetIdxGrid::ShowDims(). 00062 { 00063 mAnnoSet = annoSet; 00064 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00065 String fName; 00066 if (mSegDoc) 00067 fName = mSegDoc->GetVideoSet()->GetFilePathAnnotation(annoSet, 00068 false, false); 00069 if (mIxsDoc) 00070 fName = mIxsDoc->GetImageSet()->GetFilePathAnnotation(annoSet, 00071 false, false); 00072 mDataDoc->LoadConcepts(fName); 00073 #else // REPOSITORY_USED 00074 mSegDoc->LoadConcepts(annoSet); 00075 #endif // REPOSITORY_USED 00076 mCurConcept = -1; 00077 mAnno = 0; 00078 mImagesSet = 0; 00079 mImSetIdxGrid = 0; 00080 00081 AddDocListener(this); 00082 00083 mStringSelector = new OglGui::StringSelector(this, wndWidth, 120); 00084 mStringSelector->SetStringListener(this, 0); 00085 for (int i=0 ; i<mDataDoc->NrConcepts() ; i++) 00086 mStringSelector->AddString(mDataDoc->GetConcept(i)); 00087 int heightUsed = 120; 00088 00089 CmdOptions& options = CmdOptions::GetInstance(); 00090 if (!options.GetBool("annoTableIdxGrid",true)) 00091 { 00092 int nrRow = (wndHeight - heightUsed) / (thumbHeight + 6); 00093 mImagesSet = new ImageSet(this, thumbWidth, thumbHeight, viewScale, 00094 nrImOnRow, nrRow); 00095 mImagesSet->ActivateInfoBox(false); 00096 mImagesSet->SetImagesListener(this, 0); 00097 } 00098 else 00099 { 00100 mImSetIdxGridScroller = 00101 new ImageSetIdxGridScroller(this,2,2,wndWidth-4, 00102 wndHeight-heightUsed-12,nrImOnRow); 00103 mImSetIdxGrid = mImSetIdxGridScroller->ImSetIdxGrid(); 00104 mImSetIdxGrid->SetImageSetIdxGridListener(this); 00105 //mImSetIdxGrid->ShowNames(false); 00106 mImSetIdxGrid->ShowDims(false); 00107 } 00108 00109 mDataDoc->SetConcept(0); 00110 }
Here is the call graph for this function:
|