comparison Framework/Toolbox/ViewportGeometry.cpp @ 330:7a364e44fbb4 am-2

renamed SetDefaultView in FitContent
author am@osimis.io
date Wed, 17 Oct 2018 12:45:52 +0200
parents 5412adf19980
children 50e5ec1bdd46
comparison
equal deleted inserted replaced
329:b10dfdb96866 330:7a364e44fbb4
119 displayX = static_cast<int>(boost::math::iround(x)); 119 displayX = static_cast<int>(boost::math::iround(x));
120 displayY = static_cast<int>(boost::math::iround(y)); 120 displayY = static_cast<int>(boost::math::iround(y));
121 } 121 }
122 122
123 123
124 void ViewportGeometry::SetDefaultView() 124 void ViewportGeometry::FitContent()
125 { 125 {
126 if (width_ > 0 && 126 if (width_ > 0 &&
127 height_ > 0 && 127 height_ > 0 &&
128 !sceneExtent_.IsEmpty()) 128 !sceneExtent_.IsEmpty())
129 { 129 {