Reimplemented from OglGui::Window. Definition at line 208 of file ImageStrip.h. References mDistance, mExtraView, mFirstVis, Impala::Visualization::ImagesWindow::mImages, mImSteps, mNrViews, mScrollBar, Impala::Visualization::ImagesWindow::mViewWidth, Redraw(), OglGui::Window::ReshapeFunc(), OglGui::ScrollBar::SetRange(), and Impala::Visualization::ImagesWindow::UpdateViewWithImage(). Referenced by MouseFunc(). 00209 { 00210 int totalRange, pageSize; 00211 int n = (w-6) / ((mViewWidth) + mDistance) + mExtraView; 00212 if (n != mNrViews) 00213 { 00214 mNrViews = n; 00215 DeleteViewers(); 00216 // RvB: After quite a lot of debugging!!!!! 00217 // Making sure that we actually get the nr of viewers we want 00218 for (int i=0 ; i<mNrViews; i++) 00219 UpdateViewWithImage(i, mFirstVis); 00220 00221 Redraw(); 00222 totalRange = mImages.size() * mImSteps; 00223 if ((pageSize = (mNrViews - mExtraView) * mImSteps) < 1) 00224 pageSize = 1; 00225 mScrollBar->SetRange(totalRange, pageSize); 00226 } 00227 OglGui::Window::ReshapeFunc(w, h); 00228 }
Here is the call graph for this function:
|