#3826 Summary curves. Draw error bars in front of all curves except from observed data curves

This commit is contained in:
Bjørn Erik Jensen
2018-12-05 09:35:05 +01:00
committed by Magne Sjaastad
parent 0fa5a5b000
commit d482d3a4ca
3 changed files with 15 additions and 13 deletions

View File

@@ -55,6 +55,7 @@ RiuQwtPlotCurve::RiuQwtPlotCurve(const QString &title)
m_errorBars->setStyle(QwtPlotIntervalCurve::CurveStyle::NoCurve);
m_errorBars->setSymbol(new QwtIntervalSymbol(QwtIntervalSymbol::Bar));
m_errorBars->setItemAttribute(QwtPlotItem::Legend, false);
m_errorBars->setZ(Z_ERROR_BARS);
m_showErrorBars = true;
m_attachedToPlot = nullptr;

View File

@@ -63,6 +63,16 @@ public:
STYLE_DASH_DOT
};
// Z index. Higher Z is painted in front
enum ZIndex
{
Z_ENSEMBLE_CURVE = 100,
Z_ENSEMBLE_STAT_CURVE = 200,
Z_SINGLE_CURVE_NON_OBSERVED = 300,
Z_ERROR_BARS = 400,
Z_SINGLE_CURVE_OBSERVED = 500
};
public:
explicit RiuQwtPlotCurve(const QString &title = QString::null);
~RiuQwtPlotCurve() override;