mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8405 Source Stepping on multiple graphs
- add copy paste of plots into multi summary plot - improve data source stepping for multi plot - improve auto generated plot name, graph name and curve name Fixes by clang-format Improve readability
This commit is contained in:
@@ -52,6 +52,12 @@
|
||||
#include "cafPdmUiTreeSelectionEditor.h"
|
||||
#include "cafSelectionManager.h"
|
||||
|
||||
// Multi plot
|
||||
#include "RimMainPlotCollection.h"
|
||||
#include "RimMultiPlotCollection.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimSummaryMultiPlot.h"
|
||||
|
||||
#include <QKeyEvent>
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimSummaryPlotManager, "RimSummaryPlotManager" );
|
||||
@@ -387,6 +393,17 @@ void RimSummaryPlotManager::createNewPlot()
|
||||
}
|
||||
|
||||
RicSummaryPlotBuilder::createAndAppendMultiPlot( plotsForMultiPlot );
|
||||
|
||||
{
|
||||
auto myCopyOfPlots = plotBuilder.createPlots();
|
||||
std::vector<RimPlot*> myRimPlots;
|
||||
for ( auto p : myCopyOfPlots )
|
||||
{
|
||||
p->loadDataAndUpdate();
|
||||
myRimPlots.push_back( dynamic_cast<RimPlot*>( p ) );
|
||||
}
|
||||
RimSummaryMultiPlot::createAndAppendMultiPlot( myRimPlots );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user