#1213 Well allocation plot is now only created when requested.

Also made the fields in FlowPlotCollection private.
This commit is contained in:
Jacob Støren
2017-02-14 08:10:39 +01:00
parent df35335744
commit a25bfd4513
5 changed files with 79 additions and 24 deletions
@@ -70,7 +70,7 @@ void RicAddStoredWellAllocationPlotFeature::onActionTriggered(bool isChecked)
RimWellAllocationPlot* wellAllocationPlot = dynamic_cast<RimWellAllocationPlot*>(sourceObject->copyByXmlSerialization(caf::PdmDefaultObjectFactory::instance()));
CVF_ASSERT(wellAllocationPlot);
flowPlotColl->flowPlots.push_back(wellAllocationPlot);
flowPlotColl->addPlot(wellAllocationPlot);
wellAllocationPlot->resolveReferencesRecursively();
wellAllocationPlot->loadDataAndUpdate();