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

virtual void Impala::Visualization::ViewListenerWithCircles::OnDrawView ( OglGui::View view  )  [inline, virtual]

Reimplemented from OglGui::ViewListener.

Definition at line 29 of file ViewListenerWithCircles.h.

References OglGui::View::GetOGLIMAGE(), OglGui::View::GetOGLVIEW2D(), mColor, mFill, mPList, and mRadius.

00030     {
00031         if (mPList->size() == 0)
00032             return;
00033 
00034         OGLIMAGE* oglIm = view->GetOGLIMAGE();
00035         if (!oglIm)
00036             return;
00037 
00038         OGC ogc;
00039         OGCSave(&ogc);
00040         glPushMatrix();
00041 
00042         viewSys.View2DImageTransform(view->GetOGLVIEW2D());
00043         if (mFill)
00044             SetSolidFillColor(mColor);
00045         else
00046             SetSolidLineColor(mColor);
00047         SetLineWidth(1);
00048         for (Core::Geometry::PointZListCI p=mPList->begin() ; p!=mPList->end() ; p++)
00049         {
00050             if (mFill)
00051                 FillCircle(p->mX, oglIm->h - p->mY, mRadius);
00052             else
00053                 DrawCircle(p->mX, oglIm->h - p->mY, mRadius);
00054         }
00055         glPopMatrix();
00056         OGCRestore(&ogc);
00057     }

Here is the call graph for this function:


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