Reimplemented from OglGui::Window. Definition at line 237 of file ImageSet.h. References Impala::Max(), mDistance, mExtraLines, mFirstVisY, Impala::Visualization::ImagesWindow::mImages, mLines, mNrVisibleX, mNrVisibleY, Impala::Visualization::ImagesWindow::mViewHeight, Impala::Visualization::ImagesWindow::mViewWidth, Redraw(), OglGui::Window::ReshapeFunc(), SetFirstVisY(), and UpdateScrollBarRange(). 00238 { 00239 OglGui::Window::ReshapeFunc(w, h); 00240 00241 int visIdx = mFirstVisY * mNrVisibleX; 00242 mNrVisibleX = w / (mViewWidth+mDistance); 00243 mNrVisibleX = Max(mNrVisibleX,1); 00244 mNrVisibleY = h / (mViewHeight+mDistance) + mExtraLines; 00245 mLines = (mImages.size() == 0) 00246 ? 0 : (mImages.size()-1) / mNrVisibleX + 1; 00247 Redraw(); 00248 UpdateScrollBarRange(); 00249 SetFirstVisY((mNrVisibleX == 0) ? 0 : visIdx / mNrVisibleX, false); 00250 }
Here is the call graph for this function:
|