mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Deprecate single summary plots and plot collections. (#8777)
* Deprecate single summary plots and plot collections. Replace functionality using summary multi plots. Clean up some code. Fix crash when trying to normalize an empty curve
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
|
||||
#include "RiaGuiApplication.h"
|
||||
|
||||
#include "PlotBuilderCommands/RicSummaryPlotBuilder.h"
|
||||
|
||||
#include "RifEclipseSummaryAddress.h"
|
||||
#include "RifSummaryReaderInterface.h"
|
||||
|
||||
@@ -37,8 +39,8 @@
|
||||
#include "RimSummaryCaseMainCollection.h"
|
||||
#include "RimSummaryCurve.h"
|
||||
#include "RimSummaryCurveAppearanceCalculator.h"
|
||||
#include "RimSummaryMultiPlot.h"
|
||||
#include "RimSummaryPlot.h"
|
||||
#include "RimSummaryPlotCollection.h"
|
||||
|
||||
#include "RiuPlotMainWindow.h"
|
||||
|
||||
@@ -80,8 +82,6 @@ void RicPlotProductionRateFeature::onActionTriggered( bool isChecked )
|
||||
project->activeOilField() ? project->activeOilField()->summaryCaseMainCollection() : nullptr;
|
||||
if ( !sumCaseColl ) return;
|
||||
|
||||
RimSummaryPlotCollection* summaryPlotColl = RiaSummaryTools::summaryPlotCollection();
|
||||
|
||||
std::vector<RimSimWellInView*> collection;
|
||||
caf::SelectionManager::instance()->objectsByType( &collection );
|
||||
|
||||
@@ -100,7 +100,9 @@ void RicPlotProductionRateFeature::onActionTriggered( bool isChecked )
|
||||
}
|
||||
|
||||
description += well->name();
|
||||
RimSummaryPlot* plot = summaryPlotColl->createNamedSummaryPlot( description );
|
||||
RimSummaryPlot* plot = new RimSummaryPlot();
|
||||
plot->setUiName( description );
|
||||
RimSummaryMultiPlot* multiPlot = RicSummaryPlotBuilder::createAndAppendSingleSummaryMultiPlot( plot );
|
||||
|
||||
if ( RimSimWellInViewTools::isInjector( well ) )
|
||||
{
|
||||
@@ -210,7 +212,7 @@ void RicPlotProductionRateFeature::onActionTriggered( bool isChecked )
|
||||
}
|
||||
}
|
||||
|
||||
summaryPlotColl->updateConnectedEditors();
|
||||
multiPlot->updateConnectedEditors();
|
||||
plot->loadDataAndUpdate();
|
||||
|
||||
summaryPlotToSelect = plot;
|
||||
|
||||
Reference in New Issue
Block a user