mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8359 Plot Project Tree : Avoid update of plot if possible
This commit is contained in:
parent
3938e9e600
commit
033cc4f1b7
@ -29,6 +29,7 @@
|
||||
#include "RimProject.h"
|
||||
#include "RimSummaryCaseMainCollection.h"
|
||||
#include "RimSummaryCurve.h"
|
||||
#include "RimSummaryCurveCollection.h"
|
||||
#include "RimSummaryPlot.h"
|
||||
#include "RimSummaryPlotCollection.h"
|
||||
|
||||
@ -102,7 +103,7 @@ void RicNewSummaryCurveFeature::onActionTriggered( bool isChecked )
|
||||
newCurve->setSummaryCaseY( defaultCase );
|
||||
|
||||
plot->loadDataAndUpdate();
|
||||
plot->updateConnectedEditors();
|
||||
plot->summaryCurveCollection()->updateAllRequiredEditors();
|
||||
|
||||
app->getOrCreateAndShowMainPlotWindow()->selectAsCurrentItem( newCurve );
|
||||
|
||||
|
@ -172,7 +172,7 @@ void RicNewSummaryEnsembleCurveSetFeature::onActionTriggered( bool isChecked )
|
||||
if ( !curveSets.empty() ) firstCurveSet = curveSets.front();
|
||||
}
|
||||
plot->loadDataAndUpdate();
|
||||
plot->updateConnectedEditors();
|
||||
plot->ensembleCurveSetCollection()->updateAllRequiredEditors();
|
||||
|
||||
RiaGuiApplication* app = RiaGuiApplication::instance();
|
||||
RiuPlotMainWindow* mainPlotWindow = app->getOrCreateAndShowMainPlotWindow();
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "RimSummaryCrossPlot.h"
|
||||
#include "RimSummaryCurve.h"
|
||||
#include "RimSummaryCurveCollection.h"
|
||||
#include "RimSummaryPlot.h"
|
||||
|
||||
#include "cafPdmDefaultObjectFactory.h"
|
||||
@ -62,7 +63,7 @@ RimSummaryCurve* RicPasteSummaryCurveFeature::copyCurveAndAddToPlot( RimSummaryC
|
||||
newCurve->loadDataAndUpdate( true );
|
||||
newCurve->updateConnectedEditors();
|
||||
|
||||
summaryPlot->updateConnectedEditors();
|
||||
summaryPlot->summaryCurveCollection()->updateAllRequiredEditors();
|
||||
|
||||
return newCurve;
|
||||
}
|
||||
|
@ -623,10 +623,6 @@ void RimEnsembleCurveSet::fieldChangedByUi( const caf::PdmFieldHandle* changedFi
|
||||
|
||||
updateConnectedEditors();
|
||||
|
||||
RimSummaryPlot* summaryPlot = nullptr;
|
||||
this->firstAncestorOrThisOfTypeAsserted( summaryPlot );
|
||||
summaryPlot->updateConnectedEditors();
|
||||
|
||||
updateTextInPlot = true;
|
||||
}
|
||||
else if ( changedField == &m_yValuesSummaryAddressUiField )
|
||||
|
@ -309,10 +309,6 @@ void RimEnsembleCurveSetCollection::fieldChangedByUi( const caf::PdmFieldHandle*
|
||||
if ( changedField == &m_showCurves )
|
||||
{
|
||||
loadDataAndUpdate( true );
|
||||
|
||||
RimSummaryPlot* summaryPlot = nullptr;
|
||||
this->firstAncestorOrThisOfTypeAsserted( summaryPlot );
|
||||
summaryPlot->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1037,7 +1037,6 @@ void RimSummaryCurve::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
{
|
||||
plot->updateAxes();
|
||||
plot->updatePlotTitle();
|
||||
plot->updateConnectedEditors();
|
||||
|
||||
RiuPlotMainWindow* mainPlotWindow = RiaGuiApplication::instance()->mainPlotWindow();
|
||||
mainPlotWindow->updateSummaryPlotToolBar();
|
||||
|
Loading…
Reference in New Issue
Block a user