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

@@ -41,7 +41,10 @@ public:
RimColorLegendItem();
~RimColorLegendItem() override;
void setValues( const QString& categoryName, int categoryValue, const cvf::Color3f& color );
void setValues( const QString& categoryName, int categoryValue, const cvf::Color3f& color );
const cvf::Color3f& color() const;
const QString& categoryName() const;
int categoryValue() const;
public:
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;