mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05: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:
1 parent
9bbc709157
commit
3590c52cdc
63 files changed
+352
-388
No files matched your search
@@ -26,8 +26,9 @@
|
||||
#include "RimObservedSummaryData.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimRftPlotCollection.h"
|
||||
#include "RimSummaryMultiPlot.h"
|
||||
#include "RimSummaryMultiPlotCollection.h"
|
||||
#include "RimSummaryPlot.h"
|
||||
#include "RimSummaryPlotCollection.h"
|
||||
#include "RimWellRftPlot.h"
|
||||
|
||||
#include "cafSelectionManager.h"
|
||||
@@ -52,15 +53,18 @@ void RicCloseObservedDataFeature::setupActionLook( QAction* actionToSetup )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicCloseObservedDataFeature::deleteObservedSummaryData( const std::vector<RimObservedSummaryData*>& data )
|
||||
{
|
||||
RimSummaryPlotCollection* summaryPlotColl = RiaSummaryTools::summaryPlotCollection();
|
||||
RimSummaryMultiPlotCollection* summaryPlotColl = RiaSummaryTools::summaryMultiPlotCollection();
|
||||
|
||||
for ( RimObservedSummaryData* observedData : data )
|
||||
{
|
||||
for ( RimSummaryPlot* summaryPlot : summaryPlotColl->plots() )
|
||||
for ( RimSummaryMultiPlot* multiPlot : summaryPlotColl->multiPlots() )
|
||||
{
|
||||
summaryPlot->deleteCurvesAssosiatedWithCase( observedData );
|
||||
for ( RimSummaryPlot* summaryPlot : multiPlot->summaryPlots() )
|
||||
{
|
||||
summaryPlot->deleteCurvesAssosiatedWithCase( observedData );
|
||||
}
|
||||
multiPlot->updateConnectedEditors();
|
||||
}
|
||||
summaryPlotColl->updateConnectedEditors();
|
||||
|
||||
RimObservedDataCollection* observedDataCollection = nullptr;
|
||||
observedData->firstAncestorOrThisOfTypeAsserted( observedDataCollection );
|
||||
|
||||
Reference in new issue
Block a user