Reimplemented from OglGui::ViewListener. Definition at line 27 of file ViewListenerWithArrows.h. References OglGui::View::GetOGLIMAGE(), OglGui::View::GetOGLVIEW2D(), mAList, and mColor. 00028 { 00029 if (mAList->size() == 0) 00030 return; 00031 00032 OGLIMAGE* oglIm = view->GetOGLIMAGE(); 00033 if (!oglIm) 00034 return; 00035 00036 OGC ogc; 00037 OGCSave(&ogc); 00038 glPushMatrix(); 00039 00040 viewSys.View2DImageTransform(view->GetOGLVIEW2D()); 00041 SetSolidLineColor(mColor); 00042 SetLineWidth(1); 00043 for (Core::Geometry::ArrowRListCI a=mAList->begin() ; a!=mAList->end() ; a++) 00044 { 00045 DrawLine(a->mPX, oglIm->h - a->mPY, a->HeadX(), oglIm->h - a->HeadY()); 00046 DrawLine(a->HeadX(), oglIm->h - a->HeadY(), 00047 a->HeadLeftX(), oglIm->h - a->HeadLeftY()); 00048 DrawLine(a->HeadX(), oglIm->h - a->HeadY(), 00049 a->HeadRightX(), oglIm->h - a->HeadRightY()); 00050 } 00051 glPopMatrix(); 00052 OGCRestore(&ogc); 00053 }
Here is the call graph for this function:
|