#4219 Contact Pressure plots : Add color to annotation lines

This commit is contained in:
Magne Sjaastad committed 2019-03-22 16:19:23 +01:00
1 parent 49c66d0a5f
commit 0dd5d40199
7 files changed
+65 -16

No files matched your search

@@ -116,6 +116,23 @@ double RimPlotAxisAnnotation::value() const
return m_value();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QColor RimPlotAxisAnnotation::color() const
{
if (m_annotationType() == PL_EQUIL_WATER_OIL_CONTACT)
{
return QColor(0, 0, 0);
}
else if (m_annotationType() == PL_EQUIL_GAS_OIL_CONTACT)
{
return QColor(220, 0, 0);
}
return QColor(0, 0, 100);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------