mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1886 Curve creator. Set visibility to false for curves that should not be displayed
This commit is contained in:
parent
6892273188
commit
17e01cd11c
@ -1032,6 +1032,20 @@ void RicSummaryCurveCreator::populateCurveCreator(const RimSummaryPlot& sourceSu
|
|||||||
copyCurveAndAddToPlot(curve, m_previewPlot, true);
|
copyCurveAndAddToPlot(curve, m_previewPlot, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
syncPreviewCurvesFromUiSelection();
|
||||||
|
|
||||||
|
// Set visibility for imported curves which were not checked in source plot
|
||||||
|
std::set <std::pair<RimSummaryCase*, RifEclipseSummaryAddress>> sourceCurveDefs;
|
||||||
|
for (const auto& curve : sourceSummaryPlot.summaryCurves())
|
||||||
|
{
|
||||||
|
sourceCurveDefs.insert(std::make_pair(curve->summaryCase(), curve->summaryAddress()));
|
||||||
|
}
|
||||||
|
for (const auto& curve : m_previewPlot->summaryCurves())
|
||||||
|
{
|
||||||
|
auto curveDef = std::make_pair(curve->summaryCase(), curve->summaryAddress());
|
||||||
|
if (sourceCurveDefs.count(curveDef) == 0)
|
||||||
|
curve->setCurveVisiblity(false);
|
||||||
|
}
|
||||||
m_previewPlot->updateConnectedEditors();
|
m_previewPlot->updateConnectedEditors();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user