Caf: Set point of interes when doing "Zoom All"

This commit is contained in:
Jacob Støren 2018-01-26 11:16:03 +01:00
parent c7185649ce
commit 369afcfbbb

View File

@ -676,9 +676,11 @@ void caf::Viewer::zoomAll()
cvf::Vec3d newEye = m_mainCamera->computeFitViewEyePosition(bb, vrp-eye, up, 0.9, m_cameraFieldOfViewYDeg, m_mainCamera->viewport()->aspectRatio());
m_mainCamera->setFromLookAt(newEye, bb.center(), up);
updateParallelProjectionHeightFromMoveZoom(bb.center());
if (m_navigationPolicy.notNull()) m_navigationPolicy->setPointOfInterest(bb.center());
navigationPolicyUpdate();
}