Definition at line 300 of file WindowTimeLine.h. References OglGui::ZoomShiftRuler::mAxisY, mDrawLineFlag, mLineColor, mLineStipple, mOffX, mOffY, mShowAtTickSpan, OglGui::ZoomShiftRuler::mTickSpan, mTimes, mWindows, and OglGui::ZoomShiftRuler::Unit2Pixel(). Referenced by DisplayFunc(). 00301 { 00302 SetStipple(mLineStipple); 00303 for (int i=0; i<mWindows.size(); i++) 00304 { 00305 long showAtSpan = mShowAtTickSpan[i]; 00306 SetSolidLineColor(mLineColor[i]); 00307 if (showAtSpan != -1 && mTickSpan > showAtSpan) 00308 { 00309 mWindows[i]->SetVisible(false); 00310 glPointSize(3); 00311 int x = Unit2Pixel(mTimes[i]); 00312 DrawPoint(x, mAxisY+mOffY[i]); 00313 if (mDrawLineFlag) 00314 DrawLine(x, mAxisY, x, mAxisY+mOffY[i]); 00315 glPointSize(1); 00316 } 00317 else 00318 { 00319 int x, y, w, h; 00320 mWindows[i]->GetDimensions(x,y,w,h); 00321 mWindows[i]->SetVisible(true); 00322 x = Unit2Pixel(mTimes[i]); 00323 mWindows[i]->SetDimensions(x-w/2+mOffX[i],mAxisY+mOffY[i],w,h); 00324 if (mDrawLineFlag) 00325 DrawLine(x, mAxisY, x+mOffX[i], mAxisY+mOffY[i]); 00326 } 00327 } 00328 SetStipple((short)oglSolid); 00329 }
Here is the call graph for this function:
|