mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2780 Ensemble Curve Set : Improve plot title including ensembles
This commit is contained in:
@@ -1460,6 +1460,7 @@ QString RimSummaryPlot::generatePlotTitle(RimSummaryPlotNameHelper* nameHelper)
|
||||
|
||||
std::vector<RifEclipseSummaryAddress> addresses;
|
||||
std::vector<RimSummaryCase*> sumCases;
|
||||
std::vector<RimSummaryCaseCollection*> ensambleCases;
|
||||
|
||||
if (m_summaryCurveCollection && m_summaryCurveCollection->isCurvesVisible())
|
||||
{
|
||||
@@ -1483,9 +1484,19 @@ QString RimSummaryPlot::generatePlotTitle(RimSummaryPlotNameHelper* nameHelper)
|
||||
}
|
||||
}
|
||||
|
||||
for (auto curveSet : m_ensembleCurveSetCollection->curveSets())
|
||||
{
|
||||
if (curveSet->isCurvesVisible())
|
||||
{
|
||||
addresses.push_back(curveSet->summaryAddress());
|
||||
ensambleCases.push_back(curveSet->summaryCaseCollection());
|
||||
}
|
||||
}
|
||||
|
||||
nameHelper->clear();
|
||||
nameHelper->appendAddresses(addresses);
|
||||
nameHelper->appendSummaryCases(sumCases);
|
||||
nameHelper->appendEnsembleCases(ensambleCases);
|
||||
|
||||
return nameHelper->plotTitle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user