#5019 Separate intersection legends in place in ordinary views

Needs some cleanup and not working in 2dintersection views
This commit is contained in:
Jacob Støren
2019-11-22 12:36:39 +01:00
parent f3b458dfbc
commit b5e39519c5
11 changed files with 552 additions and 393 deletions

View File

@@ -659,10 +659,9 @@ void Rim2dIntersectionView::onUpdateLegends()
m_ternaryLegendConfig()->setUiValuesFromLegendConfig( eclView->cellResult()->ternaryLegendConfig() );
}
eclView->cellResult()->updateLegendData( eclView->eclipseCase(),
m_currentTimeStep(),
m_legendConfig(),
m_ternaryLegendConfig() );
eclView->cellResult()->updateRangesForExplicitLegends( m_legendConfig(),
m_ternaryLegendConfig(),
m_currentTimeStep() );
if ( eclView->cellResult()->isTernarySaturationSelected() )
{
@@ -673,7 +672,7 @@ void Rim2dIntersectionView::onUpdateLegends()
}
else
{
m_legendConfig()->setTitle( "Cell Result:\n" + eclView->cellResult()->resultVariableUiShortName() );
eclView->cellResult()->updateLegendTitle( m_legendConfig, "Cell Result:\n" );
legend = m_legendConfig()->titledOverlayFrame();
m_legendObjectToSelect = eclView->cellResult()->legendConfig();