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

void Impala::Visualization::SimilarityTimeLineVideo::BuildConceptControl ( Window parent,
int  x,
int  y,
int  w,
int  h,
SimilarityTableSet simSet,
int  options 
) [inline, protected]

Definition at line 454 of file SimilarityTimeLineVideo.h.

References OglGui::CheckBoxValueBars::AddChoice(), OglGui::CheckBoxValueBars::AddItem(), OglGui::CheckBoxValueBar::ChBox(), OglGui::CheckBoxValueBars::CheckBoxWidth(), OglGui::OglWindow::ConnectTo(), OglGui::ScrollWnd::ContentHolder(), OglGui::TitledWindow::ContentPane(), Impala::Core::Table::SimilarityTableSet::GetNames(), Impala::Visualization::SimilarityTimeLine::GetSimColor(), OglGui::OglWindow::H(), mAvgFramesVSB, mChBoxValBars, mCheckAllBtn, mClearAllBtn, mOptions, mPercMaximVSB, mPercMeanVSB, mShowClassifyCB, mSimTimeLine, mStatistics, mTitledControl, OglGui::ScrollWnd::ReplaceContentPane(), OglGui::Button::SetButtonListener(), OglGui::CheckBox::SetCheckBoxListener(), OglGui::OglWindow::SetRoundness(), OglGui::ValueScrollBar::SetValueScrollBarListener(), OglGui::TOLEFTRIGHT, and OglGui::OglWindow::W().

Referenced by Init().

00456     {
00457         mTitledControl = new TitledWindow(parent,x,y,w,h,"Concept Control");
00458         Window* pane = mTitledControl->ContentPane();
00459         int paneW = pane->W();
00460         int paneH = pane->H();
00461         ScrollWnd* sWnd = new ScrollWnd(pane,0,96,paneW,paneH-96,true,0,1);
00462         sWnd->ConnectTo(pane);
00463 
00464         mChBoxValBars = new CheckBoxValueBars(sWnd->ContentHolder(),0,0,
00465                                               sWnd->ContentHolder()->W(),20,3);
00466         sWnd->ReplaceContentPane(mChBoxValBars);
00467         mChBoxValBars->ConnectTo(sWnd->ContentHolder(),OglGui::TOLEFTRIGHT);
00468         mChBoxValBars->CheckBoxWidth(160);
00469 
00470         mOptions = options;
00471         mChBoxValBars->AddChoice("");
00472         std::vector<std::string> names;
00473         if (simSet)
00474             names = simSet->GetNames();
00475         else
00476             names.push_back("<empty>");
00477         for (int i=0; i<names.size(); i++)
00478         {
00479             CheckBoxValueBar* chBoxValB =
00480                 mChBoxValBars->AddItem(names[i],mSimTimeLine->GetSimColor(i));
00481             chBoxValB->ChBox()->SetCheckBoxListener(this,i);
00482             if (i==0)
00483                 chBoxValB->Selected(true);
00484             mChBoxValBars->AddChoice(names[i]);
00485             StaticText* stat = new StaticText(chBoxValB,paneW-100,0,60,20,"");
00486             mStatistics.push_back(stat);
00487         }
00488         
00489         mCheckAllBtn =
00490             new Button(pane,0,72,68,22,"All",BEV_ETCHED,true);
00491         mClearAllBtn =
00492             new Button(pane,72,72,68,22,"None",BEV_ETCHED,true);
00493 
00494         mCheckAllBtn->SetButtonListener(this);
00495         mClearAllBtn->SetButtonListener(this);
00496 
00497         mShowClassifyCB = new CheckBox(pane,170,72,160,22,"Show Classification",
00498                                        true,BEV_ETCHED);
00499         mShowClassifyCB->SetRoundness(0,0,0,0);
00500         mShowClassifyCB->SetCheckBoxListener(this);
00501 
00502         (new StaticText(pane,0,48,100,22,"Avg Window"))
00503             ->SetAlign(oglLeftAlign);
00504         mAvgFramesVSB =
00505             new ValueScrollBar(pane,100,48,pane->W()-104,22,2,126,12);
00506         mAvgFramesVSB->SetValueScrollBarListener(this);
00507         (new StaticText(pane,0,24,100,22,"Perc Max"))
00508             ->SetAlign(oglLeftAlign);
00509         mPercMaximVSB =
00510             new ValueScrollBar(pane,100,24,pane->W()-104,22,20,98,66);
00511         mPercMaximVSB->SetValueScrollBarListener(this);
00512         (new StaticText(pane,0,0,100,22,"Perc Max-Avg"))
00513             ->SetAlign(oglLeftAlign);
00514         mPercMeanVSB =
00515             new ValueScrollBar(pane,100,0,pane->W()-104,22,4,98,25);
00516         mPercMeanVSB->SetValueScrollBarListener(this);
00517     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:48:49 2010 for ImpalaSrc by  doxygen 1.5.1