Make it possible to exclude partial delta curves

Make sure statistics curves are recomputed on flag change

When toggling "Discard Missing or Incomplete Realizations", make sure the statistics is recomputed and the ensemble plots updated.
This commit is contained in:
Magne Sjaastad
2024-11-15 12:37:22 +01:00
parent dbea0e2593
commit 9b6e441386
20 changed files with 184 additions and 45 deletions

View File

@@ -341,6 +341,9 @@ void RimEnsembleCurveSet::loadDataAndUpdate( bool updateParentPlot )
{
m_yValuesSummaryAddressUiField = m_yValuesSummaryAddress->address();
// Recreate the statistics case, as the statistics data is cached internally
m_ensembleStatCaseY = std::make_unique<RimEnsembleStatisticsCase>();
m_curveFilters->loadDataAndUpdate();
updateAddressesUiField();
@@ -1168,6 +1171,13 @@ void RimEnsembleCurveSet::defineUiOrdering( QString uiConfigName, caf::PdmUiOrde
m_statistics->defaultUiOrdering( isXAxisSummaryVector(), *statGroup );
bool enableIncomplete = true;
if ( dynamic_cast<RimDeltaSummaryEnsemble*>( m_yValuesSummaryEnsemble() ) )
{
enableIncomplete = false;
}
m_statistics->enableIncludeIncompleteCurves( enableIncomplete );
caf::PdmUiGroup* statAppearance = statGroup->addNewGroupWithKeyword( "Appearance", "StatisticsAppearance" );
statAppearance->add( &m_statisticsUseCustomAppearance );
if ( m_statisticsUseCustomAppearance() == AppearanceMode::CUSTOM )