mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-17 02:42:11 -05:00
#739 Aligned more to the way of the RimPlotCurve
This commit is contained in:
1 parent
e469eb1483
commit
cb8f2e47f5
3 files changed
+61
-21
No files matched your search
@@ -101,14 +101,7 @@ void RimSummaryPlot::loadDataAndUpdate()
|
||||
{
|
||||
RimSummaryCurve* curve = curves[i];
|
||||
|
||||
std::vector<QDateTime> dateTimes;
|
||||
std::vector<double> values;
|
||||
|
||||
curve->curveData(&dateTimes, &values);
|
||||
|
||||
cvf::Color3f curveColor = RiuSelectionColors::curveColorFromTable();
|
||||
|
||||
m_viewer->addCurve(curve->m_variableName(), curveColor, dateTimes, values);
|
||||
curve->loadDataAndUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -161,6 +154,6 @@ void RimSummaryPlot::detachAllCurves()
|
||||
{
|
||||
for (size_t cIdx = 0; cIdx < curves.size(); ++cIdx)
|
||||
{
|
||||
//curves[cIdx]->detachQwtCurve();
|
||||
curves[cIdx]->detachQwtCurve();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user