Update legend and 3D info on display model gen

This commit is contained in:
Jacob Støren
2015-04-30 10:59:39 +02:00
parent be2f261f9d
commit f13f05709f
3 changed files with 17 additions and 1 deletions

View File

@@ -181,6 +181,8 @@ void RimGeoMechView::createDisplayModelAndRedraw()
m_viewer->zoomAll();
m_viewer->update();
updateLegends();
overlayInfoConfig()->update3DInfo();
}
}
RiuMainWindow::instance()->refreshAnimationActions();
@@ -205,6 +207,18 @@ void RimGeoMechView::resetLegendsInViewer()
m_viewer->addColorLegendToBottomLeftCorner(this->cellResult()->legendConfig->legend());
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimGeoMechView::updateLegends()
{
if (m_viewer)
{
m_viewer->removeAllColorLegends();
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------