mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve ensemble curve colors
* Use unique_ptr * Improve default assignment of curve appearance * Improve display of color tags in tree view items * Select curve or ensemble instead of plot * Only change curves connected to a Rim-object * Improve color management for ensemble curves Use a base color for statistics curves and set realization curves transparent Make sure new curves are assigned a unique color Harmonize how dropped addresses are handled * Update all tags always The update of tags for a subset of tree nodes is currently broken. Always update all tags. * Add const
This commit is contained in:
@@ -45,6 +45,7 @@ public:
|
||||
enum class ColorMode
|
||||
{
|
||||
SINGLE_COLOR,
|
||||
SINGLE_COLOR_WITH_ALPHA,
|
||||
BY_ENSEMBLE_PARAM,
|
||||
BY_OBJECTIVE_FUNCTION,
|
||||
BY_CUSTOM_OBJECTIVE_FUNCTION
|
||||
@@ -85,9 +86,8 @@ public:
|
||||
RimSummaryCase* summaryCase,
|
||||
caf::PdmPointer<RimCustomObjectiveFunction> customObjectiveFunction );
|
||||
|
||||
static bool hasSameColorForAllRealizationCurves( ColorMode colorMode );
|
||||
|
||||
private:
|
||||
static const std::map<RimRegularLegendConfig::ColorRangesType, cvf::Color3ubArray> m_ensembleColorRanges;
|
||||
|
||||
static std::map<RimEnsembleCurveSetCollection*, int> m_nextColorIndexes;
|
||||
static std::map<RimEnsembleCurveSetCollection*, std::map<RimEnsembleCurveSet*, RimRegularLegendConfig::ColorRangesType>> m_colorCache;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user