#4219 Contact Pressure plots : Add color to annotation lines

This commit is contained in:
Magne Sjaastad
2019-03-22 15:11:56 +01:00
parent 49c66d0a5f
commit 0dd5d40199
7 changed files with 65 additions and 16 deletions

View File

@@ -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);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------