(#861) Summary Plot : Add support for autogenerated plot name

This commit is contained in:
Magne Sjaastad
2017-11-23 14:12:05 +01:00
parent 20b3de9f7a
commit 5e3467a5f6
11 changed files with 264 additions and 123 deletions

View File

@@ -42,6 +42,30 @@ RimSummaryPlotCollection::~RimSummaryPlotCollection()
summaryPlots.deleteAllChildObjects();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimSummaryPlot* RimSummaryPlotCollection::createSummaryPlotAutoName()
{
RimSummaryPlot* plot = new RimSummaryPlot();
plot->enableAutoName(true);
summaryPlots.push_back(plot);
return plot;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimSummaryPlot* RimSummaryPlotCollection::createNamedSummaryPlot(const QString& name)
{
RimSummaryPlot* plot = new RimSummaryPlot();
summaryPlots.push_back(plot);
plot->setDescription(name);
return plot;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------