Definition at line 95 of file Window.h. References Impala::Core::Geometry::RectangleTiler::GetPos2d(), Impala::Core::Geometry::RectangleTiler::GetPos3d(), MakeView(), Impala::Max(), mFirstImSize, OglGui::Window::mIs2d, mMakeViewWithRect, mOglView, OglGui::OglWindow::mOglWnd, and mViewTiler. Referenced by MakeView(), and UpdateView(). 00097 { 00098 int n = mOglView.size(); 00099 View* view; 00100 if (mIs2d) 00101 { 00102 int pX2d; 00103 int pY2d; 00104 mViewTiler.GetPos2d(scale * imW, scale * imH, pX2d, pY2d); 00105 if (mMakeViewWithRect) 00106 view = new ViewWithRect(mOglWnd, pX2d, pY2d, imW, imH, scale, 00107 texturing, noTexScaling, keepDispImage, 00108 listener); 00109 else 00110 view = new View(mOglWnd, pX2d, pY2d, imW, imH, scale, 00111 texturing, noTexScaling, keepDispImage, 00112 listener); 00113 } 00114 else 00115 { 00116 if (n == 0) 00117 { 00118 mFirstImSize = Max(imW, imH); 00119 std::cout << "Setting firstImSize " << imW << " x " << imH << std::endl; 00120 } 00121 float scaleX = ((float) imW / mFirstImSize) * scale; 00122 float scaleY = ((float) imH / mFirstImSize) * scale; 00123 std::cout << "scale : " << scaleX << " x " << scaleY << std::endl; 00124 float pX3d; 00125 float pY3d; 00126 float pZ3d; 00127 mViewTiler.GetPos3d(scaleX, scaleY, pX3d, pY3d, pZ3d); 00128 view = new View(mOglWnd, pX3d, pY3d, pZ3d, imW, imH, scaleX, 00129 scaleY, noTexScaling, keepDispImage, listener); 00130 } 00131 mOglView.push_back(view); 00132 }
Here is the call graph for this function:
|