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

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

Definition at line 127 of file mainTrecResult.cpp.

References OglGui::StringSelector::AddString(), Impala::Core::Trec::SearchResult::Describe(), Impala::Core::Trec::SearchResult::GetAveragePrecision(), Impala::MakeString(), mApText, mImageStrip, mPlayBut, mResultWnd, mSearchResult, mThumbHeight, mThumbWidth, mViewScale, Impala::Core::Trec::SearchResult::NrElements(), OglGui::OglWindow::SetBackground(), OglGui::Button::SetButtonListener(), and OglGui::StringSelector::SetStringListener().

Referenced by WindowTrecResult().

00128     {
00129         SetBackground(0xffd2c799);
00130         mImageStrip = new ImageStrip(this, mThumbWidth, mThumbHeight,
00131                                      mViewScale, 5);
00132         mResultWnd = new OglGui::StringSelector(this, 400, 20*20);
00133         mResultWnd->SetStringListener(this);
00134         double ap = mSearchResult.GetAveragePrecision();
00135         std::string apString = std::string("ap = ") + MakeString(ap);
00136         mApText = new OglGui::TextArea(this, 100, 1*20, apString);
00137         mPlayBut = new OglGui::Button(this, 100, 20, "play");
00138         mPlayBut->SetButtonListener(this);
00139 
00140         for (int i=0 ; i<mSearchResult.NrElements() ; i++)
00141             mResultWnd->AddString(mSearchResult.Describe(i));
00142     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:38:10 2010 for ImpalaSrc by  doxygen 1.5.1