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

void Impala::Visualization::SimilarityTimeLineVideo::Init ( int  w,
int  h,
int  options,
SimilarityTableSet simSet 
) [inline, private]

Definition at line 520 of file SimilarityTimeLineVideo.h.

References BuildConceptControl(), OglGui::OglWindow::ConnectTo(), OglGui::TitledWindow::ContentPane(), OglGui::OglWindow::GetOGLWND(), OglGui::OglWindow::H(), mAvgFramesVSB, mAxisThumb, mCenterNeedle, mCenterNeedleOnPlay, mChBoxValBars, mDocScroller, mFrameNrTxt, mOptions, mPercMaximVSB, mPercMeanVSB, mSimTimeLine, mTimeLineRuler, mTitledTimeLine, mTitledVideoPlayer, mVideoPlayer, mVideoPlayerWithButtons, mViewAnimator, Impala::Visualization::VideoPlayer::NormalSpeed(), OglGui::TexturedViewAnimator::OglView3D(), Impala::Visualization::VideoPlayerWithButtons::Player(), OglGui::StaticText::SetAlign(), OglGui::SizableWindow::SetAllowHighlight(), OglGui::SizableWindow::SetAllowMoveDirections(), OglGui::SizableWindow::SetAllowSizeDirections(), OglGui::OglWindow::SetBorderBackground(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::SizableWindow::SetBorderType(), OglGui::OglWindow::SetBorderType(), OglGui::WindowDocScroller::SetDocWindow(), OglGui::SizableWindow::SetHighLightBorderType(), Impala::Visualization::SimilarityTimeLine::SetListener(), OglGui::SizableWindow::SetMoveCursor(), OglGui::SizableWindow::SetMoveFeedback(), OglGui::ZoomShiftRuler::SetNeedleColor(), OglGui::ZoomShiftRuler::SetNeedleUpDownHeight(), SetSimilarityTableSet(), OglGui::ZoomShiftRuler::ShowNeedle(), OglGui::TitledWindow::TitleText(), OglGui::TOLEFTRIGHT, OglGui::TORIGHT, OglGui::TOTOP, Impala::Visualization::TimeLineViewStrip::ViewStripShow(), and OglGui::OglWindow::W().

00521     {
00522         int vpH   = 288 + 32 + 8; // videoH + Buttons + margin
00523 
00524         mChBoxValBars = 0;
00525         mAvgFramesVSB = 0;
00526         mPercMaximVSB = 0;
00527         mPercMeanVSB  = 0;
00528 
00529         mTitledVideoPlayer = new TitledWindow(this,4,4,352+8,vpH+32,"");
00530         Window* pane  = mTitledVideoPlayer->ContentPane();
00531         int     paneW = pane->W();
00532         int     paneH = pane->H();
00533 
00534         mVideoPlayerWithButtons =
00535             new VideoPlayerWithButtons(pane,0, 0, paneW, vpH);
00536         mVideoPlayerWithButtons->ConnectTo(pane);
00537         mVideoPlayer = mVideoPlayerWithButtons->Player();
00538         mVideoPlayer->NormalSpeed(true);
00539 
00540         Window* videoTitle = mTitledVideoPlayer->TitleText();
00541         mFrameNrTxt = new StaticText(videoTitle,paneW-90,2,60,20, "");
00542         mFrameNrTxt->SetAlign(oglLeftAlign,oglCenterAlign);
00543         mFrameNrTxt->ConnectTo(videoTitle,OglGui::TORIGHT);
00544 
00545         mTitledTimeLine = new TitledWindow(this,368,4,w-372,vpH+32,"TimeLine");
00546         pane = mTitledTimeLine->ContentPane();
00547         paneW = pane->W();
00548         paneH = pane->H();
00549 
00550         mTimeLineRuler =
00551             new SimilarityTimeLine(pane,0,paneH-32,paneW, 30, 0);
00552         mTimeLineRuler->ConnectTo(pane,OglGui::TOLEFTRIGHT | OglGui::TOTOP);
00553         mTimeLineRuler->SetListener(this, (void*) mVideoPlayer);
00554         mTimeLineRuler->SetBorderType(BEV_ETCHED);
00555         mTimeLineRuler->SetBorderFillShaded(2);
00556         mTimeLineRuler->ShowNeedle(true);
00557         mTimeLineRuler->SetNeedleUpDownHeight(100,100);
00558         mTimeLineRuler->SetNeedleColor(oglRED);
00559         mTimeLineRuler->ViewStripShow(false);
00560 
00561         int nViews = (options & 4) ? 600 : 0;
00562         mDocScroller = new WindowDocScroller(pane,0,0,paneW,paneH-34,1);
00563         mDocScroller->ConnectTo(pane);
00564         mSimTimeLine =
00565             new SimilarityTimeLine(mDocScroller,0,16,paneW,paneH-50,nViews);
00566         mDocScroller->SetDocWindow(mSimTimeLine,mSimTimeLine,true);
00567 
00568         mSimTimeLine->SetBorderType(-1);
00569         mSimTimeLine->SetBorderBackground(0xe0303030);
00570         //mSimTimeLine->SetBorderFillShaded(2);
00571 
00572         mSimTimeLine->SetListener(this, (void *) mVideoPlayer);
00573 
00574         mAxisThumb = new SizableWindow(mSimTimeLine,paneW-12,10,8,20);
00575         mAxisThumb->SetBorderType(BEV_ETCHED);
00576         mAxisThumb->SetBorderBackground(oglGREEN);
00577         mAxisThumb->SetBorderFillShaded(2);
00578         mAxisThumb->SetAllowHighlight(false);
00579         mAxisThumb->SetHighLightBorderType(BEV_RIDGE);
00580         mAxisThumb->SetMoveFeedback(true);
00581         mAxisThumb->SetMoveCursor(oglCursorN);
00582 
00583         mAxisThumb->ConnectTo(mSimTimeLine,OglGui::TORIGHT);
00584         mAxisThumb->SetAllowSizeDirections(15,false);
00585         mAxisThumb->SetAllowMoveDirections(10,false);
00586 
00587         mVideoPlayer->SetVideoPlayerListener(this,0);
00588 
00589         mOptions = options;
00590         mCenterNeedle = true;
00591         mCenterNeedleOnPlay = true;
00592 
00593         //ExtraTimeLine(this,368,408,w-372,182,"Extra TimeLine");
00594 
00595         if (!(options & 8)) // NO_CONCEPT_CONTROL
00596             BuildConceptControl(this,4,vpH+38,360,450,simSet,options);
00597 
00598         if (options & 16)
00599         {
00600             OGLVIEW* oglView = mVideoPlayer->OglView();
00601             int y = vpH+430;
00602             int h = H()-y;
00603             mViewAnimator =
00604                 new OglGui::TexturedViewAnimator(this,4,vpH+430,h,h,oglView);
00605             view3DSys.SetZoom(mViewAnimator->OglView3D(), 1.6f, 1.6f);
00606             oglSys.OGLStart(mViewAnimator->GetOGLWND());
00607         }
00608 
00609 
00610         SetSimilarityTableSet(simSet);
00611     }

Here is the call graph for this function:


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