mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Cleanup in EnsembleColormanager
This commit is contained in:
@@ -35,20 +35,20 @@ class RimEnsembleCurveSetCollection;
|
||||
class RimEnsembleCurveSetColorManager
|
||||
{
|
||||
public:
|
||||
static const std::map<RimRegularLegendConfig::ColorRangesType, cvf::Color3ubArray> EnsembleColorRanges;
|
||||
static const std::map<RimRegularLegendConfig::ColorRangesType, cvf::Color3ubArray>& EnsembleColorRanges();
|
||||
|
||||
static const RimRegularLegendConfig::ColorRangesType DEFAULT_ENSEMBLE_COLOR_RANGE;
|
||||
static RimRegularLegendConfig::ColorRangesType cycledEnsembleColorRange(int index);
|
||||
|
||||
static bool isEnsembleColorRange(RimRegularLegendConfig::ColorRangesType colorRange)
|
||||
{
|
||||
return EnsembleColorRanges.find(colorRange) != EnsembleColorRanges.end();
|
||||
return m_ensembleColorRanges.find(colorRange) != m_ensembleColorRanges.end();
|
||||
}
|
||||
|
||||
static RimRegularLegendConfig::ColorRangesType nextColorRange(RimEnsembleCurveSet* curveSet);
|
||||
|
||||
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