Definition at line 331 of file WindowTimeLine.h. References OglGui::OglWindow::H(), HideView(), LoadViewImage(), OglGui::ZoomShiftRuler::mAxisY, mMaxVisibleImages, OglGui::ZoomShiftRuler::mTickSpan, mViewDrawLineFlag, mViewImIds, mViewLineColor, mViewLineStipple, mViewOffX, mViewOffY, mViews, mViewShowAtTickSpan, mViewTimes, OglGui::ZoomShiftRuler::Unit2Pixel(), ViewIdxPointLine(), and OglGui::OglWindow::W(). Referenced by DisplayFunc(). 00332 { 00333 SetStipple(mViewLineStipple); 00334 int nrVisible = 0; 00335 for (int i=0; i<mViews.size(); i++) 00336 { 00337 int x = Unit2Pixel(mViewTimes[i]); 00338 00339 SetSolidLineColor(mViewLineColor[i]); 00340 long showAtSpan = mViewShowAtTickSpan[i]; 00341 if (showAtSpan != -1 && mTickSpan > showAtSpan) 00342 ViewIdxPointLine(i, x, x, true, mViewDrawLineFlag); 00343 else 00344 { 00345 int y, w, h, wW = W(); 00346 int x2 = x + mViewOffX[i]; 00347 OGLVIEW* view = mViews[i]; 00348 viewSys.SetTags(view, visibleTag); 00349 viewSys.GetDimensions(view, 0, &y, &w, &h); 00350 viewSys.SetDimensions(view, x2-w/2, mAxisY+mViewOffY[i], w, h); 00351 00352 if (mViewDrawLineFlag && (x>0 && x<wW && x2>0 && x2<wW)) 00353 DrawLine(x, mAxisY, x2, mAxisY+mViewOffY[i]); 00354 if (x2+w/2<0 || x2-w/2>wW || y+h<0 || y>H()) 00355 { 00356 HideView(view); 00357 continue; 00358 } 00359 if (++nrVisible > mMaxVisibleImages) 00360 { 00361 ViewIdxPointLine(i, x2, x, true, false); 00362 continue; 00363 } 00364 if (view->im || (view->im=LoadViewImage(mViewImIds[i]))) 00365 { 00366 view->zoomX = view->h / (float) view->im->w; 00367 view->zoomY = view->w / (float) view->im->h; 00368 } 00369 } 00370 } 00371 SetStipple((short)oglSolid); 00372 }
Here is the call graph for this function:
|