mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Caf: Set point of interes when doing "Zoom All"
This commit is contained in:
parent
c7185649ce
commit
369afcfbbb
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user