mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crashes when dropping analysis plots into Multiplots
This commit is contained in:
committed by
Magne Sjaastad
parent
ab3e43d8fb
commit
93baf776a1
@@ -18,16 +18,17 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RimAbstractPlotCollection.h"
|
||||
#include "RimSummaryPlot.h"
|
||||
|
||||
#include "cafPdmChildArrayField.h"
|
||||
#include "cafPdmObject.h"
|
||||
|
||||
class RimSummaryPlot;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class RimSummaryCrossPlotCollection : public caf::PdmObject
|
||||
class RimSummaryCrossPlotCollection : public caf::PdmObject, public RimTypedPlotCollection<RimSummaryPlot>
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
|
||||
@@ -35,11 +36,14 @@ public:
|
||||
RimSummaryCrossPlotCollection();
|
||||
~RimSummaryCrossPlotCollection() override;
|
||||
|
||||
void deleteAllChildObjects();
|
||||
void deleteAllPlots() final;
|
||||
|
||||
std::vector<RimSummaryPlot*> summaryPlots() const;
|
||||
RimSummaryPlot* createSummaryPlot();
|
||||
void addSummaryPlot( RimSummaryPlot* plot );
|
||||
std::vector<RimSummaryPlot*> plots() const final;
|
||||
size_t plotCount() const final;
|
||||
void insertPlot( RimSummaryPlot* plot, size_t index ) final;
|
||||
void removePlot( RimSummaryPlot* plot ) final;
|
||||
|
||||
RimSummaryPlot* createSummaryPlot();
|
||||
|
||||
void updateSummaryNameHasChanged();
|
||||
void summaryPlotItemInfos( QList<caf::PdmOptionItemInfo>* optionInfos ) const;
|
||||
|
||||
Reference in New Issue
Block a user