Definition at line 317 of file Graph.h. References OglGui::DocDimensions::DocH(), OglGui::DocDimensions::DocW(), OglGui::SetGetDimensions2dIntI::GetDimensions(), OglGui::OglWindow::H(), mDocBased, OglGui::DocDimensions::mDocH, mDocScaleH, mDocScaleW, mDocScaleX, mDocScaleY, OglGui::DocDimensions::mDocW, OglGui::DocDimensions::mDocX, OglGui::DocDimensions::mDocY, mNodes, OglGui::NoHeight, OglGui::NoHorizontal, OglGui::NoVertical, OglGui::NoWidth, OglGui::SetGetDimensions2dIntI::SetDimensions(), and OglGui::OglWindow::W(). Referenced by DocMouseFunc(), and WndMouseFunc(). 00318 { 00319 if (passive && mDocBased) 00320 { 00321 mDocX = mDocScaleX * W(); 00322 mDocY = mDocScaleY * H(); 00323 mDocW = mDocScaleW * W(); 00324 mDocH = mDocScaleH * H(); 00325 } 00326 int lw = mDocBased ? DocW() : W(); 00327 int lh = mDocBased ? DocH() : H(); 00328 for (int i=0; i < mNodes.size(); i++) 00329 { 00330 NodeInfo& nodeInfo = mNodes[i]; 00331 Node* node = nodeInfo.nodeVector[0]; 00332 int mode = nodeInfo.scaleMode; 00333 00334 int fx, fy, fw, fh; 00335 node->GetDimensions(fx,fy,fw,fh); 00336 if(!(mode & NoHorizontal)) 00337 { 00338 fx = (int)(lw * nodeInfo.scaleX); 00339 if(!(mode & NoWidth)) 00340 fw = (int)(lw * nodeInfo.scaleW); 00341 } 00342 if(!(mode & NoVertical)) 00343 { 00344 fy = (int)(lh * nodeInfo.scaleY); 00345 if(!(mode & NoHeight)) 00346 fh = (int)(lh * nodeInfo.scaleH); 00347 } 00348 00349 node->SetDimensions(fx+mDocX, fy+mDocY, fw, fh); 00350 if (nodeInfo.graphPtr) 00351 nodeInfo.graphPtr->DoScaling(true); 00352 } 00353 }
Here is the call graph for this function:
|