Definition at line 108 of file mainShowImSet.cpp. References Impala::Visualization::ImageSetIdxGrid::AddImageSetIdxs(), OglGui::OglWindow::ConnectTo(), OglGui::Tabs::CreateTab(), OglGui::OglWindow::GetBorderBackground(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::CmdOptions::GetString(), OglGui::OglWindow::H(), Impala::Visualization::ImageSetIdxGridScroller::ImSetIdxGrid(), Impala::Visualization::AppController::Instance(), mAnnotation, mConceptRanking, mGuiMain, mImSetIdxGridScroller, mIxsDoc, mSimSetRank, mSimSetRankSim, mSimSetRankTruth, mTabs, mThumbHeight, mThumbWidth, mViewScale, OglGui::Tabs::SetActiveTab(), OglGui::OglWindow::SetBorderBackground(), OglGui::OglWindow::SetBorderType(), OglGui::Tabs::SetTabsListener(), Impala::Visualization::DataDocumentGui< DataDocT >::StringSelectionEvent(), TAB_ALL, TAB_ANNOTATIONS, TAB_CONCEPTS, TAB_CONCEPTSSIM, TAB_CONCEPTSTRUTH, TAB_MAIN, Impala::Visualization::ImageSetIdxGrid::UpdateLayout(), and OglGui::OglWindow::W(). Referenced by WindowShowImSet(). 00109 { 00110 CmdOptions& options = CmdOptions::GetInstance(); 00111 00112 SetBorderType(-1); 00113 if (!GetBorderBackground()) 00114 SetBorderBackground(oglGUI_BG); 00115 00116 mTabs = new OglGui::Tabs(this, wndWidth, wndHeight); 00117 mTabs->SetTabsListener(this); 00118 00119 OglGui::Window* tab = mTabs->CreateTab("Main", -1, TAB_MAIN); 00120 //int nrImOnRow = wndWidth / (mThumbWidth + 3); 00121 mThumbWidth = 176; 00122 mThumbHeight = 176; 00123 int nrImOnRow = options.GetInt("NrImOnRow", 5); 00124 int height = wndHeight; 00125 mGuiMain = new ShowImSetGuiMain(tab, tab->W(), tab->H(), nrImOnRow, 00126 true, mIxsDoc, TAB_MAIN); 00127 AppController& ctr = AppController::Instance(); 00128 ctr.AddControl((AppControlDoc*) mGuiMain); 00129 00130 tab = mTabs->CreateTab("All", 60, TAB_ALL); 00131 mImSetIdxGridScroller = 00132 new ImageSetIdxGridScroller(tab,0,0,tab->W(),tab->H()); 00133 //mImSetIdxGridScroller->PageUpDownExtra(-2); 00134 mImSetIdxGridScroller->ConnectTo(tab); 00135 ImageSetIdxGrid* idxGrid = mImSetIdxGridScroller->ImSetIdxGrid(); 00136 idxGrid->AddImageSetIdxs(mIxsDoc->GetImageSet()); 00137 idxGrid->UpdateLayout(true); 00138 00139 String conceptAnnotations = options.GetString("conceptAnnotations"); 00140 if (!conceptAnnotations.empty()) 00141 { 00142 tab = mTabs->CreateTab("Annotations", 100, TAB_ANNOTATIONS); 00143 mAnnotation = new AnnotationTableGui 00144 (tab, tab->W(), tab->H(), nrImOnRow, mThumbWidth, mThumbHeight, 00145 mViewScale, mIxsDoc, conceptAnnotations, TAB_ANNOTATIONS); 00146 ctr.AddControl((AppControlDoc*) mAnnotation); 00147 } 00148 00149 if (mConceptRanking) 00150 { 00151 tab = mTabs->CreateTab("Concepts", 82, TAB_CONCEPTS); 00152 mSimSetRank = new SimilarityTableSetRank 00153 (tab, tab->W(), tab->H(), nrImOnRow, mThumbWidth, mThumbHeight, 00154 mViewScale, mIxsDoc, mConceptRanking, false, 00155 conceptAnnotations, false, TAB_CONCEPTS); 00156 ctr.AddControl((AppControlDoc*) mSimSetRank); 00157 00158 tab = mTabs->CreateTab("ConceptsSim", -1, TAB_CONCEPTSSIM); 00159 mSimSetRankSim = new SimilarityTableSetRank 00160 (tab, tab->W(), tab->H(), nrImOnRow, mThumbWidth, mThumbHeight, 00161 mViewScale, mIxsDoc, mConceptRanking, true, 00162 conceptAnnotations, false, TAB_CONCEPTSSIM); 00163 ctr.AddControl((AppControlDoc*) mSimSetRankSim); 00164 00165 if (!conceptAnnotations.empty()) 00166 { 00167 tab = mTabs->CreateTab("ConceptsTruth", 120, TAB_CONCEPTSTRUTH); 00168 mSimSetRankTruth = new SimilarityTableSetRank 00169 (tab, tab->W(), tab->H(), nrImOnRow, mThumbWidth, 00170 mThumbHeight, mViewScale, mIxsDoc, mConceptRanking, false, 00171 conceptAnnotations, true, TAB_CONCEPTSTRUTH); 00172 ctr.AddControl((AppControlDoc*) mSimSetRankTruth); 00173 } 00174 } 00175 00176 // RvB: To start with the directory selected 00177 mGuiMain->StringSelectionEvent(NULL,0,(void*)1); 00178 00179 mTabs->SetActiveTab(0); 00180 }
Here is the call graph for this function:
|