mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 01:42:13 -05:00
#4219 Contact Pressure plots : Add color to annotation lines
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user