mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
@@ -32,6 +32,7 @@
|
||||
#include "RimSummaryAddressCollection.h"
|
||||
#include "RimSummaryCase.h"
|
||||
#include "RimSummaryEnsembleTools.h"
|
||||
#include "RimSummaryPlot.h"
|
||||
|
||||
#include "cafPdmFieldScriptingCapability.h"
|
||||
#include "cafPdmObjectScriptingCapability.h"
|
||||
@@ -103,7 +104,7 @@ void RimSummaryEnsemble::removeCase( RimSummaryCase* summaryCase, bool notifyCha
|
||||
|
||||
if ( notifyChange )
|
||||
{
|
||||
updateReferringCurveSets();
|
||||
updateReferringCurveSetsZoomAll();
|
||||
}
|
||||
|
||||
if ( m_isEnsemble && m_cases.size() != caseCountBeforeRemove )
|
||||
@@ -134,7 +135,7 @@ void RimSummaryEnsemble::addCase( RimSummaryCase* summaryCase )
|
||||
if ( !derivedEnsemble ) continue;
|
||||
|
||||
derivedEnsemble->createDerivedEnsembleCases();
|
||||
derivedEnsemble->updateReferringCurveSets();
|
||||
derivedEnsemble->updateReferringCurveSetsZoomAll();
|
||||
}
|
||||
|
||||
if ( m_isEnsemble )
|
||||
@@ -143,7 +144,7 @@ void RimSummaryEnsemble::addCase( RimSummaryCase* summaryCase )
|
||||
calculateEnsembleParametersIntersectionHash();
|
||||
}
|
||||
|
||||
updateReferringCurveSets();
|
||||
updateReferringCurveSetsZoomAll();
|
||||
|
||||
clearChildNodes();
|
||||
}
|
||||
@@ -616,7 +617,7 @@ void RimSummaryEnsemble::onLoadDataAndUpdate()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryEnsemble::updateReferringCurveSets()
|
||||
void RimSummaryEnsemble::updateReferringCurveSets( bool doZoomAll )
|
||||
{
|
||||
// Update curve set referring to this group
|
||||
std::vector<caf::PdmObject*> referringObjects = objectsWithReferringPtrFieldsOfType<PdmObject>();
|
||||
@@ -629,10 +630,34 @@ void RimSummaryEnsemble::updateReferringCurveSets()
|
||||
if ( curveSet )
|
||||
{
|
||||
curveSet->loadDataAndUpdate( updateParentPlot );
|
||||
|
||||
if ( doZoomAll )
|
||||
{
|
||||
if ( auto parentPlot = curveSet->firstAncestorOrThisOfType<RimSummaryPlot>() )
|
||||
{
|
||||
parentPlot->zoomAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryEnsemble::updateReferringCurveSets()
|
||||
{
|
||||
updateReferringCurveSets( false );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryEnsemble::updateReferringCurveSetsZoomAll()
|
||||
{
|
||||
updateReferringCurveSets( true );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user