Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Application::WindowAnnoVidSet::BuildGUI ( int  wndWidth,
int  wndHeight 
) [inline, private]

Definition at line 75 of file mainAnnoVidSet.cpp.

References Impala::Visualization::AppController::AddControl(), Impala::Visualization::AppControlDoc::AddDocListener(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), OglGui::Tabs::CreateTab(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), Impala::Core::ImageSet::ImageSet::GetImage(), Impala::Core::VideoSet::SegmentationDocument::GetImSetKeyframes(), Impala::Core::VideoSet::SegmentationDocument::GetImSetStills(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), OglGui::OglWindow::GetOGLWND(), Impala::CmdOptions::GetString(), OglGui::OglWindow::H(), Impala::Visualization::AppController::Instance(), mSegDoc, mSegDocAnno, mSegDocStills, mTabs, mViewScale, OglGui::Tabs::SetActiveTab(), OglGui::OglWindow::SetBackground(), OglGui::Tabs::SetTabsListener(), Impala::Visualization::DataDocumentGui< DataDocT >::StringSelectionEvent(), TAB_ANNO, TAB_STILLS, OglGui::OglWindow::W(), and OglGui::Window::Window().

Referenced by WindowAnnoVidSet().

00076     {
00077         CmdOptions& options = CmdOptions::GetInstance();
00078         //SetBackground(0xffd2c799);
00079         SetBackground(oglGUI_BG);
00080         mTabs = new OglGui::Tabs(this, wndWidth, wndHeight);
00081         mTabs->SetTabsListener(this);
00082         OglGui::Window* tab;
00083         AppController& ctr = AppController::Instance();
00084 
00085         typedef Core::VideoSet::SegmentationDocument SegmentationDocument;
00086         tab = mTabs->CreateTab("Anno", -1, TAB_ANNO);
00087         std::string conceptSet = options.GetString("conceptSet");
00088         int maxAnno = options.GetInt("maxAnnoPerVideo");
00089         mSegDocAnno = new SegmentationDocumentGuiAnno
00090             (tab, tab->W(), tab->H(), mSegDoc, conceptSet, maxAnno, TAB_ANNO);
00091         ctr.AddControl((AppControlDoc*) mSegDocAnno);
00092 // RvB: To start with the directory selected
00093 mSegDocAnno->StringSelectionEvent(NULL,0,(void*)1);
00094 
00095         if (mSegDoc->GetImSetStills())
00096         {
00097             Core::ImageSet::ImageSet* imSet = mSegDoc->GetImSetKeyframes(false);
00098             Core::Array::Array2dVec3UInt8* im = imSet->GetImage(0);
00099             int thumbWidth = im->CW() / 2;
00100             int thumbHeight = im->CH() / 2;
00101             delete im;
00102             Window* wnd2 = new Window(wndWidth+6, 0, wndWidth, wndHeight);
00103             wnd2->SetControlId(-11);
00104             wnd2->SetBackground(0xffd2c799);
00105             mSegDocStills = new SegmentationDocumentGuiStills
00106                 (wnd2, wndWidth, wndHeight, 4, thumbWidth,
00107                  thumbHeight, mViewScale, true, true, mSegDoc, TAB_STILLS);
00108             mSegDocAnno->AddDocListener(mSegDocStills);
00109             oglSys.SetAlwaysDraw(mSegDocStills->GetOGLWND(), 1);
00110         }
00111 
00112         mTabs->SetActiveTab(0);
00113     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:14:09 2011 for ImpalaSrc by  doxygen 1.5.1