Add getters for RimColorLegend++.

This commit is contained in:
Kristian Bendiksen
2020-05-06 22:30:51 +02:00
committed by Magne Sjaastad
parent 0bf3ed91f0
commit db384ea754
6 changed files with 48 additions and 2 deletions

View File

@@ -60,6 +60,30 @@ void RimColorLegendItem::setValues( const QString& categoryName, int categoryVal
m_color = color;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const cvf::Color3f& RimColorLegendItem::color() const
{
return m_color();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
const QString& RimColorLegendItem::categoryName() const
{
return m_categoryName();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
int RimColorLegendItem::categoryValue() const
{
return m_categoryValue();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------