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

virtual void Impala::Visualization::ViewWithRect::OnDrawView (  )  [inline, virtual]

Reimplemented from OglGui::View.

Definition at line 41 of file ViewWithRect.h.

References OglGui::View::GetOGLIMAGE(), OglGui::View::GetOGLVIEW2D(), Impala::Core::Geometry::Rectangle::Height(), Impala::Core::Geometry::Rectangle::mLeft, mRect, Impala::Core::Geometry::Rectangle::mTop, OglGui::View::OnDrawView(), Impala::Core::Geometry::Rectangle::Valid(), and Impala::Core::Geometry::Rectangle::Width().

00042     {
00043         if (!mRect.Valid())
00044             return;
00045 
00046         OGLIMAGE* oglIm = GetOGLIMAGE();
00047         if (!oglIm)
00048             return;
00049 
00050         OGC ogc;
00051         OGCSave(&ogc);
00052         glPushMatrix();
00053 
00054         viewSys.View2DImageTransform(GetOGLVIEW2D());
00055         SetSolidLineColor(oglRED);
00056         SetLineWidth(1);
00057         DrawRectangle(mRect.mLeft, oglIm->h - mRect.mTop - mRect.Height(),
00058                       mRect.Width(), mRect.Height());
00059 
00060         glPopMatrix();
00061         OGCRestore(&ogc);
00062 
00063         OglGui::View::OnDrawView();
00064     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:51:12 2010 for ImpalaSrc by  doxygen 1.5.1