#7647 PERM and other arrays default colour legend type change

Restore default color legend to "Continuous Logarithmic" instead of "Discrete Logarithmic"
This commit is contained in:
Magne Sjaastad
2021-05-04 06:53:43 +02:00
parent 010e964ea8
commit 211a9ff915
3 changed files with 28 additions and 4 deletions

View File

@@ -60,6 +60,8 @@ public:
void updateLegendCategorySettings() override;
void uiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "" );
void useDiscreteLogLevels( bool enable );
protected:
// Overridden methods
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
@@ -74,7 +76,8 @@ protected:
private:
void changeLegendConfig( QString resultVarNameOfNewLegend );
void onLegendConfigChanged( const caf::SignalEmitter* emitter, RimLegendConfigChangeType changeType );
static RimRegularLegendConfig* createLegendForResult( const QString& resultName, bool isCategoryResult );
static RimRegularLegendConfig*
createLegendForResult( const QString& resultName, bool useDiscreteLevels, bool isCategoryResult );
caf::PdmChildArrayField<RimRegularLegendConfig*> m_legendConfigData;
caf::PdmPtrField<RimRegularLegendConfig*> m_legendConfigPtrField;
@@ -82,6 +85,8 @@ private:
caf::PdmPointer<RimEclipseView> m_reservoirView;
bool m_useDiscreteLogLevels;
// Obsolete
caf::PdmChildField<RimRegularLegendConfig*> obsoleteField_legendConfig;
};