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

void Impala::Visualization::AnnoPUNS::Init ( int  w,
int  h,
int  imW,
int  imH,
SegmentationDocument segDoc,
VideoAnnotations vidAnnos 
) [inline, private]

Definition at line 187 of file AnnoPUNS.h.

References Impala::Visualization::AppControlDoc::AddDocListener(), OglGui::OglWindow::ConnectTo(), Impala::CmdOptions::GetBool(), Impala::Core::VideoSet::SegmentationDocument::GetImSetKeyframes(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::Core::VideoSet::SegmentationDocument::GetKeyframes(), Impala::Visualization::ImageSetIdxGridScroller::ImSetIdxGrid(), mIdxGridTotalTxt, mImageSetWnd, mImSetIdxGrid, mImSetIdxGridScroller, mKeyframes, mKeyframeSet, mNrToShow, mPunsOnly, mSegDoc, mShowNextFrom, mStartIm, mVideoAnnotations, mVideoCheckBox, mVideoText, OglGui::StaticText::SetAlign(), OglGui::OglWindow::SetBorderType(), OglGui::CheckBox::SetCheckBoxListener(), Impala::Visualization::ImageSetIdxGrid::SetImageSetIdxGridListener(), Impala::Visualization::ShowNextFromControl::SetListener(), Impala::Visualization::PunsOnlyControl::SetListener(), and Impala::Visualization::ImageSetIdxGrid::ShowDims().

00189     {
00190         CmdOptions& options = CmdOptions::GetInstance();
00191         mNrToShow = options.GetInt("annoNrToShow", 200);
00192         int punsNrToShow = options.GetInt("annoNrToShowPUNS", -1);
00193         if (punsNrToShow != -1)
00194             mNrToShow = punsNrToShow;
00195 
00196         mSegDoc = segDoc;
00197         mVideoAnnotations = vidAnnos;
00198         mKeyframeSet = mSegDoc->GetImSetKeyframes(false);
00199         mKeyframes   = mSegDoc->GetKeyframes();
00200 
00201         mVideoCheckBox = new OglGui::CheckBox(this, 100, 20, "OneVideo", false);
00202         mVideoCheckBox->SetCheckBoxListener(this, 0);
00203         mVideoText = new OglGui::TextArea(this, w/2 - 110, 20, "empty");
00204         mVideoText->SetBorderType(0);
00205 
00206         new OglGui::Strut(this,2000,1);
00207         mPunsOnly = new PunsOnlyControl(this, 446, 20, 15);
00208         mPunsOnly->SetListener(this);
00209 
00210         mIdxGridTotalTxt = 0;
00211         mStartIm = 0;
00212         mShowNextFrom = 0;
00213         mImageSetWnd = 0;
00214         mImSetIdxGrid = 0;
00215         if (!options.GetBool("annoPunsIdxGrid",false))
00216         {
00217             mShowNextFrom = new ShowNextFromControl(this, 350, 20, mNrToShow);
00218             mShowNextFrom->SetListener(this);
00219             mImageSetWnd = new Visualization::ImageSet(this,imW,imH,1.,7,5);
00220             mImageSetWnd->SetImagesListener(this, 0);
00221             mImageSetWnd->ConnectTo(this);
00222         }
00223         else
00224         {
00225             mIdxGridTotalTxt = new OglGui::StaticText(this, 160, 20, "Total:");
00226             mIdxGridTotalTxt->SetAlign(oglLeftAlign);
00227             mImSetIdxGridScroller =
00228                 new ImageSetIdxGridScroller(this,2,2,w-4,h-60,7);
00229             mImSetIdxGrid = mImSetIdxGridScroller->ImSetIdxGrid();
00230             mImSetIdxGrid->SetImageSetIdxGridListener(this);
00231             mImSetIdxGrid->ShowDims(false);
00232             mImSetIdxGridScroller->ConnectTo(this);
00233             mNrToShow = 10000000;
00234         }
00235 
00236         AddDocListener(this);
00237     }

Here is the call graph for this function:


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