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

void Impala::Application::SDash::TimeSlider::DrawTicks (  )  [inline, protected]

Definition at line 123 of file TimeSlider.h.

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

Referenced by DisplayFunc().

00124     {
00125         int     h, m, s;
00126         long    tickT = mStartTime + mTimeSpan;
00127 
00128         while (tickT  >= mStartTime)
00129         {
00130             GetTimeUnits(tickT, h, m, s);
00131             int x = ComputeX(tickT);
00132             if ( !(m%5) && !(s%60)){
00133                 DrawLine(x, mLineY, x, mLineY - 5);
00134                 oglSys.PosColPrintf(mOglWnd, x-15, mLineY-14, 0xff606060,
00135                                    "%02d:%02d", h, m);
00136             }
00137             else if (!(s%60))
00138             {
00139                 DrawLine(x, mLineY, x, mLineY - 3);
00140                 if (W()>280 && mTimeSpan < 14*60 && m%5)
00141                     oglSys.PosColPrintf(mOglWnd,x-6,mLineY-14,0xffc0c0c0,
00142                                         "%02d",m);
00143             }
00144             tickT--;
00145         }
00146     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:16:14 2011 for ImpalaSrc by  doxygen 1.5.1