mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4581 Summary Plot: Add default curve style to preferences for history curves
This commit is contained in:
@@ -18,13 +18,13 @@
|
||||
|
||||
#include "RimSummaryCurve.h"
|
||||
|
||||
#include "RiaGuiApplication.h"
|
||||
#include "RiaDefines.h"
|
||||
#include "RiaGuiApplication.h"
|
||||
#include "RiaPreferences.h"
|
||||
#include "RiaTimeHistoryCurveMerger.h"
|
||||
|
||||
#include "RifReaderEclipseSummary.h"
|
||||
|
||||
#include "RiaTimeHistoryCurveMerger.h"
|
||||
|
||||
#include "RimEclipseResultCase.h"
|
||||
#include "RimEnsembleCurveSet.h"
|
||||
#include "RimEnsembleCurveSetCollection.h"
|
||||
@@ -806,15 +806,34 @@ void RimSummaryCurve::setCurveAppearanceFromCaseType()
|
||||
if (m_yValuesSummaryCase->isObservedData())
|
||||
{
|
||||
setLineStyle(RiuQwtPlotCurve::STYLE_NONE);
|
||||
|
||||
if (symbol() == RiuQwtSymbol::SYMBOL_NONE)
|
||||
{
|
||||
setSymbol(RiuQwtSymbol::SYMBOL_XCROSS);
|
||||
}
|
||||
setSymbol(RiuQwtSymbol::SYMBOL_XCROSS);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_yValuesCurveVariable && m_yValuesCurveVariable->address().isHistoryQuantity())
|
||||
{
|
||||
RiaPreferences* prefs = RiaApplication::instance()->preferences();
|
||||
|
||||
if (prefs->defaultSummaryHistoryCurveStyle() == RiaPreferences::SYMBOLS)
|
||||
{
|
||||
setSymbol(RiuQwtSymbol::SYMBOL_XCROSS);
|
||||
setLineStyle(RiuQwtPlotCurve::STYLE_NONE);
|
||||
}
|
||||
else if (prefs->defaultSummaryHistoryCurveStyle() == RiaPreferences::SYMBOLS_AND_LINES)
|
||||
{
|
||||
setSymbol(RiuQwtSymbol::SYMBOL_XCROSS);
|
||||
setLineStyle(RiuQwtPlotCurve::STYLE_SOLID);
|
||||
}
|
||||
else if (prefs->defaultSummaryHistoryCurveStyle() == RiaPreferences::LINES)
|
||||
{
|
||||
setSymbol(RiuQwtSymbol::SYMBOL_NONE);
|
||||
setLineStyle(RiuQwtPlotCurve::STYLE_SOLID);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user