mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2727 Legends : Add RimLegendConfig as base for Regular and Ternary
This commit is contained in:
@@ -675,6 +675,36 @@ bool RimRegularLegendConfig::showLegend() const
|
||||
return m_showLegend;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::TitledOverlayFrame* RimRegularLegendConfig::titledOverlayFrame()
|
||||
{
|
||||
if (m_currentScalarMapper == m_categoryMapper)
|
||||
{
|
||||
return m_categoryLegend.p();
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_scalarMapperLegend.p();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const caf::TitledOverlayFrame* RimRegularLegendConfig::titledOverlayFrame() const
|
||||
{
|
||||
if (m_currentScalarMapper == m_categoryMapper)
|
||||
{
|
||||
return m_categoryLegend.p();
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_scalarMapperLegend.p();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user