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

void Impala::Visualization::GUI::ShotResultPreviewBar::GeneralInit ( int  type,
int  nrIm,
int  space,
Segmentation shots,
Keyframes keyframes,
int  thumbW,
int  thumbH,
double  viewscale 
) [inline, private]

Definition at line 56 of file ShotResultPreviewBar.h.

References Impala::Visualization::GUI::PreviewBar::debug, OglGui::OglWindow::H(), mKeyframes, Impala::Visualization::GUI::PreviewBar::mName, mNrImOnRow, Impala::Visualization::GUI::PreviewBar::mPreviewImages, mShots, Impala::Visualization::ImagesWindow::SetImagesListener(), Impala::Visualization::GUI::PreviewBar::SetType(), and OglGui::OglWindow::W().

Referenced by Init().

00059     {
00060         SetType(type);
00061 
00062         mPreviewImages  = NULL;
00063         mShots          = shots;
00064         mKeyframes      = keyframes;
00065         mNrImOnRow      = 10; // Dummy default
00066 
00067         // images:
00068         if (nrIm == 0)
00069             return;
00070 
00071         if (H() < thumbH) // adjusting scale to fit
00072             viewscale = (H()-2.0) / thumbH;
00073 
00074         mNrImOnRow = (W()-(space+4)) / (thumbW * viewscale) + 1;
00075 
00076         Window *wnd = new OglGui::Window(this, space, 0, W()-(space+4), H());
00077         if (debug)
00078             std::cout << " Preview: " << mName << ": " << thumbW << "x" <<
00079                          thumbH << "@" << viewscale << ", nr " <<
00080                          mNrImOnRow << std::endl;
00081 
00082         mPreviewImages = new Visualization::ImageSet(wnd, thumbW, thumbH,
00083                                                      viewscale,mNrImOnRow,1,0);
00084         mPreviewImages->ActivateInfoBox(false);
00085         mPreviewImages->SetImagesListener(this, 0);
00086     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:52:26 2010 for ImpalaSrc by  doxygen 1.5.1