Definition at line 114 of file KeyframeResultBar.h. References Impala::Visualization::ImagesWindow::AddImage(), OglGui::B2T, OglGui::OglWindow::ConnectTo(), DoRankPlot(), Impala::Core::ImageSet::ImageSet::GetImage(), OglGui::L2L, mBarListener, mKeyframes, mKeyResults, mName, mPreviewImages, mSimPlotView, NiceName(), OglGui::StaticText::SetAlign(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::Window::SetDisableOGLViewKeys(), OglGui::Window::SetDisableOGLViewMouse(), Impala::Visualization::ImagesWindow::SetImagesListener(), OglGui::OglWindow::SetRoundness(), OglGui::T2T, and OglGui::Window::Window(). 00117 { 00118 mName = name; 00119 mKeyResults = results; 00120 mKeyframes = keyframes; 00121 mBarListener = NULL; 00122 mPreviewImages = NULL; 00123 mSimPlotView = NULL; 00124 00125 SetRoundness(4,4,4,4); 00126 SetBorderType(4); 00127 SetBorderFillShaded(2); 00128 00129 StaticText *t = new StaticText(this,2,wndH-17,wndW-100,17,NiceName()); 00130 t->SetAlign(oglLeftAlign, oglCenterAlign); 00131 t->ConnectTo(this, L2L|T2T|B2T); 00132 00133 // images: 00134 if (results.size() == 0) 00135 return; 00136 00137 int nrImOnRow = (int)(wndW / ((double)thumbW * viewscale)); 00138 int nrRows = (int)((wndH-18) / ((double)thumbH * viewscale)); 00139 00140 if (nrRows == 0) nrRows = 1; 00141 00142 Window *wnd = new Window(this, 3, 2, wndW-6, wndH-19); 00143 00144 mPreviewImages = new Visualization::ImageSet(wnd, 1, 1, thumbW, thumbH, 00145 viewscale,nrImOnRow,nrRows); 00146 mPreviewImages->ActivateInfoBox(false); 00147 mPreviewImages->SetImagesListener(this, 0); 00148 // RvB: Added because views inside seem to be corrupt 00149 // and cause crash when doing standard viewSys.view2d stuff 00150 mPreviewImages->SetDisableOGLViewKeys( true ); 00151 mPreviewImages->SetDisableOGLViewMouse( true ); 00152 00153 int i=0; 00154 KeyframeResultList::iterator shot; 00155 for (shot = results.begin(); shot != results.end(); shot++) 00156 { 00157 int frameID = shot->keyframeid; 00158 if (frameID >= 0) 00159 mPreviewImages->AddImage(imSet->GetImage(frameID), "Direct", 00160 "", true); 00161 if (++i >= nrImOnRow * nrRows) 00162 break; 00163 } 00164 DoRankPlot(wndW, wndH); 00165 }
Here is the call graph for this function:
|