Plot curve. Support for setting Z order on curve objects

This commit is contained in:
Bjørn Erik Jensen
2017-10-17 15:59:05 +02:00
parent 339c46d39c
commit 646c4aa9d7
3 changed files with 16 additions and 0 deletions

View File

@@ -791,6 +791,7 @@ void RimWellRftPlot::updateCurvesInPlot(const std::set<std::pair<RimWellRftAddre
RifEclipseRftAddress address(m_wellName, curveDefToAdd.second, RifEclipseRftAddress::PRESSURE);
curve->setRftAddress(address);
curve->setZOrder(1);
applyCurveAppearance(curve);
curve->loadDataAndUpdate(true);
@@ -822,6 +823,7 @@ void RimWellRftPlot::updateCurvesInPlot(const std::set<std::pair<RimWellRftAddre
[curveDefToAdd](std::pair<QDateTime, std::set<RimWellRftAddress>> pair) {return pair.first == curveDefToAdd.second; });
auto currentTimeStep = std::distance(timeSteps.begin(), currentTimeStepIt);
curve->setCurrentTimeStep(currentTimeStep);
curve->setZOrder(0);
applyCurveAppearance(curve);
curve->loadDataAndUpdate(false);
@@ -837,6 +839,7 @@ void RimWellRftPlot::updateCurvesInPlot(const std::set<std::pair<RimWellRftAddre
plotTrack->addCurve(curve);
curve->setWellPath(wellPath);
curve->setWellLogChannelName(pressureChannels.front()->name());
curve->setZOrder(2);
applyCurveAppearance(curve);
curve->loadDataAndUpdate(true);