Reimplemented from OglGui::View. Definition at line 47 of file VideoPlayerView.h. References mColor, mFrameNr, mRegionsOfInterest, mShowFrameNr, and OglGui::View::mView2D. 00048 { 00049 // Give possible already existing drawing behavior a chance 00050 // Example only. Not really necessary in our case 00051 //OglGui::View::OnDrawView(); 00052 00053 if (mShowFrameNr) 00054 { 00055 OGC dbOGC; 00056 OGCSave(&dbOGC); 00057 oglSys.PosColPrintf(mView2D->oglWnd, 4,4,oglRED, "fnr: %d", mFrameNr); 00058 OGCRestore(&dbOGC); 00059 } 00060 00061 if (mRegionsOfInterest.empty()) 00062 return; 00063 00064 //glPushMatrix(); 00065 OGC myOGC; 00066 OGCSave(&myOGC); 00067 00068 viewSys.View2DNormTransform(mView2D); 00069 00070 //SetFillColors(mColor,mColor,mColor,mColor,mColor); 00071 int bInfo[3]; 00072 oglSys.StartBlend(bInfo); 00073 00074 SetSolidLineColor(mColor); 00075 SetLineWidth(3); 00076 int nrOfRegions = mRegionsOfInterest.size(); 00077 for (int i = 0; i < nrOfRegions; i++) 00078 { 00079 const RegionsOfInterestInfo::ScaledRegion& region = mRegionsOfInterest[i]; 00080 DrawRectangle(region.left, region.top, region.width, region.height); 00081 } 00082 00083 oglSys.EndBlend(bInfo); 00084 00086 //viewSys.View2DTransform(mView2D); 00087 //float x = mX*mView2D->w, y = mY*mView2D->h; 00090 //oglSys.PosColPrintf(mView2D->oglWnd, x,y,oglRED, 00091 // "sDash", mX, mY); 00092 00093 OGCRestore(&myOGC); 00094 //glPopMatrix(); 00095 }
|