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

void Impala::Application::SDash::SurveillanceMap::DrawTrack (  )  [inline]

Definition at line 229 of file SurveillanceMap.h.

References mButtons, mShowTrack, mTrackSize, mTrackVideoIds, OglGui::OglWindow::X(), and OglGui::OglWindow::Y().

Referenced by DisplayFunc().

00230     {
00231         if (!mShowTrack)
00232             return;
00233 
00234         glPushMatrix(); // Push modelview onto the matrix stack. 
00235             OGC         myOGC;
00236             OGCSave( &myOGC ); // Save present OpenGL and theOGC settings in myOGC
00237 
00238         int bInfo[3];
00239         oglSys.StartBlend(bInfo);
00240 
00241             SetLineWidth( 8.0f );
00242             SetSolidLineColor( oglRED );
00243 
00244         for (int i = 1; i < mTrackSize; i++)
00245         {
00246             Button* fromBtn = mButtons[mTrackVideoIds[i-1]];
00247             Button* toBtn = mButtons[mTrackVideoIds[i]];
00248             float fromX = (float) fromBtn->X() + 12;
00249             float fromY = (float) fromBtn->Y() + 12;
00250             float toX = (float) toBtn->X() + 12;
00251             float toY = (float) toBtn->Y() + 12;
00252                 DrawColLine(fromX, fromY, toX, toY, 0x60ff6060, oglRED);
00253         }
00254 
00255         oglSys.EndBlend(bInfo);
00256         
00257             OGCRestore( &myOGC ); // Restore theOGC
00258             glPopMatrix(); // Restore modelview matrix
00259     }

Here is the call graph for this function:


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