Janitor: Make sure the default legend is configured for intersection results

This commit is contained in:
Magne Sjaastad
2022-01-05 21:44:56 +01:00
parent 0cb7a157c9
commit dfd8b9986f
9 changed files with 123 additions and 71 deletions

View File

@@ -387,6 +387,24 @@ void RimIntersectionResultDefinition::update2dIntersectionViews()
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimIntersectionResultDefinition::setDefaultEclipseLegendConfig()
{
bool useDiscreteLogLevels = false;
bool isCategoryResult = m_eclipseResultDefinition->hasCategoryResult();
auto eclResultDef = this->eclipseResultDefinition();
eclResultDef->updateRangesForExplicitLegends( this->regularLegendConfig(),
this->ternaryLegendConfig(),
this->timeStep() );
m_legendConfig->setDefaultConfigForResultName( m_eclipseResultDefinition->resultVariable(),
useDiscreteLogLevels,
isCategoryResult );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------