Definition at line 140 of file ScreenBrowser.h. References Impala::Visualization::AppController::AddControl(), Impala::Visualization::RotorBrowser::RotorBrowserGUI::AddRotorBrowserListener(), OglGui::SixButtonCross::Btn(), BTN_CROSS, OglGui::OglWindow::ConnectTo(), DoControlsPane(), DoQueryPane(), Impala::Application::IDash::ScreenBase::Engine(), Impala::Application::IDash::ScreenBase::GetAppControlID(), Impala::CmdOptions::GetBool(), Impala::CmdOptions::GetInstance(), ILOG_DEBUG, Impala::Application::IDash::TrecEngine::ImHeight(), Impala::Application::IDash::TrecEngine::ImScale(), Impala::Application::IDash::TrecEngine::ImWidth(), Impala::Visualization::AppController::Instance(), mBrowserPane, mControlPane, mDetailPane, mEnableQueryPane, mQueryPane, mRotorBrowserGUI, mShotDetails, OglGui::Window::ScaleChildren(), Impala::Application::IDash::TrecEngine::SegmentationDocument(), Impala::Application::IDash::ScreenBase::SetAsBox(), OglGui::Button::SetButtonListener(), Impala::Visualization::GUI::ShotDetailSidebar::SetListener(), Impala::Visualization::RotorBrowser::RotorBrowserGUI::SetShowMinimap(), Impala::Visualization::GUI::ShotDetailSidebar::SetShowSimilarity(), OglGui::SixButtonCross::SetTexts(), Impala::Application::IDash::TrecEngine::ThreadSet(), OglGui::TOBOTTOM, OglGui::TOLEFTRIGHT, OglGui::TORIGHT, OglGui::TOTOP, OglGui::TOTOPBOTTOM, OglGui::OglWindow::WndHeight(), and OglGui::OglWindow::WndWidth(). Referenced by ScreenBrowser(). 00141 { 00142 ILOG_DEBUG("constructing screen Browser"); 00143 mEnableQueryPane = enableQueryPane; 00144 00145 int queryheight = 100; 00146 int controlsheight = 50; 00147 //int sidewidth = Engine()->ImWidth() + 12; 00148 int sidewidth = Engine()->ImWidth() + 40; 00149 00150 // QUERY PANE: 00151 #ifdef AS_TODS_BROWSER 00152 mEnableQueryPane = false; 00153 #endif 00154 00155 if (mEnableQueryPane) 00156 { 00157 mQueryPane = new Window(this, 2, WndHeight() - queryheight - 2, WndWidth() - 2*2, queryheight); 00158 DoQueryPane(mQueryPane); 00159 //mQueryPane->ConnectTo(this, T2T|B2T|R2R|L2L); 00160 mQueryPane->ConnectTo(this, OglGui::TOTOP|OglGui::TOLEFTRIGHT); 00161 } else { 00162 mQueryPane = 0; 00163 queryheight = 0; 00164 } 00165 00166 int middlePanesHeight = WndHeight() - controlsheight - queryheight - (queryheight > 0 ? 4*2 : 3*2); 00167 00168 // BROWSER PANE: 00169 mBrowserPane = new Window(this, 2, controlsheight + 2*2, WndWidth() - sidewidth - 3*2, middlePanesHeight); 00170 00171 SetAsBox(mBrowserPane); 00172 00173 bool enableMinimap = CmdOptions::GetInstance().GetBool("enableMinimap"); 00174 00175 mRotorBrowserGUI = new Visualization::RotorBrowser::RotorBrowserGUI( 00176 mBrowserPane, mBrowserPane->WndWidth(), mBrowserPane->WndHeight(), 00177 Engine()->ThreadSet(), Engine()->SegmentationDocument(), 00178 Engine()->ImWidth(), Engine()->ImHeight(), Engine()->ImScale(), 00179 GetAppControlID(), false, enableMinimap); 00180 //mRotorBrowserGUI->SetVisible(false); 00181 00182 mRotorBrowserGUI->ScaleChildren(); 00183 mRotorBrowserGUI->ConnectTo(mBrowserPane); 00184 mRotorBrowserGUI->AddRotorBrowserListener(this); 00185 AppController::Instance().AddControl(mRotorBrowserGUI); 00186 mBrowserPane->ConnectTo(this); 00187 00188 mRotorBrowserGUI->SetShowMinimap(false); 00189 00190 // SHOT DETAIL SIDE PANE: 00191 00192 mDetailPane = new Window(this, WndWidth() - sidewidth - 2, controlsheight + 2*2, sidewidth, middlePanesHeight); 00193 SetAsBox(mDetailPane); 00194 00195 mShotDetails = new Visualization::GUI::ShotDetailSidebar( 00196 mDetailPane, 0, 0, mDetailPane->WndWidth(), mDetailPane->WndHeight(), 00197 Engine()->ImWidth(), Engine()->ImHeight(), 00198 Engine()->ThreadSet(), Engine()->SegmentationDocument()); 00199 mShotDetails->ConnectTo(mDetailPane); 00200 mShotDetails->SetListener(this); 00201 00202 // RvB Comment mShotDetails->SetShowSimilarity(false); 00203 mShotDetails->SetShowSimilarity(true); 00204 00205 //mDetailPane->ConnectTo(this, L2R|R2R|T2T|B2B); 00206 mDetailPane->ConnectTo(this, OglGui::TORIGHT|OglGui::TOTOPBOTTOM); 00207 // mAppControlDoc->AddDocListener(mShotDetails); 00208 // oglSys.SetAlwaysDraw(mShotDetails->GetOGLWND(), 1); // TODO: hack. 00209 00210 // CONTROL BAR PANE: 00211 mControlPane = new Window(this, 2, 2, WndWidth() - 4, controlsheight); 00212 DoControlsPane(mControlPane); 00213 mControlPane->ConnectTo(this, OglGui::TOLEFTRIGHT|OglGui::TOBOTTOM); 00214 OglGui::SixButtonCross* sixBtnCross = new OglGui::SixButtonCross(this,2,controlsheight+4,200,200); 00215 sixBtnCross->SetTexts("Last","First","Left","Right","Up","Down"); 00216 for (int i=0 ; i<6 ; i++) 00217 sixBtnCross->Btn(i)->SetButtonListener(this, (void*)(BTN_CROSS + i)); 00218 // RepositionViewports(); 00219 // ScaleChildren(); 00220 00221 }
Here is the call graph for this function:
|