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

void OglGui::Graph::DrawConnections (  )  [inline]

Definition at line 221 of file Graph.h.

References OglGui::SetGetDimensions2dIntI::GetDimensions(), and mNodes.

Referenced by HandleShowContent().

00222     {
00223         glLineWidth(2);
00224         for (int i=0; i < mNodes.size(); i++)
00225         {
00226             int     x, y, w, h;
00227             Node*   node = mNodes[i].nodeVector[0];
00228             node->GetDimensions(x,y,w,h);
00229 
00230             int     srcX = x + w/2;
00231             int     srcY = y + h/2;
00232 
00233             NodeVector&     nodeVector      = mNodes[i].nodeVector;
00234             ColorVector&    colStartVector  = mNodes[i].lineStartColors;
00235             ColorVector&    colEndVector    = mNodes[i].lineEndColors;
00236             for (int j=1; j < nodeVector.size(); j++)
00237             {
00238                 Node* dstNode = nodeVector[j];
00239                 dstNode->GetDimensions(x,y,w,h);
00240 
00241                 int dstX = x + w/2;
00242                 int dstY = y + h/2;
00243                 SetLineColors(colStartVector[j-1],colEndVector[j-1],0,0);
00244                 DrawLine(srcX, srcY, dstX, dstY);
00245             }
00246         }
00247         glLineWidth(1);
00248     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:01:37 2010 for ImpalaSrc by  doxygen 1.5.1