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

void Impala::Visualization::SimilarityTimeLine::DrawHelpLines ( int  lineMax,
int  hRange 
) [inline]

Definition at line 157 of file SimilarityTimeLine.h.

References OglGui::ZoomShiftRuler::mAxisY, mHelpLineActive, mHelpLineX, mHelpLineY, OglGui::OglWindow::mOglWnd, and OglGui::OglWindow::W().

Referenced by DisplayFunc().

00158     {
00159         OGC myOGC;
00160             OGCSave( &myOGC );
00161 
00162         ULONG col = oglGREY;
00163         SetSolidLineColor(col);
00164         SetStipple((short)oglDot);
00165         for (int i=0; i<4; i++)
00166         {
00167             int y = lineMax-i*hRange/4;
00168             DrawLine(24,y,W(),y);
00169             oglSys.PosColPrintf(mOglWnd,0,y-6,col,"%.2f",1.0f-i*0.25f);
00170         }
00171         SetStipple((short)oglSolid);
00172         if (mHelpLineActive)
00173         {
00174             if (mHelpLineY <= lineMax && mHelpLineY >= mAxisY)
00175             {
00176                 DrawLine(20,mHelpLineY,W()-20,mHelpLineY);
00177                 float val = (mHelpLineY-mAxisY)/(float)hRange;
00178                 int offY = (mHelpLineY - mAxisY > 16) ? -16 : 4;
00179                 oglSys.ShadowPrintf(mOglWnd,mHelpLineX+14,mHelpLineY+offY,
00180                                     oglDARKGREY,oglWHITE,"%0.2f",val);
00181             }
00182         }
00183         SetStipple((short)oglSolid);
00184     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:48:28 2010 for ImpalaSrc by  doxygen 1.5.1