#6081 Color Results : Show legends in geomech view

This commit is contained in:
Magne Sjaastad 2020-06-17 13:57:12 +02:00
parent c13f1d752d
commit cc591aa287
2 changed files with 18 additions and 2 deletions

View File

@ -2206,9 +2206,12 @@ std::vector<RimLegendConfig*> RimEclipseView::legendConfigs() const
absLegends.push_back( wellMeasurement->legendConfig() );
}
for ( auto legendConfig : m_surfaceCollection->legendConfigs() )
if ( m_surfaceCollection )
{
absLegends.push_back( legendConfig );
for ( auto legendConfig : m_surfaceCollection->legendConfigs() )
{
absLegends.push_back( legendConfig );
}
}
return absLegends;

View File

@ -525,6 +525,11 @@ void RimGeoMechView::onUpdateLegends()
}
}
}
if ( m_surfaceCollection && m_surfaceCollection->isChecked() )
{
m_surfaceCollection->updateLegendRangesTextAndVisibility( nativeOrOverrideViewer(), isUsingOverrideViewer() );
}
}
}
@ -634,6 +639,14 @@ std::vector<RimLegendConfig*> RimGeoMechView::legendConfigs() const
absLegendConfigs.push_back( wellMeasurement->legendConfig() );
}
if ( m_surfaceCollection )
{
for ( auto legendConfig : m_surfaceCollection->legendConfigs() )
{
absLegendConfigs.push_back( legendConfig );
}
}
return absLegendConfigs;
}