mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#266) Cleaned up access to boundingBox
This commit is contained in:
@@ -507,6 +507,8 @@ void RiuViewer::navigationPolicyUpdate()
|
|||||||
{
|
{
|
||||||
viewLinker->updateCamera(m_rimView);
|
viewLinker->updateCamera(m_rimView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_gridBoxGenerator->updateFromCamera(mainCamera());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -528,14 +528,7 @@ void caf::Viewer::setView(const cvf::Vec3d& alongDirection, const cvf::Vec3d& up
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void caf::Viewer::zoomAll()
|
void caf::Viewer::zoomAll()
|
||||||
{
|
{
|
||||||
cvf::BoundingBox bb;
|
cvf::BoundingBox bb = m_renderingSequence->boundingBox();
|
||||||
|
|
||||||
cvf::Scene* scene = m_renderingSequence->firstRendering()->scene();
|
|
||||||
if (scene)
|
|
||||||
{
|
|
||||||
bb = scene->boundingBox();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!bb.isValid())
|
if (!bb.isValid())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user