#2659 Ensemble statistics. Add labels to symbols on the statistic curves

This commit is contained in:
Bjørn Erik Jensen
2018-06-14 14:10:37 +02:00
parent 17bbed20c0
commit b5ad3681cc
5 changed files with 107 additions and 35 deletions

View File

@@ -27,6 +27,7 @@
#include "RimSummaryPlot.h"
#include "RiuRimQwtPlotCurve.h"
#include "RiuLineSegmentQwtPlotCurve.h"
#include "cafPdmUiComboBoxEditor.h"
@@ -421,7 +422,7 @@ void RimPlotCurve::updateCurveAppearance()
}
// QwtPlotCurve will take ownership of the symbol
symbol = new QwtSymbol(style);
symbol = new RiuCurveQwtSymbol(style, m_symbolLabel);
symbol->setSize(6, 6);
symbol->setColor(curveColor);
@@ -545,6 +546,14 @@ void RimPlotCurve::setSymbolSkipDinstance(float distance)
m_symbolSkipPixelDistance = distance;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimPlotCurve::setSymbolLabel(const QString& label)
{
m_symbolLabel = label;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------