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

void Impala::Visualization::SearchTopicGui::ShowTopic ( int  id  )  [inline]

Definition at line 122 of file SearchTopicGui.h.

References Impala::Visualization::ImagesWindow::AddImage(), Impala::Core::Trec::SearchTopic::GetCurTopicExampleName(), Impala::Core::Trec::SearchTopic::GetCurTopicImageExample(), Impala::Core::Trec::SearchTopic::GetCurTopicNrExamples(), Impala::Core::Trec::SearchTopic::GetCurTopicText(), Impala::MakeString(), mExampleImagesStrip, mSearchTopic, mTopicListener, mTopicListenerData, mTopicNumList, mTopicTextArea, mTopicVideoList, Impala::Visualization::ImagesWindow::RemoveImages(), OglGui::StringSelector::RemoveStrings(), OglGui::StringSelector::SetCurrentString(), OglGui::TextArea::SetText(), Impala::Core::Trec::SearchTopic::TopicSelect(), and Impala::Visualization::SearchTopicGuiListener::TopicSelectionEvent().

Referenced by StringSelectionEvent(), and Impala::Application::WindowTrecSearch::WindowTrecSearch().

00123     {
00124         if (mSearchTopic)
00125         {
00126             mTopicNumList->SetCurrentString(id);
00127             mSearchTopic->TopicSelect(id);
00128             mTopicTextArea->SetText(mSearchTopic->GetCurTopicText());
00129 
00130             if (mTopicVideoList)
00131             {
00132                 mTopicVideoList->RemoveStrings();
00133                 for (int v=0 ; v<mSearchTopic->GetCurTopicNrExamples() ; v++)
00134                     mTopicVideoList->
00135                         AddString(mSearchTopic->GetCurTopicExampleName(v));
00136             }
00137 
00138             mExampleImagesStrip->RemoveImages();
00139             for (int i=0 ; i<mSearchTopic->GetCurTopicNrExamples() ; i++)
00140             {
00141                 String name = String("Example ") + MakeString(i);
00142                 Core::Array::Array2dVec3UInt8* im;
00143                 if (im = mSearchTopic->GetCurTopicImageExample(i, true))
00144                     mExampleImagesStrip->AddImage(im, "Direct", name, true);
00145             }
00146             if (mTopicListener)
00147                 mTopicListener->TopicSelectionEvent(this,id,mTopicListenerData);
00148         }
00149     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:46:01 2010 for ImpalaSrc by  doxygen 1.5.1