Various operations on color legends

This commit is contained in:
Stein Inge Dale
2020-05-13 14:28:06 +02:00
committed by Magne Sjaastad
parent fd475589a5
commit d39bcb31ab
20 changed files with 599 additions and 28 deletions

View File

@@ -41,12 +41,19 @@ public:
RimColorLegendCollection();
~RimColorLegendCollection() override;
void appendColorLegend( RimColorLegend* colorLegend );
void createStandardColorLegends();
std::vector<RimColorLegend*> colorLegends() const;
void appendCustomColorLegend( RimColorLegend* customColorLegend );
bool isStandardColorLegend( RimColorLegend* colorLegend );
void deleteCustomColorLegends();
std::vector<RimColorLegend*> customColorLegends() const;
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
private:
caf::PdmChildArrayField<RimColorLegend*> m_colorLegends;
caf::PdmChildArrayField<RimColorLegend*> m_standardColorLegends; // ResInsight standard (built-in) legends
caf::PdmChildArrayField<RimColorLegend*> m_customColorLegends; // user specified legends
};