Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void OglGui::AlertTimeLine::DrawTicks ( bool  detailed = true,
int  detailResolution = 10 
) [inline, protected]

Definition at line 219 of file AlertTimeLine.h.

References ComputeX(), GetTimeUnits(), mCurrentTime, mLineY, OglGui::OglWindow::mOglWnd, and mTimeSpan.

Referenced by DisplayFunc().

00220     {
00221         int     h, m, s;
00222         long    tickT = mCurrentTime;
00223 
00224         while (tickT  >= (mCurrentTime - mTimeSpan))
00225         {
00226             GetTimeUnits(tickT, h, m, s);
00227             int x = ComputeX(tickT);
00228             if ( !(m%5) && !(s%60)){
00229                 DrawLine(x, mLineY, x, mLineY - 7);
00230                 oglSys.PosColPrintf(mOglWnd, x-16, mLineY-20, 0xff505050,
00231                                    "%02d:%02d", h, m);
00232             }
00233             else if (!(s%60))
00234             {
00235                 DrawLine(x, mLineY, x, mLineY - 5);
00236                 oglSys.PosColPrintf(mOglWnd, x-6, mLineY-18, 0xff757575,
00237                                     "%02d", m);
00238                 //oglSys.PosColPrintf(mOglWnd, x-6, mLineY-18, 0xff606060,
00239                 //                    "%02d", m);
00240             }
00241             else if(detailed && !(s%detailResolution))
00242                 DrawLine(x, mLineY, x, mLineY - 3);
00243 
00244             tickT--;
00245         }
00246     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:26:05 2011 for ImpalaSrc by  doxygen 1.5.1