mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Plot curve. Support for setting Z order on curve objects
This commit is contained in:
parent
339c46d39c
commit
646c4aa9d7
@ -791,6 +791,7 @@ void RimWellRftPlot::updateCurvesInPlot(const std::set<std::pair<RimWellRftAddre
|
|||||||
|
|
||||||
RifEclipseRftAddress address(m_wellName, curveDefToAdd.second, RifEclipseRftAddress::PRESSURE);
|
RifEclipseRftAddress address(m_wellName, curveDefToAdd.second, RifEclipseRftAddress::PRESSURE);
|
||||||
curve->setRftAddress(address);
|
curve->setRftAddress(address);
|
||||||
|
curve->setZOrder(1);
|
||||||
|
|
||||||
applyCurveAppearance(curve);
|
applyCurveAppearance(curve);
|
||||||
curve->loadDataAndUpdate(true);
|
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; });
|
[curveDefToAdd](std::pair<QDateTime, std::set<RimWellRftAddress>> pair) {return pair.first == curveDefToAdd.second; });
|
||||||
auto currentTimeStep = std::distance(timeSteps.begin(), currentTimeStepIt);
|
auto currentTimeStep = std::distance(timeSteps.begin(), currentTimeStepIt);
|
||||||
curve->setCurrentTimeStep(currentTimeStep);
|
curve->setCurrentTimeStep(currentTimeStep);
|
||||||
|
curve->setZOrder(0);
|
||||||
|
|
||||||
applyCurveAppearance(curve);
|
applyCurveAppearance(curve);
|
||||||
curve->loadDataAndUpdate(false);
|
curve->loadDataAndUpdate(false);
|
||||||
@ -837,6 +839,7 @@ void RimWellRftPlot::updateCurvesInPlot(const std::set<std::pair<RimWellRftAddre
|
|||||||
plotTrack->addCurve(curve);
|
plotTrack->addCurve(curve);
|
||||||
curve->setWellPath(wellPath);
|
curve->setWellPath(wellPath);
|
||||||
curve->setWellLogChannelName(pressureChannels.front()->name());
|
curve->setWellLogChannelName(pressureChannels.front()->name());
|
||||||
|
curve->setZOrder(2);
|
||||||
|
|
||||||
applyCurveAppearance(curve);
|
applyCurveAppearance(curve);
|
||||||
curve->loadDataAndUpdate(true);
|
curve->loadDataAndUpdate(true);
|
||||||
|
@ -539,6 +539,17 @@ void RimPlotCurve::showLegend(bool show)
|
|||||||
updateLegendEntryVisibilityNoPlotUpdate();
|
updateLegendEntryVisibilityNoPlotUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimPlotCurve::setZOrder(double z)
|
||||||
|
{
|
||||||
|
if (m_qwtPlotCurve != nullptr)
|
||||||
|
{
|
||||||
|
m_qwtPlotCurve->setZ(z);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -98,6 +98,8 @@ public:
|
|||||||
|
|
||||||
void showLegend(bool show);
|
void showLegend(bool show);
|
||||||
|
|
||||||
|
void setZOrder(double z);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
virtual QString createCurveAutoName() = 0;
|
virtual QString createCurveAutoName() = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user