Definition at line 290 of file Graph.h. References OglGui::DocDimensions::DocH(), OglGui::DocDimensions::DocW(), OglGui::OglWindow::H(), mDocBased, OglGui::DocDimensions::mDocH, mDocScaleH, mDocScaleW, mDocScaleX, mDocScaleY, OglGui::DocDimensions::mDocW, OglGui::DocDimensions::mDocX, OglGui::DocDimensions::mDocY, mNodes, and OglGui::OglWindow::W(). Referenced by DocMouseFunc(), and WndMouseFunc(). 00291 { 00292 if (mDocBased) 00293 { 00294 mDocScaleX = mDocX/(float)W(); 00295 mDocScaleY = mDocY/(float)H(); 00296 mDocScaleW = mDocW/(float)W(); 00297 mDocScaleH = mDocH/(float)H(); 00298 } 00299 int wndW = mDocBased ? DocW() : W(); 00300 int wndH = mDocBased ? DocH() : H(); 00301 for (int i=0; i < mNodes.size(); i++) 00302 { 00303 NodeInfo& nodeInfo = mNodes[i]; 00304 int x, y, w, h; 00305 nodeInfo.nodeVector[0]->GetDimensions(x, y, w, h); 00306 x = mDocBased ? -mDocX + x : x; 00307 y = mDocBased ? -mDocY + y : y; 00308 nodeInfo.scaleX = x/(float)wndW; 00309 nodeInfo.scaleY = y/(float)wndH; 00310 nodeInfo.scaleW = w/(float)wndW; 00311 nodeInfo.scaleH = h/(float)wndH; 00312 if (nodeInfo.graphPtr) 00313 nodeInfo.graphPtr->StartScalers(); 00314 } 00315 }
Here is the call graph for this function:
|